In the dawn13.0.1 theme, I added an add-to-cart button to the product details page, but my button did not change according to the variant. Because I have multiple variants, when the inventory of one variant is 0, the button cannot become unclickable and the word “sold out” cannot be displayed. How can I modify it?
Topic summary
A user is experiencing an issue with a custom add-to-cart button on the Dawn 13.0.1 theme’s product page. The button fails to update dynamically when switching between product variants.
Core Problem:
- When a variant has zero inventory, the button doesn’t become disabled or display “sold out”
- The button doesn’t synchronize with variant selection changes
Current Status:
- User provided store access credentials (test-happiewat.myshopify.com, password: 123123)
- The issue is visible via a floating button on product pages
- Access approval was granted
- No solution has been shared yet
- Another user has requested the solution once available
The discussion remains open with the original poster following up for updates and awaiting technical guidance on modifying the button’s variant-responsive behavior.
The application permission has been sent to your email, please check it
Our website is https://test-happiewat.myshopify.com/, and the password is 123123.
Click on this product from the homepage and you will see a floating button.
My requirement is that if I click to switch different variants, can it be synchronized?
Hi, is there any update you can share with me?
Approval passed
Please share the solution to this.