Skip to content

Commit 777330c

Browse files
Merge branch 'MAGETWO-60110' of github.com:magento-folks/magento2ce into checkout_bugs
2 parents 8bde202 + 93af241 commit 777330c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/cart/shipping-estimation.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,13 @@ define(
5050
if (address) {
5151
estimatedAddress = address.isEditable() ?
5252
addressConverter.quoteAddressToFormAddressData(address) :
53-
addressConverter.quoteAddressToFormAddressData(
54-
addressConverter.addressToEstimationAddress(address)
55-
);
53+
{
54+
// only the following fields must be used by estimation form data provider
55+
'country_id': address.countryId,
56+
region: address.region,
57+
'region_id': address.regionId,
58+
postcode: address.postcode
59+
};
5660
checkoutProvider.set(
5761
'shippingAddress',
5862
$.extend({}, checkoutProvider.get('shippingAddress'), estimatedAddress)

0 commit comments

Comments
 (0)