manfield Posted July 12, 2013 Share Posted July 12, 2013 (edited) Hello, i've been digging documentation and forums to find a solution for module overriding in PS 1.5.x. It's clear enough how to override classes, controllers and templates. I also found an interesting Hack, by Julien BREUX, to override module main class. https://gist.github.com/JulienBreux/2287709 The problem is that module overriding does not work. Let's take, for example, paypal module. I tried to override the controllers/front/sumbit.tpl I put it in module/override/controllers/front/ directory. I cleared cache. Nothing. Is it possible that according to the module, if the author did not implement correctly the overriding, it could work or not? Thanks a lot. M Edited July 12, 2013 by manfield (see edit history) Link to comment Share on other sites More sharing options...
prestatent Posted July 12, 2013 Share Posted July 12, 2013 Hi There isn't a way to do this. I posted the same question recently here: http://www.prestashop.com/forums/index.php?/topic/257330-solved-override-blocklayeredphp/page__view__findpost__p__1296389 Don't know if the other link in this post may help. Cheers Link to comment Share on other sites More sharing options...
manfield Posted July 12, 2013 Author Share Posted July 12, 2013 (edited) Hi, according to the documentation, there's a way to override the main module class, in your case the blocklayered.php file, and Julien Breux, in the example I wrote before gave the solution. So I solved the Module overriding. The problem remains for tpl, controllers and classes, for the module, so all the other elements. According to the module (I mean the way the author coded the module) it could work or not, even if official PS documentation gives clear instructions on how to do. Thanks for your answer. Edited July 12, 2013 by manfield (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 12, 2013 Share Posted July 12, 2013 make sure to check out this post on 1.5.4.1 overrides not working....I don't know if it's a bug (seems to be)... http://www.prestashop.com/forums/topic/238197-solved-overrides-not-working-anymore-in-154/ Link to comment Share on other sites More sharing options...
Recommended Posts