protected function getContext($displayGross, $discount = null) { $context = parent::getContext(); $data = array('key' => 'BAK', 'tax' => $displayGross); $context->setFallbackCustomerGroup($this->converter->convertCustomerGroup($this->helper->createCustomerGroup($data))); $context->getCurrentCustomerGroup()->setDisplayGrossPrices($displayGross); $context->getCurrentCustomerGroup()->setUseDiscount($discount !== null); $context->getCurrentCustomerGroup()->setPercentageDiscount($discount); return $context; }
protected function getContext() { $context = parent::getContext(); $context->setFallbackCustomerGroup($this->converter->convertCustomerGroup($this->helper->createCustomerGroup(array('key' => 'BACK')))); return $context; }