Exemple #1
0
 /**
  * Check - available product for sale or not
  *
  * @return boolean
  */
 public function isAvailableForSale()
 {
     // FIXME[INVENTORY_TRACKING]: check this later
     /* TODO - rework
             if ($this->xlite->get('InventoryTrackingEnabled')) {
                 $product = $this->getProduct();
                 if ($product->getComplex('inventory.found') && !$product->get('tracking')) {
                     $result = 0 < $product->getComplex('inventory.amount');
                 }
             }
     
             return isset($result) ? $result :
             */
     return parent::isAvailableForSale();
 }