From 342b051731c1eb7243368c3cd25684044eb00014 Mon Sep 17 00:00:00 2001 From: Caleb Burks <19caleb95@gmail.com> Date: Tue, 4 Jul 2017 03:33:51 -0500 Subject: [PATCH] Only show most recent cart removal notice --- assets/js/frontend/cart.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/frontend/cart.js b/assets/js/frontend/cart.js index ae1432e03de..e5f785be2a9 100644 --- a/assets/js/frontend/cart.js +++ b/assets/js/frontend/cart.js @@ -532,7 +532,9 @@ jQuery( function( $ ) { type: 'GET', url: $a.attr( 'href' ), dataType: 'html', - success: update_wc_div, + success: function( response ) { + update_wc_div( response ); + }, complete: function() { unblock( $form ); unblock( $( 'div.cart_totals' ) );