/** * 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; }
public function _construct() { parent::_construct(); $this->setNavigationGroup(self::NAVIGATION_GROUP_RIGHT); }