/** * Get review item price display mode * * @return string 'both', 'including', 'excluding' */ public function getReviewItemPriceDisplayMode() { if ($this->taxHelper->displayCartBothPrices()) { return 'both'; } if ($this->taxHelper->displayCartPriceExclTax()) { return 'excluding'; } return 'including'; }
/** * Return whether display setting is to display price excluding tax * * @return bool */ public function displayPriceExclTax() { switch ($this->zone) { case PricingRender::ZONE_CART: return $this->taxHelper->displayCartPriceExclTax($this->storeId); case PricingRender::ZONE_EMAIL: case PricingRender::ZONE_SALES: return $this->taxHelper->displaySalesPriceExclTax($this->storeId); default: return $this->taxHelper->displayCartPriceExclTax($this->storeId); } }