File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Quote/Observer/Frontend/Quote/Address Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,11 @@ public function execute(\Magento\Framework\Event\Observer $observer)
111
111
if (empty ($ customerCountryCode ) && empty ($ customerVatNumber ) && $ customer ->getDefaultShipping ()) {
112
112
$ customerAddress = $ this ->addressRepository ->getById ($ customer ->getDefaultShipping ());
113
113
114
- $ address ->setCountryId ($ customerAddress ->getCountryId ());
115
- $ address ->setVatId ($ customerAddress ->getVatId ());
116
114
$ customerCountryCode = $ customerAddress ->getCountryId ();
117
115
$ customerVatNumber = $ customerAddress ->getVatId ();
116
+ $ address ->setCountryId ($ customerCountryCode );
117
+ $ address ->setVatId ($ customerVatNumber );
118
+
118
119
}
119
120
120
121
$ groupId = null ;
You can’t perform that action at this time.
0 commit comments