Jump to content

How Do You Hook A Newly Created Module To Header Of Pages?


Recommended Posts

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 by Rainbow Trade (see edit history)
Link to comment
Share on other sites

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

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

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! :D

Link to comment
Share on other sites

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

×
×
  • Create New...