Override folder functionality and conflicts?
I have a class file called group.php in the prestashop base code.
I want to add a new field and make some functional changes to that group.php file.
I have created a custom module and did those changes there. When i install that module, my inherited group.php file is sent to the Base Override folder and stays there.
Now my question is,
How that override functionality is working?
How the conflicts are managed by prestashop?
For eg: I have 2 modules which are seperately overriding the same file group.php.
If i install those 2 module simultaneously which group.php will be there in the base override folder?
Here is the
addOverride()method fromModuleclass:As stated in the comments conflicts are handle at method and properties scale.
If you try to install a module that override a new method or a new property, everything will work fine and the two files will be combined.
If you try to install a module that override a method already overridden by a different module the installation will fail.