Rainbow Trade Posted March 1, 2013 Share Posted March 1, 2013 (edited) Hi I am in the process of creating a new module by going through a tutorial online. However, my boss wants the new module to be hooked to the header of pages section. How would I do this? The tutorial for the .php and .tpl files only shows how you hook it to the left or right columns. Thanks, Jon Edited March 1, 2013 by Rainbow Trade (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted March 1, 2013 Share Posted March 1, 2013 Hi, You really mean header, or top of pages' The two things are different: 1- header of pages: only used for CSS/Javascript and things which DO NOT need to be seen 2- top of pages: used to display stuff in the sho's header, like search box, links, etc for the first: public function hookHeader($params), for the second hookDisplayTop($params) Link to comment Share on other sites More sharing options...
Rainbow Trade Posted March 1, 2013 Author Share Posted March 1, 2013 Thanks for getting back to me. Yes I mean the 2nd one. What would I need to include in this function though. Sorry for the newbie questions I'm pretty much learning prestashop as I go along. The url is http://expressssafety.co.uk/presta. I'm going to be reducing the size of the banner (tmnivoslider) so that the newly created module can go along side it. Link to comment Share on other sites More sharing options...
NemoPS Posted March 1, 2013 Share Posted March 1, 2013 Well, what goes inside of the function depends on what you need Have a look at doc.prestashop.com for the time being I have to write a tutorial about creating modules someday... thsoe available are just too outdated! Link to comment Share on other sites More sharing options...
Rainbow Trade Posted March 1, 2013 Author Share Posted March 1, 2013 Thanks mate, I'll look into that now. The other issue we were having was we downloaded a mega menu and also a footer to include in the theme which we downloaded. They worked fine in all browsers except for Internet Explorer. I emailed the people that I brought the mega menu from and they investigated the issue for me and said that the html markup was incorrect as once they had disabled the quick search box and the permanent links block the mega menu and footer were displayed correctly in all browsers including Internet Explorer. My boss is wanting the search facility to go back where it originally went. Would you be prepared to have a look and see what is causing the issue. He said he is happy to pay you for your time. Link to comment Share on other sites More sharing options...
NemoPS Posted March 1, 2013 Share Posted March 1, 2013 Hi, Unfortunately I'll not be able to take car of it directly at the moment, due to other worlkload, sorry! Link to comment Share on other sites More sharing options...
Rainbow Trade Posted March 1, 2013 Author Share Posted March 1, 2013 Not to worry, do you know if anyone else would be interested? Link to comment Share on other sites More sharing options...
Rainbow Trade Posted March 1, 2013 Author Share Posted March 1, 2013 In answer to your previous post, the module that I am creating will be a form where users can register to receive a call back from one of our sales reps. Link to comment Share on other sites More sharing options...
Recommended Posts