Jump to content

Custom hook is not registering with module in theme import


Recommended Posts

Hello,
I'm having some problems with the export/import process on BO>Preferences>Themes.
From a module I created some custom hooks by inserting the name into ps_hook table, then I register some modules on that hooks.
After I export the theme and then import it on a new install of prestashop the modules that I've registered are not on my custom hooks anymore.
The other hooks keep the configuration if I change module position, add/unhook.

How can I solve this?

Thank you!

 

Link to comment
Share on other sites

hm it should be hook h="" not hook name="" .... does hook name="" work as well?  If so, I just learnt something :D

 

Do you mean that the module remains inactive, or that it's like the hook never existed, and you cannot add anything there?

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