Jump to content

Help moving Block Layered Navigation to New hook


Recommended Posts

I am using a custom theme which has custom hooks.

I am trying to display the Layered Navigation Filters horizontally on my category page only.

My theme has a hook call displayCategoryHeader which displays the category image.

 

I have modified the module php file to add the displayCategoryHeader hook.

Then I uninstalled and re-installed the module.

It now shows that it in in the hook displayCategoryHeader, however it is not there on the page.

It still displays on the left.

 

I will edit the CSS to display horizontally but I need it to display in the correct hook.

 

Can anyone help me?

I haven't seen any 3rd party modules that will let me do this either.

 

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

Just made it for my own shop.

Everything is now working perfectly well (sorting, indexing, resetting etc).

I can give you a clue to make it but i didn't write the exact steps.

 

First, I created a new hook in the category.tpl

 

like

{hook h='horizontalFiltering'}

see details http://www.prestashop.com/forums/topic/173027-solved-how-to-create-a-new-hook-in-15-am-i-doing-it-wrong/page__st__20

 

Second, I tuned the code of blocklayered module (added new function and altered the install method)

 

Third, I resetted the module (reinstalled it) to automatically create new hook

 

Lastly, In ps_hook database table I changed the "position" field to 1

 

And violia. My new hook is displayed on admin page with blocklayered module on.

 

Hope it will help you as a start point

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 9 months later...
  • 9 months later...
  • 2 months later...
  • 1 year later...

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...