Skip to content

Commit 7d481bd

Browse files
Fixed Magento is no refreshing the cart page if you delete a product from cart side block(reload only cart block)
1 parent c08dffb commit 7d481bd

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Checkout/view/frontend/web/js

1 file changed

+3
-3
lines changed

app/code/Magento/Checkout/view/frontend/web/js/sidebar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,13 @@ define([
306306
}
307307
})
308308
.done(function (response) {
309-
var msg;
309+
var msg, currentURL;
310310

311311
if (response.success) {
312312
callback.call(this, elem, response);
313-
var currentURL = window.location.pathname;
313+
currentURL = window.location.pathname;
314314
if (currentURL.includes("/checkout/cart/")) {
315-
location.reload();
315+
$("#shopping-cart-table").trigger('contentUpdated');
316316
}
317317
} else {
318318
msg = response['error_message'];

0 commit comments

Comments
 (0)