Refresh theme not using variant's price in cart-help!

Topic summary

A Shopify store using the Refresh theme has a cart issue where selecting product variants doesn’t update the price correctly—the cart defaults to the first variant’s price instead of the selected one.

Diagnosis:
The problem appears to be a JavaScript bug preventing proper variant selection tracking. One helper identified a likely code error in the theme’s main-product.liquid file.

Solution:
The fix involves checking line 86 of sections/main-product.liquid to ensure it matches the official Dawn theme code on GitHub (v15.4.0). Specifically, the product_form_id assignment may be missing the product- prefix:

{%- assign product_form_id = 'form-' | append: section.id -%}

Outcome:
After implementing the suggested code correction, the original poster confirmed the issue appears resolved, though further testing is ongoing.

Summarized with AI on October 24. AI used: claude-sonnet-4-5-20250929.

Hi there! I’ve searched the forum but couldn’t find an answer so apologies if it’s already been answered and I just didn’t find it. I’m having trouble with my shopify store which uses the Refresh Theme: when I select a product’s variant, its price not going to the cart correctly. Instead, it’s like the cart just grabs the first product variant and its price. Does anyone know how to fix this? I just used the refresh theme code, so maybe the default code that comes with the refresh theme has a known issue? Thanks in advance for any help!

Probably it’s a wrong variant being added to cart?
Need to see the actual product page to diagnose.
Share the URL and storefront password if not yet live.

If you’re new, add some spaces in before dots in your URL, otherwise the system will silence you temporarily. Like www. shopify .com

Ok I’d be happy to share the link (w spaces, thanks for the tip!) and also my password, but since I’m new and don’t know the answer: is that safe to publicly post my password, or is there a way to DM you?

Hi @shopcommhelp,

This might be due to a JS bug, when you change the variant, it won’t pick up the selected variant.

Please send the website link, and I will check it for you

The password from “Online Store”=> Preferences:

This one is safe to share as it does not give any access to your back end.

Can you check a couple of lines in your theme code – actually just this one – is it the same as below?

I suspect it misses the product-:

   {%- assign product_form_id = 'form-' | append: section.id -%}

Need to restore it to the way it is on Github.


if my post is helpful, please like it ♡ and mark as a solution -- this will help others find it
1 Like

Incredible! I tried what you suggested and it seems to be working! I am doing some more testing to ensure, but I TRULY appreciate your kindness in helping, and also doing so so quickly!!