File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
app/code/Magento/Checkout/view/frontend/web/js/model/cart Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,13 @@ define([
19
19
quote . shippingAddress . subscribe ( function ( ) {
20
20
var type = quote . shippingAddress ( ) . getType ( ) ;
21
21
22
- totalsProcessors [ 'default' ] = totalsDefaultProvider ;
23
- totalsProcessors [ type ] ?
24
- totalsProcessors [ type ] . estimateTotals ( quote . shippingAddress ( ) ) :
25
- totalsProcessors [ 'default' ] . estimateTotals ( quote . shippingAddress ( ) ) ;
26
-
27
- if ( ! quote . isVirtual ( ) ) {
22
+ if ( quote . isVirtual ( ) || window . checkoutConfig . activeCarriers . length ( ) === 0 ) {
23
+ // update totals block when estimated address was set
24
+ totalsProcessors [ 'default' ] = totalsDefaultProvider ;
25
+ totalsProcessors [ type ] ?
26
+ totalsProcessors [ type ] . estimateTotals ( quote . shippingAddress ( ) ) :
27
+ totalsProcessors [ 'default' ] . estimateTotals ( quote . shippingAddress ( ) ) ;
28
+ } else {
28
29
// check if user data not changed -> load rates from cache
29
30
if ( ! cartCache . isChanged ( 'address' , quote . shippingAddress ( ) ) &&
30
31
! cartCache . isChanged ( 'cartVersion' , customerData . get ( 'cart' ) ( ) [ 'data_id' ] ) &&
You can’t perform that action at this time.
0 commit comments