Child pages
  • Views within PrestaShop

Versions Compared

Key

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

...

A view name is generally the same as the name for the code using it. For instance, 404.php uses 404.tpl.

Overriding a view file

Warning
titleKeep overrides for your own shop

Overrides in PrestaShop are exclusive. This means that if your module overrides one of PrestaShop's behaviors, another module will not be able to use that behavior properly, or override it in an predictable way.

Therefore, overrides should only be used for your own local modules, when you have a specific need that cannot be applied with it.

It is not recommended to use an override in a module that you intend to distribute (for instance through the PrestaShop Addons marketplace), and they are forbidden in partner modules.

As there is no inheritance, there is no way to override a view. In order to change a view, you must rewrite the template file, and place it in your theme/module's folder, in the same path.

...