public function addFacetCondition() { if ($this->calculateRanges()) { parent::addFacetCondition(); } }
public function addFacetCondition() { if (!$this->calculateRanges()) { return false; } $code = $this->getAttributeModel()->getAttributeCode(); $key = 'amshopby_facet_added_' . $code; if (Mage::registry($key)) { return; } parent::addFacetCondition(); Mage::register($key, true); }