/** * Flag if the product is not available according inventory configuration * * @return boolean */ public function isOutOfStock() { return $this->hasVariants() ? !$this->hasAnyVariantStock() : parent::isOutOfStock(); }
/** * {@inheritDoc} */ public function isOutOfStock() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'isOutOfStock', array()); return parent::isOutOfStock(); }