media-x Posted April 27, 2015 Share Posted April 27, 2015 I created a new hook with name "DisplayMyMenu", i go to Modules->Positions->Transplant a module if i try to change hook for this module i get error message: This module cannot be transplanted to this hook. What have i to do to change it? Link to comment Share on other sites More sharing options...
El Patron Posted April 27, 2015 Share Posted April 27, 2015 Hi, you will need to add the new hook to the actual module. register hook and hook processing function. Link to comment Share on other sites More sharing options...
media-x Posted April 27, 2015 Author Share Posted April 27, 2015 Sorry but i'm newbe in prestashop, where can i add new hook in this module? Is this a part of code or backoffice? Link to comment Share on other sites More sharing options...
El Patron Posted April 27, 2015 Share Posted April 27, 2015 Sorry but i'm newbe in prestashop, where can i add new hook in this module? Is this a part of code or backoffice? Hi, it's part of the actual module code. They all work the same way so just take a look at a native ps module to see how to register hook and execute funciton. Note: you will need to uninsall/install module after code update to register hook. You might find this link useful: http://doc.prestashop.com/display/PS16/Creating+a+first+module 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