To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more

JS selector for the Add To Cart button

New Member
6 0 0


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,


Replies 4 (4)
Shopify Partner
892 101 157

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


- Was my reply helpful? Click Like or Click Accept as Solution
To hire: email us at
checkout our app
New Member
6 0 0
It’s not shop specific I want it to work on all stores
Shopify Partner
4 0 4

Hi @Ralph6 ,


Were you able to find the solution?

Were you able to find for checkout as well?

Shopify Partner
2825 538 766



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,