Jump to content

Hook Location Overview


YoyoLuke

Recommended Posts

Hi team,

 

Has anyone got some advice on where to look for a visual overview of where all of the hooks are located?

 

I know this has been asked previously, and there was a link provided to this document:

 

http://doc.prestashop.com/display/PS15/Hooks+in+PrestaShop+1.5

 

However it still doesn't give a visual representation of where the hooks are, and Live Edit mode is confusing as hell.

 

Essentially it's because for a new site I am working on, I want to be able to add in custom text boxes / content, and be able to position them wherever I want on the page. However with a test module and site I am using, I specify a hook for the text box, and 9/10 times it doesn't appear where I *think* it should based on the hook location (Header and Footer seem to be the only easily discernable locations at present).

 

If anyone has any tutorials/reading materials that I can look at, I would really appreciate it.

 

Many thanks

 

Luke

Link to comment
Share on other sites

Hi Luke,

 

yea, I miss joomla days url ?tp1 where we can see a themes placements.  You can look at PS live edit for something similar.

 

as dev of modules, I was looking for way to not box in a module, so we build a dynamic hooker system, that reads then filters out hook data from db.  It was a labor of love and  the most advanced module hook management of 'any' module on the planet...lol

 

check the bo demo for Shipping Commander here.  in 1.7 we will see big change to 'widets' which will give much more flexibility on module placement.

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...