/** * Check - show Add to cart button or not * * @param \XLite\Model\Product $product Product * * @return boolean */ protected function isShowAdd2Cart(\XLite\Model\Product $product) { $result = parent::isShowAdd2Cart($product); // FIXME[INVENTORY_TRACKING]: check this later /*if ( $result && $this->xlite->get('InventoryTrackingEnabled') && $product->getComplex('inventory.found') && !$product->get('tracking') ) { $result = 0 < $product->getComplex('inventory.amount'); }*/ return $result; }