prestatent Posted June 26, 2013 Share Posted June 26, 2013 (edited) Prestashop 1.5.4.1 on windows 7 running on localhost. Hi I need to override blocklayered.php. Where should I place the overrride code. It does not work when placed in the themes module directory. Should the override module be placed in a modules folder in the overrrides directory? Thanks for any help. Regards David Edited June 27, 2013 by prestatent (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted June 26, 2013 Share Posted June 26, 2013 Hi, I haven't tried this but my 'guess' is that you would place the override in override/classes/module Link to comment Share on other sites More sharing options...
prestatent Posted June 26, 2013 Author Share Posted June 26, 2013 Hi El Patron Have just tried this but no joy. I only copied blocklayered.php to override/classes/module. I also copied to override/classes/module/blocklayered to try, but again no joy. I've looked at documentation on this, but any mention of overrides only relates to the the .tpl files and not the actual .php files for modules. Thanks Link to comment Share on other sites More sharing options...
prestatent Posted June 27, 2013 Author Share Posted June 27, 2013 Update. Do to there being a lack of documentation on this subject (none that I can find anyway), I have had to update the core blocklayered.php file to get the result I'm looking for. I'm a bit disappointed that there isn't a standard way to override modules in the same way as for classes and controllers. Link to comment Share on other sites More sharing options...
stratboy Posted July 8, 2013 Share Posted July 8, 2013 Update. Do to there being a lack of documentation on this subject (none that I can find anyway), I have had to update the core blocklayered.php file to get the result I'm looking for. I'm a bit disappointed that there isn't a standard way to override modules in the same way as for classes and controllers. I have the same problem, and I'm quite as disappointed as you.. Also, in this case the documentation is not good, as you said. Link to comment Share on other sites More sharing options...
El Patron Posted July 8, 2013 Share Posted July 8, 2013 this post may help some of us http://www.prestashop.com/forums/topic/238197-solved-overrides-not-working-anymore-in-154/ Link to comment Share on other sites More sharing options...
prestatent Posted July 9, 2013 Author Share Posted July 9, 2013 Thanks El Patron. However, there is still not a standard way to override modules. Looking at the post you have to clone a module and rename all references to it. Not exactly ideal but I suppose it will have to do. Thanks. 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