Esempio n. 1
0
 /**
  * Get item editable price
  *
  * @param Item $item
  * @return float
  */
 public function getItemEditablePrice($item)
 {
     return $item->getCalculationPrice() * 1;
 }
 /**
  * Get display price for unit price excluding tax. The Weee amount will be added to unit price
  * depending on Weee display setting
  *
  * @param \Magento\Quote\Model\Quote\Item $item
  * @return float
  */
 private function getUnitDisplayPriceExclTax($item)
 {
     $priceExclTax = $item->getCalculationPrice();
     if (!$this->weeeHelper->isEnabled($this->getStoreId())) {
         return $priceExclTax;
     }
     if ($this->getIncludeWeeeFlag()) {
         return $priceExclTax + $item->getWeeeTaxAppliedAmount();
     }
     return $priceExclTax;
 }