kirubanidhi Posted January 5, 2017 Share Posted January 5, 2017 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 More sharing options...
bellini13 Posted January 5, 2017 Share Posted January 5, 2017 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 More sharing options...
Mahdi Shad Posted June 16, 2017 Share Posted June 16, 2017 (edited) Hi You can install several modules which have group.php inside their override and PrestaShop can handle them very well. But you can't override a single method from group.php file in several modules Edited June 16, 2017 by Mahdi Shad (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now