File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
app/code/Magento/Checkout/view/frontend/web/js/view/cart Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,13 @@ define(
7878 }
7979
8080 if ( ! quote . isVirtual ( ) ) {
81- checkoutProvider . on ( 'shippingAddress' , function ( shippingAddressData ) {
82- checkoutData . setShippingAddressFromData ( shippingAddressData ) ;
83- } ) ;
81+ checkoutProvider . on ( 'shippingAddress' , function ( shippingAddressData ) {
82+ if ( quote . shippingAddress ( ) . countryId !== shippingAddressData . country_id ||
83+ ( shippingAddressData . postcode || shippingAddressData . region_id )
84+ ) {
85+ checkoutData . setShippingAddressFromData ( shippingAddressData ) ;
86+ }
87+ } ) ;
8488 } else {
8589 checkoutProvider . on ( 'shippingAddress' , function ( shippingAddressData ) {
8690 checkoutData . setBillingAddressFromData ( shippingAddressData ) ;
You can’t perform that action at this time.
0 commit comments