Skip to content

Commit 0dce8c8

Browse files
committed
AC-16096: [Cart] Shopping cart page is not loading when Fixed product Tax is enable
Modified getCentralSubtotal() in ensure-subtotal-sync.js to specifically select .price-excluding-tax elements when calculating row totals. This ensures the central subtotal calculation matches the summary subtotal display, preventing the infinite refresh loop.
1 parent 410b59d commit 0dce8c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ define([
4444
// Sum of row totals on the table
4545
let sum = 0;
4646

47-
$root.find('#shopping-cart-table .col.subtotal .cart-price').each(function () {
47+
$root.find('#shopping-cart-table .col.subtotal .price-excluding-tax .cart-price').each(function () {
4848
const text = $(this).text(), val = parsePrice(text);
4949

5050
if (!isNaN(val)) {

0 commit comments

Comments
 (0)