Jump to content

Add a new hook


Recommended Posts

Ok, I've been through some articles on how to add a new hook, one of which is Julien Breux's....

 

But the articles are not complete or clear enough... In which files exactly do I need to place the code for the new hook?

 

Let's say I want to add a new hook on the home page, to show a block right before the HOME hook... On index.tpl, I simply have the following code:

 

{$HOOK_HOME}

 

So I guess I will have to add something like {$HOOK_MYHOOK} just before this one (and after adding the new hook to the table "ps_hook")

 

But what should I do next? My aim is to show the featured products block just after the top of the page and before the HOME block

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...