Skip to content

Commit 60576f6

Browse files
MAGETWO-55301: Enable tax rate calculation on address change without shipping methods
1 parent 8e185a2 commit 60576f6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/cart/estimate-service.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ define([
1919
quote.shippingAddress.subscribe(function () {
2020
var type = quote.shippingAddress().getType();
2121

22-
if (quote.isVirtual() || quote.shippingAddress().isEditable()) {
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 {
22+
totalsProcessors['default'] = totalsDefaultProvider;
23+
totalsProcessors[type] ?
24+
totalsProcessors[type].estimateTotals(quote.shippingAddress()) :
25+
totalsProcessors['default'].estimateTotals(quote.shippingAddress());
26+
27+
if (!quote.isVirtual()) {
2928
// check if user data not changed -> load rates from cache
3029
if (!cartCache.isChanged('address', quote.shippingAddress()) &&
3130
!cartCache.isChanged('cartVersion', customerData.get('cart')()['data_id']) &&

0 commit comments

Comments
 (0)