File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
app/code/Magento/Checkout/view/frontend/web/js/model/cart Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,8 @@ define([
37
37
// check if user data not changed -> load rates from cache
38
38
if ( ! cartCache . isChanged ( 'address' , quote . shippingAddress ( ) ) &&
39
39
! cartCache . isChanged ( 'cartVersion' , customerData . get ( 'cart' ) ( ) [ 'data_id' ] ) &&
40
- cartCache . get ( 'rates' ) //&& cartCache.get('totals')
40
+ cartCache . get ( 'rates' )
41
41
) {
42
-
43
42
shippingService . setShippingRates ( cartCache . get ( 'rates' ) ) ;
44
43
quote . setTotals ( cartCache . get ( 'totals' ) ) ;
45
44
return ;
@@ -57,9 +56,8 @@ define([
57
56
} ) ;
58
57
59
58
// update totals based on updated shipping address / rates changes
60
- if ( cartCache . get ( 'address' ) &&
61
- ( ! quote . shippingMethod ( ) || ! quote . shippingMethod ( ) [ 'method_code' ] )
62
- ) {
59
+ if ( customerData . get ( 'cart' ) ( ) [ 'data_id' ] &&
60
+ ( ! quote . shippingMethod ( ) || ! quote . shippingMethod ( ) [ 'method_code' ] ) ) {
63
61
totalsDefaultProvider . estimateTotals ( quote . shippingAddress ( ) ) ;
64
62
}
65
63
}
@@ -87,9 +85,6 @@ define([
87
85
}
88
86
} ;
89
87
90
- /*if (!quote.shippingMethod() && cartCache.get('rates')) {
91
- selectShippingMethodAction(cartCache.get('rates')[0]);
92
- }*/
93
88
quote . shippingAddress . subscribe ( estimateTotalsAndUpdateRates ) ;
94
89
quote . shippingMethod . subscribe ( estimateTotalsShipping ) ;
95
90
quote . billingAddress . subscribe ( estimateTotalsBilling ) ;
You can’t perform that action at this time.
0 commit comments