Hooks in PrestaShop is the most important component for inserting modules into your theme. PrestaShop 1.7 contains many changes, these changes affects each available visible part of the shop, also from technical point of view. In this new version PrestaShop 1.7.x has many new hooks, some of old hooks are not available anymore. In order to modified the product page of Prestashop, first developer needs to know about hooks available on product page. So here is the list of different hooks available on Product page in PrestaShop 1.7
1. displayBanner
It’s located in below file:
\themes\classic\templates\_partials\header.tpl
2. displayNav1
It’s located in below file:
\themes\classic\templates\_partials\header.tpl
3. displayNav2
It’s located in below file:
\themes\classic\templates\_partials\header.tpl
4. displayTop
It’s located in below file:
\themes\classic\templates\_partials\header.tpl
5. displayNavFullWidth
It displays full width navigation menu at the top of your pages. It’s located in below file:
\themes\classic\templates\_partials\header.tpl
6. displayAfterProductThumbs (Available since: 1.7.1)
It’s added below the Images container block. It’s located in below file: \themes\classic\templates\catalog\_partials\product-cover-thumbnails.tpl
7. displayProductPriceBlock
It’s added after the product’s name. It’s located in below file: \themes\classic\templates\catalog\_partials\miniatures\product.tpl
8. displayProductListReviews (Available since: 1.7.1)
It’s added after the product’s price block. It’s located in below file: \themes\classic\templates\catalog\_partials\miniatures\product.tpl
9. displayProductAdditionalInfo
It’s added after the product add to cart block. It’s located in below file: \themes\classic\templates\catalog\_partials\product-additional-info.tpl
10. displayReassurance
It’s located in below file:
\themes\classic\templates\catalog\product.tpl
11. actionProductOutOfStock
It displays new action buttons if a product is out of stock. It’s located in below file:
\themes\classic\templates\catalog\_partials\product-details.tpl
12. displayFooterProduct
It’s added under the product’s description. It’s located in below file:
\themes\classic\templates\catalog\product.tpl
13. displayFooterBefore
It’s located in below file:
\themes\classic\templates\_partials\footer.tpl
14. displayFooter
It’s located in below file:
\themes\classic\templates\_partials\footer.tpl
15. displayFooterAfter
It’s located in below file:
\themes\classic\templates\_partials\footer.tpl
16. displayBeforeBodyClosingTag
This hook for your modals or any content you want to load at the very end. It’s located in below file:
\themes\classic\templates\_partials\header.tpl
That’s all!
Leave a Reply