Child pages
  • Fundamentals

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • A root folder, named after the module, which will hold all of the modules module's files, and will reside in PrestaShop's /modules folder.
  • A main PHP file, named after the module, located in that root folder. This PHP file should have the same name as its root folder.
  • An icon file, named logo.gif, representing this module.
  • Optional: some .tpl files, containing the module's theme.
  • Optional: language files, if the module of or its theme have text to display (and therefore, that should be translatable).
  • Optional: in a /themes/modules folder, a folder with the same name as the module, containing .tpl and language files if necessary. This last folder is essential during modifications of existing module, so that you can adapt it without having to touch its original files. Notably, it enables you to handle the module's display in various ways, according to the current theme.

...

A list of PrestaShop hooks

Here is a list of 53 hooks, available in PrestaShop.Here's a recap of PrestaShop's module architecture:

...

When one of the site's page is loaded, the PrestaShop engine check which are the modules to call for each of the hooks that make up the page.

Here is a list of 53 hooks, available in PrestaShop.

Front-office

Homepage and general website items

...