Hello everyone,
I have a problem in my Dawn theme. As i explaned in subject, when i refresh the page, even with sold out variant selected, the Add to Cart button becomes enabled. This is bad because makes possible buy some product out of stock.
I want that even after refresh page, if variant sold out is selected, the button Add to Cart stay disabled.
This is my code for Add To Cart button.
Any help please?
Regards,
@Vinicius2
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community! 
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
Hi, thanks for trying to help me!
Offcourse!
Link of my store: melhoresnewbasdomundo.com
Password: senhaforte
Regards,
1 Like
Hi @Vinicius2
Currently, I checked your code and saw that it is very similar to the code in the dawn theme
However, it is a little hard to reproduce the error on your store. Maybe there is an app or js on your store that affects the add-to-cart button, so when the page loads for the first time, the button add-to-the-cart button is not disabled for sold-out variants.
You can refer to this video: https://www.loom.com/share/658f7238d01d42d7ac4146b34dea9ec7
So can you kindly share with me access to your theme to check the root of the problem and help you fix it?
Fyi: Shopify Admin => Settings => Users and Permissions => Collaborators => BSS Commerce
I ensure that this will not affect your store data.
1 Like
Hi @BSS-Commerce ,
I have checked “users and permissions” and i don’t see your request for access here. Can you submit the request again?
Or should i set up the permissions manually for you?
About your video, i have tested this behavior with another store too and seems its all ok there. It’s something happening only to my store 
https://www.loom.com/share/658f7238d01d42d7ac4146b34dea9ec7
Regards,
@Vinicius2
i have checked its work properly
@KetanKumar
I don’t think so.
Please, refer this video:
https://www.loom.com/share/658f7238d01d42d7ac4146b34dea9ec7 sended by @BSS-Commerce .
I need to fix this behavior, after refreshing the page.
Regards,