コード例 #1
0
ファイル: View.php プロジェクト: Mohitsahu123/Elasticgento
 /**
  * Modifies default block names to specific ones if engine is active.
  * @todo add blocks
  */
 protected function _initBlocks()
 {
     parent::_initBlocks();
     $this->_categoryBlockName = 'elasticgento_catalog/catalog_layer_filter_category';
     $this->_attributeFilterBlockName = 'elasticgento_catalog/catalog_layer_filter_attribute';
     $this->_priceFilterBlockName = 'elasticgento_catalog/catalog_layer_filter_price';
     $this->_decimalFilterBlockName = 'elasticgento_catalog/catalog_layer_filter_decimal';
     $this->_booleanFilterBlockName = 'elasticgento_catalog/catalog_layer_filter_boolean';
 }
コード例 #2
0
ファイル: View.php プロジェクト: kevinrademan/Magento-Solr
 protected function _initBlocks()
 {
     parent::_initBlocks();
     $this->_stateBlockName = 'catalog/layer_state';
     $this->_categoryBlockName = 'solr/layer_filter_category';
     $this->_attributeFilterBlockName = 'solr/layer_filter_attribute';
     $this->_priceFilterBlockName = 'solr/layer_filter_price';
     $this->_decimalFilterBlockName = 'solr/layer_filter_decimal';
 }
コード例 #3
0
ファイル: View.php プロジェクト: hyhoocchan/mage-local
 /**
  * Initialize blocks names
  */
 protected function _initBlocks()
 {
     parent::_initBlocks();
     if (Mage::helper('enterprise_search')->getIsEngineAvailableForNavigation()) {
         $this->_categoryBlockName = 'enterprise_search/catalog_layer_filter_category';
         $this->_attributeFilterBlockName = 'enterprise_search/catalog_layer_filter_attribute';
         $this->_priceFilterBlockName = 'enterprise_search/catalog_layer_filter_price';
         $this->_decimalFilterBlockName = 'enterprise_search/catalog_layer_filter_decimal';
     }
 }
コード例 #4
0
 /**
  * Initialize blocks names
  */
 protected function _initBlocks()
 {
     parent::_initBlocks();
     if (Mage::helper('elasticsearch')->isActiveEngine()) {
         $this->_categoryBlockName = 'elasticsearch/catalog_layer_filter_category';
         $this->_attributeFilterBlockName = 'elasticsearch/catalog_layer_filter_attribute';
         $this->_priceFilterBlockName = 'elasticsearch/catalog_layer_filter_price';
         $this->_decimalFilterBlockName = 'elasticsearch/catalog_layer_filter_decimal';
     }
 }
コード例 #5
0
ファイル: Layer.php プロジェクト: ahsanmage/vr
 protected function _initBlocks()
 {
     parent::_initBlocks();
     $helper = Mage::helper('layerednavigation');
     $helper->setupRootCategory();
     $this->_filterTemplates = $helper->getFilterTemplate();
     $this->_categoryBlockName = 'layerednavigation/catalog_filter_category';
     $config = $this->_getDisplayConfig();
     if (isset($config['price']) && $config['price'] == 'slider') {
         $this->_priceFilterBlockName = 'layerednavigation/catalog_filter_price';
     }
 }
コード例 #6
0
ファイル: View.php プロジェクト: javik223/Evron-Magento
 /**
  * Replaces default block names if engine is active.
  */
 protected function _initBlocks()
 {
     if (Mage::helper('nanowebg_elasticsearch')->isLog()) {
         Mage::log('NanoWebG_ElasticSearch_Block_Catalog_Layer_View _initBlocks', null, 'elasticsearch_debug.log');
     }
     parent::_initBlocks();
     if (Mage::helper('nanowebg_elasticsearch')->useElasticSearch()) {
         $this->_categoryBlockName = 'nanowebg_elasticsearch/catalog_layer_filter_category';
         $this->_attributeFilterBlockName = 'nanowebg_elasticsearch/catalog_layer_filter_attribute';
         $this->_priceFilterBlockName = 'nanowebg_elasticsearch/catalog_layer_filter_price';
         $this->_decimalFilterBlockName = 'nanowebg_elasticsearch/catalog_layer_filter_decimal';
         $this->_booleanBlockName = 'nanowebg_elasticsearch/catalog_layer_filter_boolean';
     }
 }
コード例 #7
0
ファイル: View.php プロジェクト: AleksNesh/pandora
 /**
  * Ensure the default Magento blocks are used
  *
  * @return $this
  */
 protected function _initBlocks()
 {
     parent::_initBlocks();
     $this->_stateBlockName = 'Mage_Catalog_Block_Layer_State';
     $this->_categoryBlockName = 'Mage_Catalog_Block_Layer_Filter_Category';
     $this->_attributeFilterBlockName = 'Mage_Catalog_Block_Layer_Filter_Attribute';
     $this->_priceFilterBlockName = 'Mage_Catalog_Block_Layer_Filter_Price';
     $this->_decimalFilterBlockName = 'Mage_Catalog_Block_Layer_Filter_Decimal';
     if (Mage::helper('attributeSplash')->isFishPigSeoInstalledAndActive()) {
         $this->_categoryBlockName = 'Fishpig_FSeo_Block_Catalog_Layer_Filter_Category';
         $this->_attributeFilterBlockName = 'Fishpig_FSeo_Block_Catalog_Layer_Filter_Attribute';
         $this->_priceFilterBlockName = 'Fishpig_FSeo_Block_Catalog_Layer_Filter_Price';
         $this->_decimalFilterBlockName = 'Fishpig_FSeo_Block_Catalog_Layer_Filter_Decimal';
     }
     return $this;
 }
コード例 #8
0
ファイル: Layer.php プロジェクト: hirentricore/devmagento
 /**
  * Initialize blocks names
  */
 protected function _initBlocks()
 {
     parent::_initBlocks();
     $this->_attributeFilterBlockName = 'catalogsearch/layer_filter_attribute';
 }
コード例 #9
0
ファイル: Layer.php プロジェクト: nemphys/magento2
 /**
  * Initialize blocks names
  */
 protected function _initBlocks()
 {
     parent::_initBlocks();
     $this->_attributeFilterBlockName = 'Mage_CatalogSearch_Block_Layer_Filter_Attribute';
 }
コード例 #10
0
 /**
  * Initialize blocks names
  */
 protected function _initBlocks()
 {
     parent::_initBlocks();
     $this->_brandsFilterBlockName = 'vc_shopbybrands/catalog_layer_filter_brands';
 }
コード例 #11
0
 /**
  * Initialize blocks names
  */
 protected function _initBlocks()
 {
     parent::_initBlocks();
     $this->_categoryBlockName = 'holoflek_filters/layer_filter_category';
 }
コード例 #12
0
ファイル: View.php プロジェクト: Gobbob/Inchoo_Sale
 protected function _initBlocks()
 {
     parent::_initBlocks();
     $this->_saleBlockName = 'inchoo_sale/catalog_layer_filter_sale';
 }
コード例 #13
0
 protected function _initBlocks()
 {
     parent::_initBlocks();
     $this->_categoryLayeredBlockName = 'bitbull_categorylayered/catalog_layer_filter_categoryLayered';
 }