Add onclick event to WooCommerce Add To Cart button

I’m wondering how to add an onclick event to the WooCommerce default ‘Add to cart’ button without editing the plugin itself.

I’ve created a function in Js, just need to call it on click via the ‘Add to cart’ button.

Any ideas?

Thanks

Read more here:: Add onclick event to WooCommerce Add To Cart button

Leave a Reply

Your email address will not be published. Required fields are marked *