Kunsthelden Posted February 8, 2018 Share Posted February 8, 2018 (edited) Dear programmers, I couldn't find this... can I do an override of a module class? I would like to override e.g. /modules/mymodule/classes/myfile.php in folder /override/modules/mymodule/classes/myfile.php but this doesn't work. I also tried out other folder options. In addition, I think that I read somewhere in a forum that only mymodule core classes (mymodule.php) can be overwritten but I tried it out with /controllers/myotherfile.php where it worked. Would you please advice, it it is possible to override classes like /modules/mymodule/classes/myfile.php? And if so how would the override called... also with myfileOverride? I'm using 1.7.2.4 Kind regards, Edited September 18, 2018 by Kunsthelden (see edit history) Link to comment Share on other sites More sharing options...
phinq1910 Posted February 9, 2018 Share Posted February 9, 2018 Try create override file in override/modules/mymodule/..... Link to comment Share on other sites More sharing options...
bellini13 Posted February 23, 2018 Share Posted February 23, 2018 You CANNOT override a modules class file. You CAN override a core Prestashop class file Link to comment Share on other sites More sharing options...
Apar Posted February 24, 2018 Share Posted February 24, 2018 21 hours ago, bellini13 said: You CANNOT override a modules class file. You CAN override a core Prestashop class file But I read it at nemops.com that in 1.6.0.11 you can override module core files also. See this -> http://nemops.com/override-prestashop-modules-core/#.WpFJdKiWaUk Link to comment Share on other sites More sharing options...
bellini13 Posted February 27, 2018 Share Posted February 27, 2018 Show me where it says you can override a modules class files? Module core files and module class files are NOT the same thing. Link to comment Share on other sites More sharing options...
Apar Posted March 5, 2018 Share Posted March 5, 2018 (edited) On 2/27/2018 at 6:20 PM, bellini13 said: Show me where it says you can override a modules class files? Module core files and module class files are NOT the same thing. Okay... So what can we do if we want to change working of any function in module class file without affecting other php files? Edited March 5, 2018 by Apar (see edit history) Link to comment Share on other sites More sharing options...
Kunsthelden Posted September 18, 2018 Author Share Posted September 18, 2018 Would have love to: -> You CANNOT override a modules class file. 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