protected function _toHtml()
 {
     $this->setType('adjnav/catalog_layer_view');
     $html = parent::_toHtml();
     $html = Mage::helper('aitunits/event')->addAfterToHtml($html, $this);
     return $html;
 }
Beispiel #2
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;
 }
Beispiel #3
0
 public function getStateInfo()
 {
     return parent::getStateInfo();
 }