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 8d5f5c5 commit 4de0d01Copy full SHA for 4de0d01
app/code/Magento/Quote/Observer/Frontend/Quote/Address/CollectTotalsObserver.php
@@ -141,11 +141,9 @@ public function execute(Observer $observer)
141
$address->setPrevQuoteCustomerGroupId($quote->getCustomerGroupId());
142
$quote->setCustomerGroupId($groupId);
143
$this->customerSession->setCustomerGroupId($groupId);
144
- if ($customer->getId() !== null) {
145
- $customer->setGroupId($groupId);
146
- $customer->setEmail($customer->getEmail() ?: $quote->getCustomerEmail());
147
- $quote->setCustomer($customer);
148
- }
+ $customer->setGroupId($groupId);
+ $customer->setEmail($customer->getEmail() ?: $quote->getCustomerEmail());
+ $quote->setCustomer($customer);
149
}
150
151
0 commit comments