Skip to content

Commit b27335d

Browse files
committed
MC-18191: Customer cart section on reloads each web transaction
1 parent 0012541 commit b27335d

File tree

1 file changed

+10
-10
lines changed
  • app/code/Magento/Checkout/view/frontend/web/js/model/cart/totals-processor

1 file changed

+10
-10
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/cart/totals-processor/default.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ define([
8787
data.shippingCarrierCode = quote.shippingMethod()['carrier_code'];
8888
}
8989

90-
if (!cartCache.isChanged('cartVersion', customerData.get('cart')()['data_id']) &&
91-
!cartCache.isChanged('shippingMethodCode', data.shippingMethodCode) &&
92-
!cartCache.isChanged('shippingCarrierCode', data.shippingCarrierCode) &&
93-
!cartCache.isChanged('address', address) &&
94-
cartCache.get('totals') &&
95-
!cartCache.isChanged('subtotal', parseFloat(quote.totals().subtotal))
96-
) {
97-
quote.setTotals(cartCache.get('totals'));
98-
} else {
90+
// if (!cartCache.isChanged('cartVersion', customerData.get('cart')()['data_id']) &&
91+
// !cartCache.isChanged('shippingMethodCode', data.shippingMethodCode) &&
92+
// !cartCache.isChanged('shippingCarrierCode', data.shippingCarrierCode) &&
93+
// !cartCache.isChanged('address', address) &&
94+
// cartCache.get('totals') &&
95+
// !cartCache.isChanged('subtotal', parseFloat(quote.totals().subtotal))
96+
// ) {
97+
// quote.setTotals(cartCache.get('totals'));
98+
// } else {
9999
return loadFromServer(address);
100-
}
100+
// }
101101
}
102102
};
103103
});

0 commit comments

Comments
 (0)