public function prepare() { parent::prepare(); $this->filter->setDisplayType(Mage::getStoreConfig('amshopby/general/price_type')); $this->filter->setSliderType(Mage::getStoreConfig('amshopby/general/slider_type')); $currencySign = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol(); $this->filter->setValueLabel($currencySign); $this->filter->setValuePlacement('before'); $this->filter->setFromToWidget(Mage::getStoreConfig('amshopby/general/price_from_to')); $this->filter->setAttributeCode('price'); $this->filter->setSeoRel($this->_getDataHelper()->getSeoPriceRelNofollow()); }
public function prepare() { parent::prepare(); $this->filter->setDisplayType(Mage::getStoreConfig('amshopby/general/price_type')); $this->filter->setSliderType(Mage::getStoreConfig('amshopby/general/slider_type')); $step = Mage::getStoreConfig('amshopby/general/slider_step'); if ($step <= 0) { $step = 1.0; } $this->filter->setSliderDecimal($step); $currencySign = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol(); $this->filter->setValueLabel($currencySign); $this->filter->setValuePlacement('before'); $this->filter->setFromToWidget(Mage::getStoreConfig('amshopby/general/price_from_to')); $this->filter->setAttributeCode('price'); $this->filter->setSeoRel($this->_getDataHelper()->getSeoPriceRelNofollow()); $this->filter->setData('hide_counts', !Mage::getStoreConfig('catalog/layered_navigation/display_product_count')); }
public function prepare() { parent::prepare(); $this->filter->setData('hide_counts', !Mage::getStoreConfig('catalog/layered_navigation/display_product_count')); }
public function prepare() { parent::prepare(); $this->transferModelData(); $this->filter->setData('hide_counts', !Mage::getStoreConfig('catalog/layered_navigation/display_product_count') || $this->model && $this->model->getHideCounts()); }
public function prepare() { parent::prepare(); $this->filter->setDisplayType(Mage::getStoreConfig('amshopby/general/categories_type')); }
public function prepare() { parent::prepare(); $this->transferModelData(); }
public function prepare() { parent::prepare(); $this->transferModelData(); $this->filter->setData('hide_counts', !$this->_getDataHelper()->getIsCountGloballyEnabled() || $this->model && $this->model->getHideCounts()); }