speed3r Posted October 24, 2012 Share Posted October 24, 2012 Hello, I'm looking for a way to add new hook to ps module (blocklayered, blocksearch) without editing module core files, because they're replaced whenever you update module. Is there any way to override module PHP file in PS1.5? Is it possible to add new hook to a module using controllers/classes override? Link to comment Share on other sites More sharing options...
El Patron Posted October 24, 2012 Share Posted October 24, 2012 maybe check out the developers guide...it tell us how to use overrides...in 1.5 http://doc.prestashop.com/display/PS15/Developer+Guide Link to comment Share on other sites More sharing options...
speed3r Posted October 24, 2012 Author Share Posted October 24, 2012 I'm familiar with developers guide. There is described how to override a .tpl, .css or .js file, not a .php file. It's not even a formal override in terms of OO, it just links another file instead. Even if it was possible to replace a php file, it shouldn't be done this way. Is there any other way to keep your module up-to-date without editing it's core file every update just to add one simple method containing new hook position? Link to comment Share on other sites More sharing options...
El Patron Posted October 24, 2012 Share Posted October 24, 2012 (edited) your welcome Edited October 24, 2012 by elpatron (see edit history) Link to comment Share on other sites More sharing options...
Deepan Posted November 20, 2012 Share Posted November 20, 2012 Hi Speed, had you got any solution for this problem , im searching same, if you got please post solution. Link to comment Share on other sites More sharing options...
ivanstaub Posted December 5, 2012 Share Posted December 5, 2012 Hej Speed, I also got the same problem!! Have you found a solution by now? Link to comment Share on other sites More sharing options...
speed3r Posted December 5, 2012 Author Share Posted December 5, 2012 Hey, sorry, I haven't solved that issue yet. As far as I know, it will require overriding module controller by adding a method to check for module's override before loading module. However, I'm pretty sure that will cause some problems with hooks, so I gave up on it for now - prestashop updates slowed down a bit recently. 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