public function addFacetCondition() { if (!$this->calculateRanges()) { return; } if (Mage::registry('amshopby_facet_added_price')) { $this->_facets = Mage::registry('amshopby_facet_added_price'); } else { parent::addFacetCondition(); Mage::register('amshopby_facet_added_price', $this->_facets); } }
public function _construct() { parent::_construct(); }
public function getItemsCount() { $cnt = parent::getItemsCount(); $checkForOne = $this->calculateRanges() && Mage::getStoreConfig('amshopby/general/hide_one_value'); return $cnt == 1 && $checkForOne ? 0 : $cnt; }