Exemplo n.º 1
0
 /**
  * Return the icon 'alt' value
  *
  * @param \XLite\Model\Product $product Current product
  *
  * @return string
  */
 protected function getIconAlt($product)
 {
     return $product->getImage() && $product->getImage()->getAlt() ? $product->getImage()->getAlt() : $product->getName();
 }
Exemplo n.º 2
0
 /**
  * Get image
  *
  * @return \XLite\Model\Image\Product\Image
  */
 public function getImage()
 {
     return $this->isUseVariantImage() ? $this->getDefaultVariant()->getImage() : parent::getImage();
 }
Exemplo n.º 3
0
 /**
  * {@inheritDoc}
  */
 public function getImage()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getImage', array());
     return parent::getImage();
 }