Esempio n. 1
0
 /**
  * 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';
 }
Esempio n. 2
0
 /**
  * @param mixed $totals
  * @param null $colspan
  * @return string
  */
 public function renderTotals($totals, $colspan = null)
 {
     if ($colspan === null) {
         $colspan = $this->_taxHelper->displayCartBothPrices() ? 5 : 3;
     }
     $totals = $this->getChildBlock('totals')->setTotals($totals)->renderTotals('', $colspan) . $this->getChildBlock('totals')->setTotals($totals)->renderTotals('footer', $colspan);
     return $totals;
 }
Esempio n. 3
0
 /**
  * Return whether display setting is to display both price including tax and price excluding tax
  *
  * @return bool
  */
 public function displayBothPrices()
 {
     switch ($this->zone) {
         case PricingRender::ZONE_CART:
             return $this->taxHelper->displayCartBothPrices($this->storeId);
         case PricingRender::ZONE_EMAIL:
         case PricingRender::ZONE_SALES:
             return $this->taxHelper->displaySalesBothPrices($this->storeId);
         default:
             return $this->taxHelper->displayCartBothPrices($this->storeId);
     }
 }