theDoris Posted March 12, 2019 Share Posted March 12, 2019 I create own module and I want to override some file so in views folder I create folder PrestaShop and in it I add complete path to file like Admin/Catalog/Product/List/somefile.php and this override works, but when I want override file from src folder there is nothing happend. For example I want to override file public_html/src/Adapter/Product/PriceCalculator.php so in my module I have public_html/modules/mycustommodule/views/PrestaShop/src/Adapter/Product/PriceCalculator.php and this is not work. There is any possibility to override those files? Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted March 12, 2019 Share Posted March 12, 2019 Hi..you do not override them, Prestashop did not build support for overriding new core in v1.7 read this topic i hope you understand better Thanks Link to comment Share on other sites More sharing options...
theDoris Posted March 12, 2019 Author Share Posted March 12, 2019 Thank you for answer, maybe you know not native possibility to override this file? Link to comment Share on other sites More sharing options...
Kogkalidis Posted March 13, 2019 Share Posted March 13, 2019 Make a /backup directory in your module. Copy there the genuine file. Copy the modified file in the original place. Also make a function that will bring back the backup in case you disable/Uninstall the module 1 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