Jump to content

Layered Navigation does not work after transplating to a new hook


kingsinnersoul

Recommended Posts

Hello,

I have followed Nemo's tutorial to add a module to a new hook in Prestashop 1.5 ( I am using 1.5.4.1).

 

I did the following:

  1. Called my hook: myProductListTopFilterHook
  2. Created a copy of the blocklayered.tpl file and named it blocklayered_myFilter.tpl
  3. In the blocklayared.php I have added:

public function hookmyProductListTopFilterHook($params)
{
return $this->display(__FILE__, 'blocklayered_myFilter.tpl');
}

 

I wanted to add the module to the category.tpl area, so I have added the following there:

	 {hook h='myProductListTopFilterHook'}[/size]

 

The module is transplanted and is shown there.

 

However, I am facing two problems now:

 

First, the module will not work in the new hook. I can change the price inputs, check the checkboxes, and select manufacturers, etc but it will not trigger the filter.

 

Second, the although the module is showing, it is not showing where I want it to. I placed the {hook h='myProductListTopFilterHook'} inside a table > tr and it is showing above the table.

 

Can anyone help me solve those issues please?

 

Thank you

Edited by kingsinnersoul (see edit history)
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...