コード例 #1
0
ファイル: Search.php プロジェクト: xiaoguizhidao/devfashion
 /**
  * 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;
 }
コード例 #2
0
ファイル: Right.php プロジェクト: xiaoguizhidao/devfashion
 public function _construct()
 {
     parent::_construct();
     $this->setNavigationGroup(self::NAVIGATION_GROUP_RIGHT);
 }