Skip to content

Commit f3ea749

Browse files
MAGETWO-55301: Enable tax rate calculation on address change without shipping methods
1 parent be1fad9 commit f3ea749

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/shipping-rates-validator.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
define([
1010
'jquery',
1111
'ko',
12-
'mageUtils',
1312
'./shipping-rates-validation-rules',
1413
'../model/address-converter',
1514
'../action/select-shipping-address',
@@ -22,7 +21,6 @@ define([
2221
], function (
2322
$,
2423
ko,
25-
utils,
2624
shippingRatesValidationRules,
2725
addressConverter,
2826
selectShippingAddress,

app/code/Magento/Tax/view/frontend/web/js/view/checkout/summary/tax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ define([
1313
'Magento_Checkout/js/model/quote',
1414
'Magento_Checkout/js/model/totals',
1515
'Magento_Checkout/js/model/cart/totals-processor/default'
16-
], function (ko, Component, quote, totals, totalsDefaultProvider) {
16+
], function (ko, Component, quote, totals, totalsDefaultProcessor) {
1717
'use strict';
1818

1919
var isTaxDisplayedInGrandTotal = window.checkoutConfig.includeTaxInGrandTotal,
2020
isFullTaxSummaryDisplayed = window.checkoutConfig.isFullTaxSummaryDisplayed,
2121
isZeroTaxDisplayed = window.checkoutConfig.isZeroTaxDisplayed;
2222

2323
quote.shippingAddress.subscribe(function () {
24-
totalsDefaultProvider.estimateTotals(quote.shippingAddress());
24+
totalsDefaultProcessor.estimateTotals(quote.shippingAddress());
2525
});
2626

2727
return Component.extend({

0 commit comments

Comments
 (0)