Skip to content

Commit 4719d15

Browse files
committed
MAGETWO-60110: [Github] Shipping Estimation Address is Merged with Customer Default Address during Checkout #6869
1 parent 76315a6 commit 4719d15

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)