From 02fb41fad2638abf5d92dfe527af378668758221 Mon Sep 17 00:00:00 2001 From: Thomas Klein Date: Wed, 16 Apr 2025 17:06:07 +0200 Subject: [PATCH] Fix: Allow to fetch tax class ID for NOT LOGGED IN customer group --- app/code/Magento/Catalog/Helper/Data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Catalog/Helper/Data.php b/app/code/Magento/Catalog/Helper/Data.php index 0d38072aa4980..96932dc3a42d9 100644 --- a/app/code/Magento/Catalog/Helper/Data.php +++ b/app/code/Magento/Catalog/Helper/Data.php @@ -550,7 +550,7 @@ public function getTaxPrice( $taxClassKey->setType(TaxClassKeyInterface::TYPE_ID) ->setValue($product->getTaxClassId()); - if ($ctc === null && $this->_customerSession->getCustomerGroupId() != null) { + if ($ctc === null && $this->_customerSession->getCustomerGroupId() !== null) { $ctc = $this->customerGroupRepository->getById($this->_customerSession->getCustomerGroupId()) ->getTaxClassId(); }