https://github.com/buggyzap/prestashop-module-override-system
Prestashop Module Override System - Override php module behaviours
https://github.com/buggyzap/prestashop-module-override-system
behavior customizations prestashop prestashop-cms prestashop-override
Last synced: 3 months ago
JSON representation
Prestashop Module Override System - Override php module behaviours
- Host: GitHub
- URL: https://github.com/buggyzap/prestashop-module-override-system
- Owner: buggyzap
- Created: 2022-09-22T21:26:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-22T22:26:52.000Z (over 2 years ago)
- Last Synced: 2025-01-15T12:14:20.972Z (4 months ago)
- Topics: behavior, customizations, prestashop, prestashop-cms, prestashop-override
- Language: PHP
- Homepage: https://github.com/buggyzap/Prestashop-module-override-system/releases/download/1.0.0/module_override.zip
- Size: 80.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Override default php module Prestashop behaviours
Are you searching for a method that let you override php modules behaviours of Prestashop?
## Module Download
➡️ [Last release download](https://github.com/buggyzap/Prestashop-module-override-system/releases/download/1.0.0/module_override.zip)
## What this module do
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!
## How it works
1. Download and install last module release
2. 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
```
3. 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.
## Report a bug
Please open an issue if you found a bug.
## Want to contribute?
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