Jump to content

Layered Navigation on top of center column


BJng

Recommended Posts

Hi to all,

 

I would like to hook the layered navigation on top of the page, above the product list. I found a free tutorial of Nemo but I can't let it work. 

Can anyone help me?

 

Thanks in  advance

Stefano

Link to comment
Share on other sites

Hi, i think i got the same.

I've made a new hook to be displayed on the top of categories,  i can make it get in place but the filters dont work, the only think that appears is (when i apply a filter (any)) the image of loading, and that's all.

 

any idea?

...

 

thanks

Link to comment
Share on other sites

  • 2 weeks later...

Hi Bjng, try this to create new hook:

 

http://prestatips.info/adding-new-hook-prestashop/

 

and then this to display layered navigation on it:

 

open blocklayered.php, find the line (54):

 

public function install()
{
if (parent::install() && $this->registerHook('header') && $this->registerHook('leftColumn') 
&& $this->registerHook('categoryAddition') && $this->registerHook('categoryUpdate') && $this->registerHook('attributeGroupForm')

and add && $this->registerHook('displayCategoryTop') after && $this->registerHook('leftColumn')

 

then in the same file at line 673 will see:

public function hookLeftColumn($params)
{
return $this->generateFiltersBlock($this->getSelectedFilters());
}

after that line insert:

 

public function hookdisplayCategoryTop($params)
{
return $this->generateFiltersBlock($this->getSelectedFilters());
}

and you're done. it worked for me.

 
 
Edited by Pedro Pinto (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...