Child pages
  • Creating a PrestaShop module

Versions Compared

Key

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

...

The front-office part of the module is defined in a .tpl file placed in a specific folder: /views/templates/front/. TPL files can have just about any name. It there is only one such file, it is good practice to give it the same name as the folder and main file: mymodule.tpl.

In the case of this tutorial, the module will be hooked to the left column. Therefore, the TPL files should be placed in /views/templates/hook/ in order to work.

Info

In PrestaShop 1.4, the module's template file were to be placed at the root of the module's folder.

For compatibility reasons, template files can still reside in the root folder in PrestaShop 1.5, although it is not recommended anymore. Therefore, if you intend your module to also work in PrestaShop 1.4, you should keep your files there.

...