Beispiel #1
0
 /**
  * Returns original amount
  *
  * @param \Magento\Catalog\Model\Product $product
  * @return int
  */
 public function getOriginalAmount($product)
 {
     if ($this->isEnabled()) {
         return $this->_weeeTax->getWeeeAmount($product, null, null, null, false, true);
     }
     return 0;
 }
Beispiel #2
0
 /**
  * Returns amount to display
  *
  * @param \Magento\Catalog\Model\Product $product
  * @return int
  */
 public function getAmountForDisplay($product)
 {
     /** @var \Magento\Store\Model\Store $store */
     $store = $product->getStore();
     if ($this->isEnabled($store)) {
         return $this->_weeeTax->getWeeeAmount($product, null, null, null, $this->typeOfDisplay(1));
     }
     return 0;
 }