HaCos Posted September 1, 2014 Share Posted September 1, 2014 Hello, whats the easier way to create a new hook / module position in my template in order to use newsletter module ? Link to comment Share on other sites More sharing options...
vekia Posted September 1, 2014 Share Posted September 1, 2014 in simple words: 1) create new hook for example: afterTop INSERT INTO `ps_hook` (`id_hook`, `name`, `title`, `description`, `position`, `live_edit`) VALUES (NULL, 'AfterTop', 'After the top', 'This hook displays content after the top hook', 1, 1); 2) create function in your module to support this hook, public function hookAfterTop($params){ // do something } 3) transplant module to this new hook 1 Link to comment Share on other sites More sharing options...
HaCos Posted September 2, 2014 Author Share Posted September 2, 2014 in simple words: 1) create new hook for example: afterTop INSERT INTO `ps_hook` (`id_hook`, `name`, `title`, `description`, `position`, `live_edit`) VALUES (NULL, 'AfterTop', 'After the top', 'This hook displays content after the top hook', 1, 1); 2) create function in your module to support this hook, public function hookAfterTop($params){ // do something } 3) transplant module to this new hook Thanks, it works like a charm Link to comment Share on other sites More sharing options...
vekia Posted September 2, 2014 Share Posted September 2, 2014 glad to hear that :-) i marked topic title as [solved] with regards, Milos 1 Link to comment Share on other sites More sharing options...
selestin Posted May 11, 2015 Share Posted May 11, 2015 Am new to Prestashop , I want to create a new position in the footer. New record added to the table "ps_hook", as mentioned above. My question is To which module should i add this function to enable it in the back end. And what else i have to do. Thanks. 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