Exemple #1
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     $hasAttributes = true;
     if ($this->getAttributeGroup()) {
         $hasAttributes = $this->getAttributeGroup()->hasNonEmptyAttributes();
     }
     return parent::isVisible() && $this->getAttributesList(true) && $hasAttributes;
 }
Exemple #2
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Config::getInstance()->XC->ProductFilter->enable_price_range_filter;
 }
Exemple #3
0
 /**
  * Check widget visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Config::getInstance()->XC->ProductFilter->enable_in_stock_only_filter;
 }