Skip to content

Commit 79da45d

Browse files
committed
Price of product in cart affected by catalog price rule does not change when rule is adjusted by the staging update
1 parent 3b66dd4 commit 79da45d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Checkout/view/frontend/web/js/cart/ensure-subtotal-sync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ define([
3939
$root.find('#shopping-cart-table .col.subtotal .cart-price').each(function () {
4040
const text = $(this).text();
4141
const val = parsePrice(text);
42+
4243
if (!isNaN(val)) {
4344
sum += val;
4445
}
@@ -56,8 +57,7 @@ define([
5657
if (clicked) {
5758
return;
5859
}
59-
const central = getCentralSubtotal();
60-
const summary = getSummarySubtotal();
60+
const central = getCentralSubtotal(), summary = getSummarySubtotal();
6161
if (!isNaN(central) && !isNaN(summary) && central !== summary) {
6262
const $updateBtn = $root.find('.cart.main.actions button.action.update');
6363
if ($updateBtn.length) {

0 commit comments

Comments
 (0)