Example #1
0
 /**
  * Get original editable price
  *
  * @param Item $item
  * @return float
  */
 public function getOriginalEditablePrice($item)
 {
     if ($item->hasOriginalCustomPrice()) {
         $result = $item->getOriginalCustomPrice() * 1;
     } elseif ($item->hasCustomPrice()) {
         $result = $item->getCustomPrice() * 1;
     } else {
         if ($this->_taxData->priceIncludesTax($this->getStore())) {
             $result = $item->getPriceInclTax() * 1;
         } else {
             $result = $item->getOriginalPrice() * 1;
         }
     }
     return $result;
 }