im_presto Posted June 3, 2014 Share Posted June 3, 2014 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 More sharing options...
NemoPS Posted June 4, 2014 Share Posted June 4, 2014 How are you registering those hooks? Link to comment Share on other sites More sharing options...
im_presto Posted June 4, 2014 Author Share Posted June 4, 2014 i m registering custom hook while installing any module. Link to comment Share on other sites More sharing options...
NemoPS Posted June 4, 2014 Share Posted June 4, 2014 Yes, I mean, with registerhook? is it working if you install the module separately instead of using the theme installer? Are you using the hook h="customname" in the template? Link to comment Share on other sites More sharing options...
im_presto Posted June 6, 2014 Author Share Posted June 6, 2014 Yes, it does, it registered when i install it separately and have called it with {hook name="customhook" mod="modulename"} and it works but does not active when i do it with theme import Link to comment Share on other sites More sharing options...
NemoPS Posted June 6, 2014 Share Posted June 6, 2014 hm it should be hook h="" not hook name="" .... does hook name="" work as well? If so, I just learnt something 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 More sharing options...
im_presto Posted June 6, 2014 Author Share Posted June 6, 2014 Yes it was like as you have mentioned, it works when i do install module separately. But when theme import done then custom hook do not shows in front. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now