Jump to content

[SOLVED]Need help, displaying blocklayered in a custom hook


miff

Recommended Posts

Hi.

 

If it is not a default hook, you need to create a new function for that hook and transplant the module to it.

If the hook is a default PS hook, you can just transplant the module to it, but only if the module has the function for that hook, otherwise you need to create it.

 

 

Regards.

 

Robin.

 

The CartExpert Team

  • Like 1
Link to comment
Share on other sites

  • 4 months later...

Can you post the solution here?

 

Tried, but not wors:

 

1 Created new hook in database

2 Created new function to setup custom hook in module

 

public function hookCategoryFilters($params)

{

return $this->hookLeftColumn($params);

}

 

3 Tried assign module to this hook, but error accured:

This module cannot be transplanted to this hook.

 

To display the hook have i {$HOOK_CATEGORY_FILTERS} in category.tpl

and

'HOOK_CATEGORY_FILTERS' => Hook::exec('displayCategoryFilters')

in CategoryController

 

use PS 1.5.3

 

Thank you

Link to comment
Share on other sites

  • 1 year later...

Can you post the solution here?

 

Tried, but not wors:

 

1 Created new hook in database

2 Created new function to setup custom hook in module

 

public function hookCategoryFilters($params)

{

return $this->hookLeftColumn($params);

}

 

3 Tried assign module to this hook, but error accured:

This module cannot be transplanted to this hook.

 

To display the hook have i {$HOOK_CATEGORY_FILTERS} in category.tpl

and

'HOOK_CATEGORY_FILTERS' => Hook::exec('displayCategoryFilters')

in CategoryController

 

use PS 1.5.3

 

Thank you

Any luck with this?

I use 1.5.6.1 and whas trying to do it using this http://www.prestashop.com/forums/topic/2182[spam-filter]create-custom-and-new-hook-in-ps-15/

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