Prestashop Override Module Class ((top)) Instant
// Your custom logic before the original install if (!parent::install()) return false;
Always check the PrestaShop Developer Documentation to see if a Hook can achieve your goal. Hooks are safer and more compatible than overrides. prestashop override module class
Here is the piece on how to do it correctly. // Your custom logic before the original install if (
You can also override a module's front or admin controllers using the same "Override" suffix logic. prestashop override module class
: Place your new PHP file in the following directory path: /override/modules/[module_name]/[module_name].php .
public function __construct()