3

you have this line if(customerGroup == 'ID/5'){ customerGroup does not have the variable sign $ in front of it. But even if you add it, you will get an error because the variable is not defined. I guess you want something like $customerGroup = $this->customerSession->getCustomer()->getGroupId();


Only top voted, non community-wiki answers of a minimum length are eligible