_taxConfig = $taxConfig; parent::__construct($context, $customerSession, $checkoutSession, $salesConfig, $layoutProcessors, $data); $this->_isScopePrivate = true; } /** * Check if we have include tax amount between grandtotal incl/excl tax * * @return bool */ public function includeTax() { if ($this->getTotal()->getValue()) { return $this->_taxConfig->displayCartTaxWithGrandTotal($this->getStore()); } return false; } /** * Get grandtotal exclude tax * * @return float */ public function getTotalExclTax() { $excl = $this->getTotal()->getValue() - $this->_totals['tax']->getValue(); $excl = max($excl, 0); return $excl; } }