File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
app/code/Magento/Checkout/Block Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,10 @@ public function process($jsLayout)
108
108
'country_id ' => $ this ->countryCollection ->loadByStore ()->toOptionArray (),
109
109
'region_id ' => $ this ->regionCollection ->addAllowedCountriesFilter ()->toOptionArray (),
110
110
];
111
+ $ layoutdata = $ jsLayout ['components ' ]['checkoutProvider ' ]['dictionaries ' ]['country_id ' ];
112
+ if (count ( $ layoutdata )==2 && $ layoutdata [0 ]['value ' ]=='' ){
113
+ unset($ jsLayout ['components ' ]['checkoutProvider ' ]['dictionaries ' ]['country_id ' ][0 ] );
114
+ }
111
115
}
112
116
113
117
if (isset ($ jsLayout ['components ' ]['block-summary ' ]['children ' ]['block-shipping ' ]['children ' ]
Original file line number Diff line number Diff line change @@ -77,6 +77,10 @@ public function process($jsLayout)
77
77
'country_id ' => $ this ->getCountryOptions (),
78
78
'region_id ' => $ this ->getRegionOptions (),
79
79
];
80
+ $ layoutdata = $ jsLayout ['components ' ]['checkoutProvider ' ]['dictionaries ' ]['country_id ' ];
81
+ if (count ( $ layoutdata )==2 && $ layoutdata [0 ]['value ' ]=='' ){
82
+ unset($ jsLayout ['components ' ]['checkoutProvider ' ]['dictionaries ' ]['country_id ' ][0 ] );
83
+ }
80
84
}
81
85
82
86
return $ jsLayout ;
You can’t perform that action at this time.
0 commit comments