Price varient not updaing in shop item

Topic summary

Variant prices on a Shopify product page are not updating when switching options (e.g., 500GM $82 to 1200GM $240) unless the page is refreshed. The price also updates after adding to cart, indicating the issue is with on-page variant change handling.

  • Evidence: A console error appears when changing variants (screenshots provided), suggesting a JavaScript/theme issue rather than inventory or data. The relevant file mentioned is product.selector.js.
  • Context: Theme is Sahara (third‑party). Inventory is ample (2,000 per variant), so stock status isn’t the cause.
  • Actions taken: Code was reverted; author confirmed no custom changes to product.selector.js. Store collaborator access was granted to a helper, who appears to have resolved it temporarily.
  • Latest update: The problem recurred without any reported changes. On the live site, the price fails to refresh when toggling sizes but reflects correctly after adding to cart.

Status: Unresolved/recurring. Likely theme JavaScript/template issue tied to variant change events. Key follow-up is rechecking the console error and variant-change logic in the theme (especially product.selector.js and associated templates). Attachments (console screenshots) are central to diagnosing the error.

Summarized with AI on December 21. AI used: gpt-5.

Hi there,

I’ve noticed that my shop items that have variants are not changing in price

EG: https://ff3bbd-4.myshopify.com/products/aloeswood-candle?variant=48748363874596

When changing between the two variants (500GM and 1200GM) the price doesn’t update 500GM is set to $82 and 1200GM is set to $240. IF you change to 1200GM then refresh the page the price does come up.

I have tried reverting all code and still no luck - Has anyone had success in getting this fixed?

Thank you!

Hi, @Joelc09

When changing between the two variants, there is an error appearing in the console.

You should check the code here.

1 Like

Thanks for your reply AnneLuo.

I’ve got the same error, and just checked the code out in prodcut.selector.js and none of it has been changed. Could it be a template issue?

Are the variants of this product in stock? Which theme are you using?

I have put 2000 items in stock for each variant and still no luck

I am using a paid one - Sahara - Ecommerce Website Template - https://themes.shopify.com/themes/sahara/styles/sahara

I can help you check it out. So I need to access your store as a collaborator if possible.

That would be amazing! I’ll send you a login request

@AnneLuo has been an absolute star, I can’t thank you enough for your help!

Hi @AnneLuo my website has randomly stopped loading the price again - so frustrating! could you please help me to why this has triggered again, nothing has been altered.

Reference: https://bordan.com.au/products/driftwood-candle?variant=48748221661476

Once you add to card the price updates within that but it doesn’t refresh when toggling the candle sizes