JS event added to cart $( 'body' ).on( 'added_to_cart', function( e, fragments, cart_hash, this_button ) { alert('product added to cart'); } );