Jump to content

Is there a hooks positions overview somwhere?


qroft

Recommended Posts

Coming from Joomla and Virtuemart, what i liked about most template sellers, is a preview of each module position within their template. Something like this: https://demo.gavick.com/joomla3/box/images/demo/module_positions.png

 

Modules in Joomla are what a hook is for Prestashop.

 

Does anyone know if this exists for the starter-theme?

 

I am absolutely new to Prestashop so please bare with me if what i am saying sounds weird to you.

But i think that such an overview would be helpfuel to understand where what hook is set, thoug in the backend those hooks are described like "Area above header".

 

The point is, that i am creating my own template i have read in the documentation that i can create my own hooks, but i could not find out how to start this from within a blank page. As i said, i am new to PrestaShop :)

 

Hugs and greetings and thanks for your help in advance.

Link to comment
Share on other sites

Hi Qroft,

 

welcome to the forum! :)

 

I haven't seen this kind of image for Prestashop 1.7 but it's a great idea! I will consider creating something like that!

Meanwhile, this page might be useful for you:

 

http://build.prestashop.com/news/new-updated-hooks-1-7-1-0/

 

For each hook you can also in what file you can find it. I think it could help you to better understand the positions of the hooks.

Edited by Andrej Stas (see edit history)
  • Like 2
Link to comment
Share on other sites

While searching via Google i found several pages offering an overview of "standard" and template specific templates.

I searched for "prestashop hook variables".

I published some i found on my blog at http://www.cyberholic.es/index.php/item/4239-prestashop-1-7-variablen-fuer-templates

 

@Andrej, is there something i might be able to help about with the overview-image i mentioned before?

 

Greetings and thanks to all of you for your support.

Link to comment
Share on other sites

 

I searched for "prestashop hook variables".

I published some i found on my blog at http://www.cyberholic.es/index.php/item/4239-prestashop-1-7-variablen-fuer-templates

 

 

In spanish: http://victor-rodenas.com/variables-globales-en-prestashop-1-7/ (I have this document published since last year. in spanish) (I leave the link in case it helps.) (Using var_dump you can know all the values that contain the global variables)

 

Sorry for my English,

Edited by nadie (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 5 years later...

Has there been any updates on this. As I am trying to find physical hook locations on pages, and i am having difficulties.

I am prettty sure i found a physical hook position web page for PS a few years back, probably for v1.6, but i cannot locate it now.

Any ideas

Maybe a future module for somebody to produce a similar to Firefox 'inspect a page' to show all hook locations ?

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