Sunday, 2 September 2018

Display custom contents below the list of products on category page

Hello, Very nice module content box pro. I am trying from the demo back office to add some text only to a category product (ex: http://demos.mypresta.eu/html-box-pro/en/5-ipods) under the products but i can`t figure how Please tell me how can i add some text to that category page under the pictures. I really want to buy this module. Thank you, Alex.


Module to display custom contents below on category page - below the list of products

PrestaShop displays modules in positions named "hooks".
Each theme developer put hooks to theme in a little different way, so the exact 'position' to use in 'html box pro' depends on how theme is developed.

In PrestaShop 1.6:
in context of default theme it is necessary to create custom hook, because default theme does not have any kind of hook there (you can see default hooks on category page here: https://i.imgur.com/3s6IHOJ.jpg)
- so i created hook named displayCategoryBottom: https://i.imgur.com/eR7irFV.png
- i created "test" block there: https://i.imgur.com/YADz5Ty.png
- i put it to theme file category.tpl
- effect: https://i.imgur.com/eMA6TzT.png

in PrestaShop 1.7:
prestashop 1.7 is ready to show contents there by default. List of deault hooks: https://i.imgur.com/eMA6TzT.png
so as you can see - you can use position named dispalyContentWrapperBottom or displayWrapperBottom

best regards,
milos

No comments:

Post a Comment