Beispiel #1
0
 /**
  * Check if the product of the order item is deleted one in the store
  *
  * @param \XLite\Model\OrderItem $item Order item
  * @param boolean                $data Flag
  *
  * @return boolean
  */
 public function checkIsAvailableToOrder(\XLite\Model\OrderItem $item, $data)
 {
     return $data !== $item->isValidToClone();
 }
Beispiel #2
0
 /**
  * Check if the item is valid to clone through the Re-order functionality
  *
  * @return boolean
  */
 public function isValidToClone()
 {
     if ($this->isXpcFakeItem()) {
         $result = false;
     } else {
         $result = parent::isValidToClone();
     }
     return $result;
 }
 /**
  * {@inheritDoc}
  */
 public function isValidToClone()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'isValidToClone', array());
     return parent::isValidToClone();
 }