/** * Retrieve Clear Filters URL * * @return string */ public function getClearUrl() { if (!Mage::app()->getRequest()->getParam('am_landing')) { return parent::getClearUrl(); } return Mage::helper('amlanding/url')->getClearUrl(); }
public function __construct() { parent::__construct(); if (!Mage::helper('weltpixel_layerednavigation')->showCurrentlyShoppingBy()) { $this->setTemplate('weltpixel/layerednavigation/catalog/layer/state.phtml'); } }
public function getClearUrl() { if (!Mage::helper('magenotification')->checkLicenseKey('Seonavigation')) { return parent::getClearUrl(); } if ($this->getSeoHelper()->getConfig('enable')) { $requestPath = trim($this->getRequest()->getRequestString(), '/'); $model = Mage::getModel('seonavigation/seonavigation')->load($requestPath, 'request_path'); if ($model->getClearUrl()) { return Mage::getUrl(null, array('_direct' => $model->getClearUrl())); } } return parent::getClearUrl(); }
public function getActiveFilters() { $filters = parent::getActiveFilters(); if ($this->getMode() == 'this') { $result = array(); foreach ($filters as $item) { if ($this->_doesParentContainsFilter($item->getFilter())) { $result[] = $item; } } return $result; } else { return $filters; } }
public function getClearUrl() { if (Mage::getStoreConfig('mageworx_seo/seosuite/disable_layered_rewrites')) { return parent::getClearUrl(); } $filterState = array(); foreach ($this->getActiveFilters() as $item) { $filterState[$item->getFilter()->getRequestVar()] = $item->getFilter()->getCleanValue(); } $params['_current'] = true; $params['_use_rewrite'] = true; $params['_query'] = $filterState; $params['_escape'] = true; return Mage::helper('seosuite')->getLayerFilterUrl($params); }
public function getClearUrl() { if (!$this->helper('sm_shopby')->isEnabled()) { return parent::getClearUrl(); } if ($this->helper('sm_shopby')->isCatalogSearch()) { $filterState = array('isLayerAjax' => null); foreach ($this->getActiveFilters() as $item) { $filterState[$item->getFilter()->getRequestVar()] = $item->getFilter()->getCleanValue(); } $params['_current'] = true; $params['_use_rewrite'] = true; $params['_query'] = $filterState; $params['_escape'] = true; return Mage::getUrl('*/*/*', $params); } return $this->helper('sm_shopby')->getClearFiltersUrl(); }
public function getActiveFilters() { $filters = array(); $allFilters = parent::getActiveFilters(); if (!empty($allFilters)) { /** @var $attributes Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Attribute_Collection */ $attributes = $this->getFilterableAttributes(); $categoryFilterEnabled = $this->getCategoryFilterEnabled(); foreach ($allFilters as $item) { if ($attributeModel = $item->getFilter()->getData('attribute_model')) { if (!empty($attributes) && $attributes->getItemByColumnValue('attribute_code', $attributeModel->getAttributeCode())) { $filters[] = $item; } } else { if ('cat' == $item->getFilter()->getRequestVar() && $categoryFilterEnabled) { $filters[] = $item; } } } } return $filters; }
public function getClearUrl() { return str_replace('?', '#%21', parent::getClearUrl()); }
public function __construct() { parent::__construct(); $this->setTemplate('colorselectorplus/state.phtml'); }
/** * Initialize Layer State template * */ public function __construct() { parent::__construct(); $this->setTemplate('vc_priceslider/catalog/layer/state.phtml'); }
public function __construct() { parent::__construct(); $this->setTemplate('mana/filters/state.phtml'); }
/** * Initialize Layer State template * */ public function __construct() { parent::__construct(); $this->setTemplate('vc_ajaxlayerednavigation/catalog/layer/state.phtml'); }