qroft Posted May 25, 2017 Share Posted May 25, 2017 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 More sharing options...
selectshop.at Posted May 25, 2017 Share Posted May 25, 2017 Docu not ready for PS 1.7. cause still in development: http://developers.prestashop.com/ You can also take as base the hooks-list in back-office: tab "Design -> positions" 1 Link to comment Share on other sites More sharing options...
Andrej Stas Posted May 25, 2017 Share Posted May 25, 2017 (edited) 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 May 25, 2017 by Andrej Stas (see edit history) 2 Link to comment Share on other sites More sharing options...
selectshop.at Posted May 25, 2017 Share Posted May 25, 2017 Thank you Andrej. This should be added in the official developer docu as well. I was searching for such list oo a while ago, but didn't find it. 1 Link to comment Share on other sites More sharing options...
qroft Posted May 25, 2017 Author Share Posted May 25, 2017 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 More sharing options...
nadie Posted May 25, 2017 Share Posted May 25, 2017 (edited) 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 May 25, 2017 by nadie (see edit history) 1 Link to comment Share on other sites More sharing options...
razaro Posted May 25, 2017 Share Posted May 25, 2017 You could also maybe check this free module and load to 1.7 https://www.prestashop.com/forums/topic/468925-what-is-this-module-what-is-this-hook-css-js-tpl/ should work. 2 Link to comment Share on other sites More sharing options...
gray Posted June 20, 2022 Share Posted June 20, 2022 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now