Why my Dawn theme 15.3 such functions suddenly not work? Functions like variant selection, select variants and Add to Cart, and product images not clickable, click variant and variant images not show up on main image.
Any one can Help?
A Dawn theme 15.3 user experienced critical functionality failures: variant selection stopped working, Add to Cart became disabled, and product images were unclickable. The issue occurred after editing code in main-product-collection-grid.liquid to fix filtering.
Root Cause Identified:
The problem stemmed from moving critical JavaScript files (global.js, product-form.js, etc.) from the top to the bottom of layouts/theme.liquid—likely an attempted performance optimization that broke core functionality.
Solution:
Moving the script tags back to their proper position at the top of theme.liquid (as per Dawn’s default structure) resolved the issue, restoring variant selection and cart functionality.
Key Takeaway:
This illustrates a common pitfall where well-intentioned performance optimizations can severely damage conversion-critical features. The discussion emphasizes the importance of proper code placement and testing changes thoroughly before deployment.
Why my Dawn theme 15.3 such functions suddenly not work? Functions like variant selection, select variants and Add to Cart, and product images not clickable, click variant and variant images not show up on main image.
Any one can Help?
Can you please share example product page where you see the problem.
Have you done some changes in your code or installed some app recently?
Usually it won’t broke just randomly.
Helloe Farid
I tried to edited some code in main-product-collection-grid.liquid to fix the filter function today. This is a sample product which I can not select variants/images etc. STUPA Incense Sticks 15/pack – Singo♯ Thanks
I see it is adding wrong variant to cart
There is two things you can do.
First try reverting code but if you feel lost just installing a fresh copy of Dawn will solve the problem for you.
Whose idea was to move these to the bottom of your layouts/theme.liquid?
That’s not a proper speed optimization.
Get them back to top:
Good evening Tim, I moved this part to the top, it seems a solution as I can select variants and add to cart. Good job!