Example #1
0
 /**
  * Apply special price for product if not return price that was before
  *
  * @param   Product $product
  * @param   float $finalPrice
  * @return  float
  */
 protected function _applySpecialPrice($product, $finalPrice)
 {
     return $this->calculateSpecialPrice($finalPrice, $product->getSpecialPrice(), $product->getSpecialFromDate(), $product->getSpecialToDate(), $product->getStore());
 }
 /**
  * {@inheritdoc}
  */
 public function getSpecialFromDate()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getSpecialFromDate');
     if (!$pluginInfo) {
         return parent::getSpecialFromDate();
     } else {
         return $this->___callPlugins('getSpecialFromDate', func_get_args(), $pluginInfo);
     }
 }