PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 6, 2024
Let's talk code, commerce and open source.

Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

The Hook component

One of the main ways Modules interact with PrestaShop is through “Hooks” – PrestaShop’s event system. Hooks are extension points which are placed throughout the system, allowing subscribing Modules to be notified of system events, inject content, or even alter the behavior of PrestaShop.

There are two types of hooks:

  • Display hooks – Integrated mainly (but not exclusively) in templates, they allow modules to provide content that will be injected at a specific place in a page. Display hook names usually start with “display”.
  • Action hooks – Allow modules to be informed of something happening in the system, and optionally alter the system’s behavior by modifying the provided data. Action hook names usually start with “action”.

In this section

Next: Subscribing to a Hook ›