I want to get the layered navigation filter query which applies on products according to the attribute value. I want to change that query. How can I get that piece of code where query is appling?

The url is

I would like to change product_or_type=64 for my own query.

1 Answer 1


In the class


Below function $query is making it

     * Get filter item url
     * @return string
    public function getUrl()
        $query = array(
            Mage::getBlockSingleton('page/html_pager')->getPageVarName() => null // exclude current page from urls
        return Mage::getUrl('*/*/*', array('_current'=>true, '_use_rewrite'=>true, '_query'=>$query));
  • can i get in which tables this query fetch the data? i want to change the tables where this query fetch the data . Commented Sep 12, 2018 at 10:08
  • This is not the database query this is parameter of url after questionmark(?) Commented Sep 12, 2018 at 10:10
  • from where these parameter filter the products ? Commented Sep 12, 2018 at 10:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.