Product page hooks in PrestShop 1.7

As you already know PrestaShop 1.7.x has totally new template called "classic" theme. New version of PrestaShop contains many changes, these changes affects each available visible part of the shop, also from technical point of view. So - new version of PrestaShop 1.7.x has many new hooks, some of old hooks are not available anymore. Because of this it is worth to explain what hooks are available and where exactly. Especially if you want to use some kind of custom contents modules. Below you can find a list of available hooks with short explanation. I added also screenshot where i show where the hooks appear.

  1. displayHeader
    This is specific position in our template. This hook adds additional elements in the head section of your pages (head section of html). This means that you can load here some scripts, css files, js files or any other element that should be implemented to <head> section of your website.
  2. displayProductFooter
    This is hook where you can add additional product description like videos, pictures, some widgets like facebook comments etc. Simply saying this section allows to display custom contents and from customer point of view - contents available here usually are treated as a part of additional description of product
  3. displayTop
    This position loads wide horizontal menu. Its one from the most visible hooks in the shop, so you can put here important informations or features that allows to navigate through the website. 
  4. displayFooter 
    Footer section is available at the bottom of the page where you can see some navigation items like links to pages, newsletter subscruption etc. With this block you can display own custom contents directly inside the footer block.
  5. actionProductOutOfStock 
    This hook appears when product is out of stock, near the product attributes and quantity field
  6. displayNav1
    this is hook that appears on the left hand side of top bar (prestashop 1.7.x)
  7. displayNav2
    this is hook that appears on the right hand side of the top bar (prestashop 1.7.x)
  8. displayReassurance 
    this is position that appears below the add to cart button  (prestashop 1.7.x)
  9. displayAfterProductThumbs
    this is hook that is visible below the product pictures (prestashop 1.7.x)
  10. displayProductAdditionalInfo
    this is position that is visible below the add to cart button (prestashop 1.7.x.)
  11. actionProductAutOfStock 
    this is position that is visible when product is out of stock in "description" tab of the product (prestashop 1.7.x)
  12. displayBeforeBodyClosingTab
    this is position visible at the end of website, right before body closing tag (prestashop 1.7.x)
  13. displayFooterBefore
    this is the position visible right before the footer section (prestashop 1.7.x)


product page hooks in PrestaShop 1.7.x

author milos myszczuk
Article by Milosz Myszczuk PrestaShop expert, official PrestaShop community moderator. PHP developer, specialist in relative and spatial databases management, GIS Analyst, CEO & founder of VEKIA interactive agency. Read more about VEKIA company
If you like my articles and want much more valuable tips, feel free to send me donation
1.4 version 1.4.11 1.6 404 addon admin advertise ahref ajax alpha animation api app application authentication back office backup badge banner basics block bootstrap button cache carrier cart catalog category certificate changelog chat class clear client clip cms code colors columns comments configuration contact container content controller cookie counter country coupon css csv currency customer dashboard database debug default delete delivery desktop developer device disable discount displayNav displayTop download dynamic editor effect empty encrypt engine error exchange exclude export facebook faceshop fade fancoupon fancybox fanpage fatal feature feed field file fix fixed font footer free friendly url front ftp full gallery generate gift global godaddy google google+ gray grid groupon header help hide highlight homefeatured homepage hook hosting hover howto htaccess html html5 ID image import include input instagram installation integration iPhone issue javascript jquery kgb knowhow languages law left likebox link list livingsocial loading log login logo loyality mail mailing maintenance manufacturer marketing marquee mcrypt menu meta mobile modification module movie moving multilanguage multiupload must have mysql news newsletter notification number open graph order override page password performance PHP phpmyadmin picture pinterest plugin popup post prestashop prestashop 1.0 prestashop 1.1 prestashop 1.2 prestashop 1.3 prestashop 1.4 prestashop 1.5 price rules problem product profile promotion proslider purifier quantity query quick tip random rates register reinsurance release reporting reset responsive restore results ribbon rich text right sales search security seo service shadow share shipping shop shopmania slider smarty social networks SQL SSL statistics stock store style subcategory superuser support switcher tab tablet tag tax template text theme tinyMCE tips and tricks tpl tracking translations tree trends trigger tumblr tutorial twitter update upgrade upload variables video visits voucher vulnerability web2print wide widget width window wishlist wysiwyg youtube zip zopim