Example #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();
 }
Example #2
0
 /**
  * Get image
  *
  * @return \XLite\Model\Image\Product\Image
  */
 public function getImage()
 {
     return $this->isUseVariantImage() ? $this->getDefaultVariant()->getImage() : parent::getImage();
 }
 /**
  * {@inheritDoc}
  */
 public function getImage()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getImage', array());
     return parent::getImage();
 }