JS selector for the Add To Cart button

Highlighted
New Member
4 0 0

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

0 Likes
Highlighted
Shopify Partner
599 71 98

can you please share the store URL? You can try addEventListener

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

Skype : lokendra.panwar1

To hire: email us at shopify@propero.in
0 Likes
Highlighted
New Member
4 0 0
It’s not shop specific I want it to work on all stores
0 Likes