public function getHtml() { if ($this->helper('customerprices')->isEnabled() && $this->helper('customerprices')->isHidePrice() && !$this->helper('customer')->isLoggedIn()) { return 'You need to <a href="' . Mage::getUrl('customer/account/login') . '">login</a> to see prices<br/>'; } return parent::_toHtml(); }
public function __construct() { parent::__construct(); $this->_style = Mage::getStoreConfig('design/adjnav/price_style'); $this->setTemplate('adjnav/filter_price_' . $this->_style . '.phtml'); $this->_filterModelName = 'adjnav/catalog_layer_filter_price'; }
public function __construct() { parent::__construct(); if ($this->getLayeredNavLimitHelper()->getLimit()) { $this->setTemplate('eyemagine/layerednavlimit/catalog/layer/filter.phtml'); } }
public function __construct() { parent::__construct(); $this->_style = Mage::getStoreConfig('multiselectnavigation/general/price_style'); $this->setTemplate('multiselectnavigation/filter_price_' . $this->_style . '.phtml'); $this->_filterModelName = 'multiselectnavigation/catalog_layer_filter_price'; }
public function getItemsCount() { if ($this->helper('sm_shopby')->isEnabled() && $this->helper('sm_shopby')->isPriceSliderEnabled()) { return 1; } return parent::getItemsCount(); }
/** * Initialize Price filter module * */ public function __construct() { parent::__construct(); if (Mage::helper('catalogfilter')->priceIsSlider()) { $this->setTemplate('catalogfilter/price.phtml'); } }
public function __construct() { parent::__construct(); $this->_filterType = Mage::getStoreConfig('layerednav/layerednav/price_style'); //Load Custom PHTML of price $this->setTemplate('layerednav/filter_price_' . $this->_filterType . '.phtml'); //Set Filter Model Name $this->_filterModelName = 'layerednav/layer_filter_price'; }
public function __construct() { parent::__construct(); if (Mage::helper('mtfilter')->isPriceEnable()) { $this->setTemplate('mt/filter/price.phtml'); $this->_hash = Mage::helper('core')->uniqHash('slider-'); $this->_filterModelName = 'mtfilter/layer_filter_price'; } }
public function __construct() { parent::__construct(); if (Mage::helper('solr')->catalogCategoryMultiselectEnabled()) { $this->setTemplate('dmc_solr/catalog/layer/price_slider.phtml'); } else { $this->setTemplate('dmc_solr/catalog/layer/filter.phtml'); } $this->_filterModelName = 'solr/catalog_layer_filter_price'; }
public function __construct() { $this->_currentCategory = Mage::registry('current_category'); $this->_searchSession = Mage::getSingleton('catalogsearch/session'); $this->setProductCollection(); $this->setMinPrice(); $this->setMaxPrice(); $this->setCurrentPrices(); $this->_imagePath = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'magehouse/slider/'; parent::__construct(); }
/** * Initialize Price filter module * */ public function __construct() { parent::__construct(); // This block runs on both catalog and search pages, so we don't know what to check for. That's why we're using // getIsEngineAvailable() instead of getIsEngineAvailableForNavigation(). if (Mage::helper('conversionpro')->getIsEngineAvailable()) { $this->_filterModelName = 'conversionpro/catalog_layer_filter_price'; } else { $this->_filterModelName = 'catalog/layer_filter_price'; } }
public function __construct() { $this->_currentCategory = Mage::registry('current_category'); $this->_searchSession = Mage::getSingleton('catalogsearch/session'); $this->setProductCollection(); $this->setCurrentPrices(); parent::__construct(); if (Mage::getStoreConfig('layerednavigationajax/layerfiler_config/enabled')) { $this->setTemplate('magentothem/layerednavigationajax/filter.phtml'); } //Mage::getConfig()->getModuleConfig('Magentothem_Layerednavigationajax')->is('active', 'true'); }
/** * Initialize Price filter module * */ public function __construct() { parent::__construct(); $this->setTemplate('weltpixel/layerednavigation/catalog/layer/price-filter.phtml'); $this->_filterModelName = 'catalog/layer_filter_price'; }
/** * * Prepare html for slider and add JS that incorporates the slider. * * @return html * */ public function getHtml() { if ($this->getSliderStatus()) { $text = ' <div class="price"> ' . $this->getPriceDisplayType() . ' <div class="range-wrap"><div id="slider-range"></div></div> </div>' . $this->getSliderJs(); return $text; } return parent::_toHtml(); }
public function __construct() { parent::__construct(); $this->_filterModelName = 'layerednavigation/catalog_filter_price'; }
public function __construct() { parent::__construct(); $this->_filterModelName = 'merlinsearch/layer_filter_price'; }
/** * Initialize Price filter module * */ public function __construct() { parent::__construct(); $this->setTemplate('vc_priceslider/catalog/layer/price/filter.phtml'); //$this->isPriceBlock(true); }
/** * * Prepare html for slider and add JS that incorporates the slider. * * @return html * */ public function getHtml() { if ($this->getSliderStatus()) { $text = '<div class="price price-filter-slider"> <div> <div class="slider-range"></div> ' . $this->getPriceDisplayType() . ' </div><div class="clearer"></div></div>' . $this->getSliderJs(); return $text; } else { return parent::_toHtml(); } }
/** * Retrieve filter items count * * @return int */ public function getItemsCount() { if ($this->helper('catalin_seo')->isEnabled() && $this->helper('catalin_seo')->isPriceSliderEnabled()) { return 1; // Keep price filter ON } return parent::getItemsCount(); }
/** * Initialize Price filter module * */ public function __construct() { parent::__construct(); $this->setTemplate('vc_ajaxlayerednavigation/catalog/layer/filter.phtml'); }
/** * Initialize filter template * */ protected function _prepareFilter() { parent::_prepareFilter(); if (Mage::helper('gomage_navigation')->isGomageNavigation()) { switch ($this->getAttributeModel()->getFilterType()) { default: $this->_template = 'gomage/navigation/layer/filter/default.phtml'; break; case GoMage_Navigation_Model_Layer::FILTER_TYPE_INPUT: $this->_template = 'gomage/navigation/layer/filter/input.phtml'; break; case GoMage_Navigation_Model_Layer::FILTER_TYPE_SLIDER: $this->_template = 'gomage/navigation/layer/filter/slider.phtml'; break; case GoMage_Navigation_Model_Layer::FILTER_TYPE_SLIDER_INPUT: $this->_template = 'gomage/navigation/layer/filter/slider-input.phtml'; break; case GoMage_Navigation_Model_Layer::FILTER_TYPE_INPUT_SLIDER: $this->_template = 'gomage/navigation/layer/filter/input-slider.phtml'; break; case GoMage_Navigation_Model_Layer::FILTER_TYPE_DROPDOWN: $this->_template = 'gomage/navigation/layer/filter/dropdown.phtml'; break; } } }