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 79da45d commit 895c3acCopy full SHA for 895c3ac
app/code/Magento/Checkout/view/frontend/web/js/cart/ensure-subtotal-sync.js
@@ -37,8 +37,7 @@ define([
37
// Sum of row totals on the table
38
let sum = 0;
39
$root.find('#shopping-cart-table .col.subtotal .cart-price').each(function () {
40
- const text = $(this).text();
41
- const val = parsePrice(text);
+ const text = $(this).text(), val = parsePrice(text);
42
43
if (!isNaN(val)) {
44
sum += val;
@@ -50,6 +49,7 @@ define([
50
49
function getSummarySubtotal() {
51
// Summary subtotal in cart totals knockout template
52
const text = $('#cart-totals .totals.sub .amount .price').first().text();
+
53
return parsePrice(text);
54
}
55
0 commit comments