Variant Selection Not Updating on Product Page

Topic summary

A user reports that variant selection (size, color) on product pages fails to update the variant ID correctly, causing the wrong item to be added to cart.

Troubleshooting attempts:

  • Initial suggestion to reload the page after variant selection, as older themes may lack dynamic updates
  • Recommendation to update the theme version
  • User confirms they’re using Shrine Pro theme and page reload doesn’t resolve the issue

Current status:

  • Issue identified as likely a code bug within the Shrine Pro theme
  • One community member reports successfully fixing similar cart drawer variant/price update issues and offers to help debug
  • Discussion remains open with offer of direct collaboration to resolve the problem
Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

I’m experiencing a problem with variant selection on my product pages. When a customer selects a different variant (e.g., size or color), the selected variant ID does not update correctly. This causes the wrong variant to be added to the cart when the customer clicks the “Add to Cart” button.

The variant ID remains unchanged when selecting different variants.

Any assistance in resolving this issue would be greatly appreciated. Thank you!

Please try to reload the page after you have selected a different variant from what is selected first. A lot of times this is the case where behind the scenes things get updated but are not dynamic and needs a page refresh to enter the new variant data.

This is probably when using older themes or very old versions of a theme. Saying this since almost every theme will now come with this dynamicity, I mean it’s pretty common now.

Hi @Nuxura ,

Please update the theme version.

Hi, thank you for your reply, unfortunately this does not work, i am currently on shrine pro theme for reference.

This means that there is bug in the code somewhere. Great that you mentioned the theme.

I was able to rectify the cart drawer buttons not updating the variant and price properly. I will not be overconfident but I might come up with a solution.

Best

Shadab Ali

Thanks for taking the time to go over this Shadab Ali

No worries, if you need help on debugging this you have my personal links below.

Please reach out for a convenient conversation and collaboration.

Thanks!!