quoteSession = $quoteSession; $this->groupManagement = $groupManagement; } /** * @inheritdoc */ public function getCustomerGroupId() { if ($this->quoteSession->getQuoteId() && $this->quoteSession->getQuote()) { return $this->quoteSession->getQuote()->getCustomerGroupId(); } return $this->groupManagement->getNotLoggedInGroup()->getId(); } }