Esempio n. 1
0
 /**
  * Check availability display layer block
  *
  * @return bool
  */
 public function canShowBlock()
 {
     $availableResCount = (int) Mage::app()->getStore()->getConfig(Mage_CatalogSearch_Model_Layer::XML_PATH_DISPLAY_LAYER_COUNT);
     if (!$availableResCount || $availableResCount >= $this->getLayer()->getProductCollection()->getSize()) {
         return parent::canShowBlock();
     }
     return false;
 }
Esempio n. 2
0
 public function _construct()
 {
     parent::_construct();
     $this->setNavigationGroup(self::NAVIGATION_GROUP_RIGHT);
 }