Skip to content

Commit b00402d

Browse files
committed
Fixed assignment of the guest customer to the guest group.
This commit fixes the case when guest fills in valid VAT number, then returns to the shipping step and removes VAT from the address.
1 parent 2bca2aa commit b00402d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Quote/Observer/Frontend/Quote/Address/CollectTotalsObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
124124
);
125125
}
126126

127-
if ($groupId) {
127+
if ($groupId !== null) {
128128
$address->setPrevQuoteCustomerGroupId($quote->getCustomerGroupId());
129129
$quote->setCustomerGroupId($groupId);
130130
$this->customerSession->setCustomerGroupId($groupId);

0 commit comments

Comments
 (0)