コード例 #1
0
 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();
 }
コード例 #2
0
ファイル: Price.php プロジェクト: sagmahajan/aswan_release
 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';
 }
コード例 #3
0
 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';
 }
コード例 #5
0
ファイル: Price.php プロジェクト: mSupply/runnable_test_repo
 public function getItemsCount()
 {
     if ($this->helper('sm_shopby')->isEnabled() && $this->helper('sm_shopby')->isPriceSliderEnabled()) {
         return 1;
     }
     return parent::getItemsCount();
 }
コード例 #6
0
 /**
  * Initialize Price filter module
  *
  */
 public function __construct()
 {
     parent::__construct();
     if (Mage::helper('catalogfilter')->priceIsSlider()) {
         $this->setTemplate('catalogfilter/price.phtml');
     }
 }
コード例 #7
0
ファイル: Price.php プロジェクト: technomagegithub/norma
 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';
 }
コード例 #8
0
ファイル: Price.php プロジェクト: igorvasiliev4/magento_code
 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';
     }
 }
コード例 #9
0
ファイル: Price.php プロジェクト: kevinrademan/Magento-Solr
 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';
 }
コード例 #10
0
ファイル: Price.php プロジェクト: xiaoguizhidao/ortodon
 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();
 }
コード例 #11
0
ファイル: Price.php プロジェクト: jokusafet/MagentoSource
 /**
  * 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';
     }
 }
コード例 #12
0
ファイル: Price.php プロジェクト: quyip8818/Mag
 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');
 }
コード例 #13
0
 /**
  * Initialize Price filter module
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('weltpixel/layerednavigation/catalog/layer/price-filter.phtml');
     $this->_filterModelName = 'catalog/layer_filter_price';
 }
コード例 #14
0
ファイル: Price.php プロジェクト: xiaoguizhidao/extensiongsd
    /**
     *
     * 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();
    }
コード例 #15
0
ファイル: Price.php プロジェクト: ahsanmage/vr
 public function __construct()
 {
     parent::__construct();
     $this->_filterModelName = 'layerednavigation/catalog_filter_price';
 }
コード例 #16
0
 public function __construct()
 {
     parent::__construct();
     $this->_filterModelName = 'merlinsearch/layer_filter_price';
 }
コード例 #17
0
 /**
  * Initialize Price filter module
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('vc_priceslider/catalog/layer/price/filter.phtml');
     //$this->isPriceBlock(true);
 }
コード例 #18
0
ファイル: Price.php プロジェクト: perseusl/kingdavid
    /**
     *
     * 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();
        }
    }
コード例 #19
0
ファイル: Price.php プロジェクト: santhosh400/ecart
 /**
  * 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();
 }
コード例 #20
0
 /**
  * Initialize Price filter module
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('vc_ajaxlayerednavigation/catalog/layer/filter.phtml');
 }
コード例 #21
0
ファイル: Price.php プロジェクト: vstorm83/ausport
 /**
  * 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;
         }
     }
 }