/** * Get display price for row total excluding tax. The Weee amount will be added to row total * depending on Weee display setting * * @param \Magento\Quote\Model\Quote\Item $item * @return float */ private function getRowTotal($item) { $rowTotalExclTax = $item->getRowTotal(); if (!$this->weeeHelper->isEnabled($this->getStoreId())) { return $rowTotalExclTax; } if ($this->getIncludeWeeeFlag()) { return $rowTotalExclTax + $item->getWeeeTaxAppliedRowAmount(); } return $rowTotalExclTax; }
/** * Display row total with discount including tax * * @param Item $item * @return string */ public function displayRowTotalWithDiscountInclTax($item) { $tax = $item->getTaxAmount() ? $item->getTaxAmount() : 0; return $this->formatPrice($item->getRowTotal() - $item->getDiscountAmount() + $tax); }