public function getPagerUrl($params = array()) { if ($this->skip()) { return parent::getPagerUrl($params); } return Mage::helper('amshopby/url')->getFullUrl($params); }
/** * Overwritten method. Does not use the _current-method of URL models anymore. Retrieves a speaking filter url from * own model. * * @see Mage_Catalog_Block_Product_List_Toolbar::getPagerUrl($params) * @param array $params The params to be added to current url * @return string The resulting speaking url to be used in toolbar. */ public function getPagerUrl($params = array()) { $category = Mage::registry('current_category'); if (!is_object($category)) { return parent::getPagerUrl($params); } $url = Mage::getModel('filterurls/catalog_layer_filter_item')->getSpeakingFilterUrl(FALSE, TRUE, $params); return $url; }
public function getPagerUrl($params = array()) { if (!$this->helper('sm_shopby')->isEnabled()) { return parent::getPagerUrl($params); } if ($this->helper('sm_shopby')->isCatalogSearch()) { $params['isLayerAjax'] = null; return parent::getPagerUrl($params); } return $this->helper('sm_shopby')->getPagerUrl($params); }
public function getPagerUrl($params = array()) { if (Mage::getStoreConfig('mageworx_seo/seosuite/disable_layered_rewrites')) { return parent::getPagerUrl($params); } $urlParams = array(); $urlParams['_current'] = true; $urlParams['_escape'] = true; $urlParams['_use_rewrite'] = true; $urlParams['_query'] = $params; return Mage::helper('seosuite')->getLayerFilterUrl($urlParams); }
public function getPagerUrl($params = array()) { $innerParams = $this->getRequest()->getParams(); $identifier = $innerParams['identifier']; $moduelUrl = $this->getUrl(); $parentPath = parent::getPagerUrl($params); if (strpos($parentPath, '?') !== false) { $parts = explode('?', $parentPath); if (count($parts) == 2) { $_helper = Mage::helper('brand'); $moduelUrl .= $_helper->getRoute() . '/' . $identifier . '.html/'; $moduelUrl .= '?' . $parts[1]; } } return $moduelUrl; }
/** * @param int $limit * * @return string */ public function getLimitUrl($limit) { $params = array($this->getLimitVarName() => $limit); $query = http_build_query($params); $url = trim(Mage::getBaseUrl('web'), '/'); // using super global because magento doesn't return real uri // but its target like catalog/category/view $currentRequest = explode('?', $_SERVER['REQUEST_URI']); if (count($currentRequest) > 1) { $params = array_pop($currentRequest); $params = $this->_removeParam($params, 'limit'); $params = $this->_removeParam($params, 'p'); $currentRequest = array_pop($currentRequest); return $url . $currentRequest . '?' . $params . '&' . $query; } else { return parent::getPagerUrl($params); } }