Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 public function _construct()
 {
     parent::_construct();
 }
Ejemplo n.º 3
0
 public function getItemsCount()
 {
     $cnt = parent::getItemsCount();
     $checkForOne = $this->calculateRanges() && Mage::getStoreConfig('amshopby/general/hide_one_value');
     return $cnt == 1 && $checkForOne ? 0 : $cnt;
 }