/**
  * {@inheritDoc}
  */
 public function getParticipateSale()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getParticipateSale', array());
     return parent::getParticipateSale();
 }
Esempio n. 2
0
 /**
  * Return sale participation flag
  *
  * @param \XLite\Model\Product $product Product model
  *
  * @return boolean
  */
 protected function participateSale(\XLite\Model\Product $product)
 {
     return $product->getParticipateSale() && $product->getSalePrice() < $product->getPrice();
 }
Esempio n. 3
0
 /**
  * Return sale participation flag
  *
  * @param \XLite\Model\Product $product Product model
  *
  * @return boolean
  */
 protected function participateSaleAdmin(\XLite\Model\Product $product)
 {
     return $product->getParticipateSale() && $product->getDisplayPrice() < $product->getDisplayPriceBeforeSale();
 }