Liquid, JavaScript, themes, sales channels
Hi,
I would like to add a on click function to the add to cart button, but I can’t seem to figure out where this object is located. I was wondering if there was a javascript script that could return the DOM object of the ATC button, that would work on all different kinds of themes. If there isnt do you have an idea to point me in the right direction of building one.
Kind Regards,
Ralph
can you please share the store URL? You can try addEventListener
@romie
Please:
1. create a new question with the details of what you are trying to achieve;
2. share your store URL
3. tag me there, I'll try to help you.
Kind regards,
Diego
This blog post is a recap of the webinar Getting Ready For BFCM: How To Run A Flash Sal...
By Jacqui Oct 3, 2023Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023