Why the selected variant (size) of my t-shirt is not reflected correctly in the cart? I have S, M, L size but always just the size S is shown in the cart even I have selected M or L?
Topic summary
A user reports that variant selection (t-shirt sizes S, M, L) is not working correctly on their product page. Regardless of which size is selected, only size S appears in the cart.
Two potential causes have been identified:
-
Code bug: The variant ID may not be updating properly in the URL, causing the first variant to always be added to cart. This would require debugging to locate the specific code issue.
-
Bundle app conflict: A third-party bundle app currently in use may be interfering with the variant selection functionality.
The issue remains unresolved, with no confirmed solution or next steps determined yet.
These type of issues occur due to small bugs in the code due to which the correct variant id is not updated on the url and thus the first variant only gets added to the cart.
These issues don’t necessarily need lot of code since that’s there on the other hand issues like these sometimes just need a few lines to be commented out but it does require some debugging to get to part of the code where this issue arises.
Please reach out via personal links below for a convenient conversation and collaboration.
Best
Shadab
It seems that the bundle app you are using causes this problem.