public function getIsExcluded() { if (parent::getIsExcluded()) { return true; } Mage::app()->getRequest()->getParams(); if (defined('AMSHOPBY_FEATURE_HIDE_SINGLE_CHOICE_FILTERS') && AMSHOPBY_FEATURE_HIDE_SINGLE_CHOICE_FILTERS) { if ($this->model->getSingleChoice()) { if (Mage::app()->getRequest()->getParam($this->attribute->getAttributeCode())) { return true; } } } return false; }
public function getIsExcluded() { if (parent::getIsExcluded()) { return true; } // hide when selected $hideBySingleChoice = defined('AMSHOPBY_FEATURE_HIDE_SINGLE_CHOICE_FILTERS') && AMSHOPBY_FEATURE_HIDE_SINGLE_CHOICE_FILTERS && $this->model->getSingleChoice(); $hideByConfigurableSwatches = $this->model->getDisplayType() == Amasty_Shopby_Model_Source_Attribute::DT_MAGENTO_SWATCHES && $this->isSwatchesAvailable(); if ($hideBySingleChoice || $hideByConfigurableSwatches) { if (Mage::app()->getRequest()->getParam($this->attribute->getAttributeCode())) { return true; } } return false; }