Only show most recent cart removal notice

This commit is contained in:
Caleb Burks 2017-07-04 03:33:51 -05:00
parent 7046b480a0
commit 342b051731
1 changed files with 3 additions and 1 deletions

View File

@ -532,7 +532,9 @@ jQuery( function( $ ) {
type: 'GET', type: 'GET',
url: $a.attr( 'href' ), url: $a.attr( 'href' ),
dataType: 'html', dataType: 'html',
success: update_wc_div, success: function( response ) {
update_wc_div( response );
},
complete: function() { complete: function() {
unblock( $form ); unblock( $form );
unblock( $( 'div.cart_totals' ) ); unblock( $( 'div.cart_totals' ) );