File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
app/code/Magento/Checkout/view/frontend/web/js/model/cart/totals-processor Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -87,17 +87,17 @@ define([
87
87
data . shippingCarrierCode = quote . shippingMethod ( ) [ 'carrier_code' ] ;
88
88
}
89
89
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 {
99
99
return loadFromServer ( address ) ;
100
- }
100
+ // }
101
101
}
102
102
} ;
103
103
} ) ;
You can’t perform that action at this time.
0 commit comments