Liquid, JavaScript, themes, sales channels
In Dawn theme, I'd like to disable my add to cart button for 3 seconds on product pages to allow time for the rest of the page and apps to load. I have an app for customized product options but currently the add to cart button can be selected before they have loaded.
Is it possible to maybe grey out the add to cart or change the text to "loading.." until 3 seconds has passed and then enable it?
Hello @Bellflower ,
Yes it's possible you can use the timeout function.
And to make the button gray, you need to do the logic inside the function.
Thanks
Hi! Thanks for your answer but I'm not sure how to do this. How do I timeout the add to cart button?
okay but in this case you have to go with a developer.
btw if you want you can drop me an email for further discussion.
User | RANK |
---|---|
37 | |
24 | |
13 | |
11 | |
8 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023