We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6cf182 commit 8261058Copy full SHA for 8261058
app/code/Magento/Quote/Observer/Frontend/Quote/Address/CollectTotalsObserver.php
@@ -111,6 +111,8 @@ public function execute(\Magento\Framework\Event\Observer $observer)
111
if (empty($customerCountryCode) && empty($customerVatNumber) && $customer->getDefaultShipping()) {
112
$customerAddress = $this->addressRepository->getById($customer->getDefaultShipping());
113
114
+ $address->setCountryId($customerAddress->getCountryId());
115
+ $address->setVatId($customerAddress->getVatId());
116
$customerCountryCode = $customerAddress->getCountryId();
117
$customerVatNumber = $customerAddress->getVatId();
118
}
0 commit comments