Example #1
0
 /**
  * Specific CSS class for the image of the excluded product.
  * You can check the Font Awesome CSS library if you want some specific icons
  *
  * @param integer $productId Product ID
  *
  * @return string
  */
 public function getStyleExcludedProduct($productId)
 {
     return \XLite\Core\Request::getInstance()->product_id == $productId ? 'fa-ban' : parent::getStyleExcludedProduct($productId);
 }
Example #2
0
 /**
  * Return the current page title (for the content area)
  *
  * @return string
  */
 public function getTitle()
 {
     return $this->getCategoryId() != $this->getRootCategoryId() ? $this->getCategory() ? $this->getCategoryTitle() : parent::getTitle() : $this->getFrontPageTitle();
 }