/** * Get review item price display mode * * @return string 'both', 'including', 'excluding' */ public function getReviewTotalsDisplayMode() { if ($this->taxConfig->displayCartSubtotalBoth()) { return 'both'; } if ($this->taxConfig->displayCartSubtotalExclTax()) { return 'excluding'; } return 'including'; }
/** * Get totals config * * @return array */ protected function getTotalsConfig() { return ['display_subtotal_incl_tax' => (int) $this->taxConfig->displayCartSubtotalInclTax(), 'display_cart_subtotal_excl_tax' => (int) $this->taxConfig->displayCartSubtotalExclTax()]; }
/** * Return whether subtotal should be displayed excluding tax * * @return bool */ public function getDisplaySubtotalExclTax() { return $this->_taxConfig->displayCartSubtotalExclTax(); }