示例#1
0
 /**
  * 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();
 }