You can attach your click event to all potential add to cart buttons. You can match on specific CSS classes.
Another alternative would be to intercept the AJAX call to add to cart endpoints, execute your piece and forward the request further. Should be used with care.
Hi @tsuj,
You can found an ajax success event on the theme.js code.
Please contact me on my email to implement it.
User | Count |
---|---|
25 | |
21 | |
20 | |
16 | |
15 |