In this article we continue exploring Prestashop modules. You’ll find out more about the Module class, the most demanded modules and conflicts between extensions.
1.1 The Module class
Almost all modules are inherited from the class Module. These are the hooks which are called in a class:
- Hook::exec(‘actionModuleInstallBefore’, array(‘object’ => $this)); //is called before installing a module
- Hook::exec(‘actionModuleInstallAfter’, array(‘object’ => $this)); //is called after installing a module
- Hook::exec(‘displayPayment’); //this hook is designed for payment modules. (more…)