We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c08dffb commit 7d481bdCopy full SHA for 7d481bd
app/code/Magento/Checkout/view/frontend/web/js/sidebar.js
@@ -306,13 +306,13 @@ define([
306
}
307
})
308
.done(function (response) {
309
- var msg;
+ var msg, currentURL;
310
311
if (response.success) {
312
callback.call(this, elem, response);
313
- var currentURL = window.location.pathname;
+ currentURL = window.location.pathname;
314
if (currentURL.includes("/checkout/cart/")) {
315
- location.reload();
+ $("#shopping-cart-table").trigger('contentUpdated');
316
317
} else {
318
msg = response['error_message'];
0 commit comments