Skip to content

Commit 60a465c

Browse files
Fixed Magento is no refreshing the cart page if you delete a product from cart side block
1 parent 18dc53f commit 60a465c

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ define([
310310

311311
if (response.success) {
312312
callback.call(this, elem, response);
313+
var currentURL = window.location.pathname;
314+
if (url.includes("/checkout/cart/")) {
315+
location.reload();
316+
}
313317
} else {
314318
msg = response['error_message'];
315319

0 commit comments

Comments
 (0)