update trigger name to `wc_cart_emptied`

This commit is contained in:
Ron Rennick 2019-01-16 10:36:35 -04:00
parent 3fae170c14
commit 5bba703723
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {