notify script plugins that the cart was emptied
This commit is contained in:
parent
507f67cb38
commit
3fae170c14
|
@ -95,6 +95,9 @@ jQuery( function( $ ) {
|
|||
if ( $notices.length > 0 ) {
|
||||
show_notice( $notices );
|
||||
}
|
||||
|
||||
// Notify plugins that the cart was emptied.
|
||||
$( document.body ).trigger( 'updated_cart_emptied' );
|
||||
} else {
|
||||
// If the checkout is also displayed on this page, trigger update event.
|
||||
if ( $( '.woocommerce-checkout' ).length ) {
|
||||
|
|
Loading…
Reference in New Issue