Jump to content

Override folder functionality and conflicts?


Recommended Posts

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?


Link to comment
Share on other sites

this depends on the version of prestashop being used.  some versions don't support automatically installing it, some versions will copy it properly, but you have to manually remove the class index, and some will report conflicts if the same function in the same class has been overriden twice, in which case the new override will not be installed.

Link to comment
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...