Woocommerce: custom jquery event after added to cart
-
Im trying handle event after some product was added to cart, I want catch that moment and update “Total number of products” of my mini cart in navigation menu.
Not working by me seccond code:
$( document.body ).on( 'added_to_cart', function(){ console.log('added_to_cart'); });
My custom code inited after when woocommerce js files are loaded.
If I will edit add-to-cart.min.js core file and insert my own logic, all is working. What problem is?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Woocommerce: custom jquery event after added to cart’ is closed to new replies.