Why is my Dawn Theme 4.0 variant pricing not displaying correctly?

Topic summary

Variant prices show as the lowest price regardless of selected options across products on a Shopify store using Dawn Theme 4.0.

  • Proposed fix: add/update an updateMasterId() function that sets currentVariant by matching selected options to variant options.

  • Initial instruction referenced variants.js, but clarification states Dawn 4.0 does not include that file; the function should be added in Assets/global.js. A screenshot was shared to show file location.

  • Follow-ups: some users say the function is already present in global.js or adding it did not solve the issue. One user on the Expanse theme added it to theme.js without success and requested an Expanse-specific solution.

  • Additional questions remain about the exact placement within the file (e.g., bottom of global.js) and alternative fixes when the function already exists.

  • Attachments/links: product URL provided for context; one image indicates where to find global.js.

Status: No confirmed resolution. Key open items include precise code placement, a working approach for Expanse, and what to do when the function is already present but pricing still defaults to the lowest variant.

Summarized with AI on January 8. AI used: gpt-5.

HI, I seem to be having the same issue when changing my theme from Debut to Expanse, tried your fix above (had to put in my theme.js)

updateMasterId() {
this.currentVariant = this.getVariantData().find((variant) => {
return !variant.options.map((option, index) => {
return this.options[index] === option;
}).includes(false);
});
}

but it is not working, do you have an alternative for the Expanse theme at all, would really appreciate any feedback, thanks :slightly_smiling_face: