Skip to content

Commit 895c3ac

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 79da45d commit 895c3ac

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
@@ -37,8 +37,7 @@ define([
3737
// Sum of row totals on the table
3838
let sum = 0;
3939
$root.find('#shopping-cart-table .col.subtotal .cart-price').each(function () {
40-
const text = $(this).text();
41-
const val = parsePrice(text);
40+
const text = $(this).text(), val = parsePrice(text);
4241

4342
if (!isNaN(val)) {
4443
sum += val;
@@ -50,6 +49,7 @@ define([
5049
function getSummarySubtotal() {
5150
// Summary subtotal in cart totals knockout template
5251
const text = $('#cart-totals .totals.sub .amount .price').first().text();
52+
5353
return parsePrice(text);
5454
}
5555

0 commit comments

Comments
 (0)