Prestashop logo, Visit home page

The hook system

-

PrestaShop works with a system of hooks, so here's a brief overview to get you started.

The principle is as follows: each zone of a front-office page (header, menu, top of page, footer, etc.) is associated with a hook. This system enables modules to be grafted precisely at this point, and thus to modify a specific area of your store's web page. This system is intended primarily for developers, but as a merchant it's important to understand how it works.

 

Go to hooks list

PrestaShop has a large number of hooks. The easiest way to find the complete list of hooks is to consult the technical documentation directly. As with most software, it is written in English.

 

Know which module uses which hook

You can see which modules are grafted onto your store's hooks. To do this, go to the "Design" menu, then "Positions", to view all the hooks used and the modules associated with these hooks:

IMG-20505563893138.png

 

💡 You can change the position of the modules on the same page. To find out more, read our article on the subject: Modifying the position of modules.

Share

Was the article helpful?