Joselu55 Posted September 16, 2020 Share Posted September 16, 2020 Hi. Install not override in classes/pdf. Why? Link to comment Share on other sites More sharing options...
elburgl69 Posted September 16, 2020 Share Posted September 16, 2020 In modules overrides are not implemented automatically. You have to copy the overriden class manual to /overides/* or implement copying it in your install method. Only one module can implement it's changes this way. If required changes are local to your module consider inheriting a module class from PDFCore (and PDFGeneratorCore) and include and use that class in you module. See also https://devdocs.prestashop.com/1.7/modules/concepts/overrides/ Link to comment Share on other sites More sharing options...
Joselu55 Posted September 16, 2020 Author Share Posted September 16, 2020 Thanks, elburgl69. Aaaaaargh! Work fine. I forgot to put Core in class name extend. OMG. Now override auto ok in classes/PDF folder too. Sorry, for my english. Thanks, again. Link to comment Share on other sites More sharing options...
Freddy Castillo Posted May 28 Share Posted May 28 On 9/16/2020 at 8:39 AM, elburgl69 said: In modules overrides are not implemented automatically. You have to copy the overriden class manual to /overides/* or implement copying it in your install method. Only one module can implement it's changes this way. If required changes are local to your module consider inheriting a module class from PDFCore (and PDFGeneratorCore) and include and use that class in you module. See also https://devdocs.prestashop.com/1.7/modules/concepts/overrides/ Greetigns. Can i override from mymodule/override/classes/Customer.php if Customer.php class its too in root/override/classes folder?? at reinstall this its giving me error... 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