Are you searching for a method that let you override php modules behaviours of Prestashop?
This module let you override every module .php files you want in your shop.
Native Prestashop override system, only let you override default .js and .tpl files via themes/modules sub-folders, or default Prestashop classes via override folder.
Thats way I decided to create a module that let you to override .php files too!
Sometimes you want to replace specific module behaviours and you don't want to touch original code, this module let you do exactly that!
- Download and install last module release
- Create a module structure you need to override inside the module_overrides folder, following the schema (You will duplicate existing sample as starter point)
- module_name
- module_version
- .override
- file_to_override_2.php
- file_to_override_1.php
- src
- class_to_override.php
- Go to module configuration page and switch from Active/Inactive override.
.override file is mandatory and contain the override state.
The module automatically detect if is your first override and create .original file version that is used in case you want to reverse the changes.
Note that you will see only overrides of modules you have installed of the specific version you want to override.
Please open an issue if you found a bug.
Run these commands to install dependecies and to make css changes
# install dependencies
npm install
# start tailwind daemon css generator
npx tailwindcss -i ./views/css/input.css -o ./views/css/back.css --watch --minify
This module is built with Tailwind CSS 3.x Framework