예제 #1
0
파일: Stock.php 프로젝트: kirkbauer2/kirkxc
 /**
  * Return 'Out of stock' message
  *
  * @return string
  */
 protected function getOutOfStockMessage()
 {
     return $this->getProduct()->mustHaveVariants() ? static::t($this->getProductVariant() ? 'This item is out of stock' : 'This item is not available') : parent::getOutOfStockMessage();
 }
예제 #2
0
파일: Stock.php 프로젝트: kirkbauer2/kirkxc
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && !$this->getProduct()->isUpcomingProduct();
 }