Override a Prestashop's default behavior

Any change that has to be done in the Prestashop's default behavior is likely to concern its classes / controllers.
Such modification has to be always put in the override folder:

  • /override/classes/
  • /override/controllers/

Override a module in PS 1.6

There are 4 types of module customizations:

  1. Design adaptations: for changes in TPL files, override them in a folder of the same name, placed inside the theme folder. Example: /themes/xxxx/modules/module_name/
  2. Design adaptations: for changes in CSS files, override them in a folder of the same name, placed inside the CSS theme folder. Example: /themes/xxxx/css/modules/module_name/
  3. Design adaptations: for changes in JS files, override them in a folder of the same name, placed inside the JS theme folder. Example: /themes/xxxx/js/modules/module_name/
  4. Functionnalities adaptations: for changes in the behavior of the module itself, it is likely that we have to modify its main file module_name.php. In that case, always override the corresponding file in the override modules folder. Example: /override/modules/module_name/module_name.php

Override a module in PS 1.7

There are 2 types of module customizations:

  1. Design adaptations: for changes in TPL, CSS and JS files, override them in a folder of the same name, placed inside the theme folder. Example: /themes/xxxx/modules/module_name/ and then keep the exact same structure of the module in the parent folder.
  2. Functionnalities adaptations: for changes in the behavior of the module itself, it is likely that we have to modify its main file module_name.php. In that case, always override the corresponding file in the override modules folder. Example: /override/modules/module_name/module_name.php


Never modify the module_name.php directly inside its root folder ( /modules/module_name/).

If the modification requests a change in the classes / controllers or other files that cannot be overriden, then it has to be done in the root folder of the module.

But this must be written in the documentation of the project! Download the developper documentation
Because the module cannot be upgraded afterwards.