Skip to content

Commit 2505e23

Browse files
ENGCOM-4635: Fixed assignment of the guest customer to the guest group when 'Automatic Assignment by VAT ID' is enabled #22091
- Merge Pull Request #22091 from vovayatsyuk/magento2:fix-customer-group-assignment-for-empty-vat - Merged commits: 1. b00402d
2 parents 2bca2aa + b00402d commit 2505e23

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)