update trigger name to `wc_cart_emptied`
This commit is contained in:
parent
3fae170c14
commit
5bba703723
|
@ -97,7 +97,7 @@ jQuery( function( $ ) {
|
|||
}
|
||||
|
||||
// Notify plugins that the cart was emptied.
|
||||
$( document.body ).trigger( 'updated_cart_emptied' );
|
||||
$( document.body ).trigger( 'wc_cart_emptied' );
|
||||
} else {
|
||||
// If the checkout is also displayed on this page, trigger update event.
|
||||
if ( $( '.woocommerce-checkout' ).length ) {
|
||||
|
|
Loading…
Reference in New Issue