charlie123 Posted February 17, 2012 Share Posted February 17, 2012 Hello, I have to edit few modules and core Prestashop theme and everytime I'm doing the Prestashop update I need to repeat this steps for every file I want to edit as they are override by new files. Is there any other option to create separate files with my edits so I don't need to touch core Prestashop files? Thanks Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 17, 2012 Share Posted February 17, 2012 Hello, You can override Classes, Controllers, and module template files. Classes and Controllers go to the folder called 'override' Module template files go to : 'themes/[YOUR_THEME_NAME]/modules/[MODULE_NAME]' 1 Link to comment Share on other sites More sharing options...
marcis Posted March 21, 2013 Share Posted March 21, 2013 What about overriding a core template file (contact-form.tpl) from a module? Can it be done? If so, how? Regards Link to comment Share on other sites More sharing options...
mortenq Posted March 21, 2013 Share Posted March 21, 2013 Hi You can override a controller in your module, and then tell the controller to use your module template file instaed. Take a look: http://doc.prestashop.com/display/PS15/Overriding+default+behaviors#Overridingdefaultbehaviors-Overridingacontroller 2 Link to comment Share on other sites More sharing options...
nephi_ Posted June 20, 2013 Share Posted June 20, 2013 (edited) Hi, can you help me out? Do you know in what file can I find the order creation query? I need to do some modifications there. Please help Edited June 20, 2013 by NephiDCGWS (see edit history) Link to comment Share on other sites More sharing options...
stratboy Posted July 8, 2013 Share Posted July 8, 2013 Hi You can override a controller in your module, and then tell the controller to use your module template file instaed. Take a look: http://doc.prestasho...dingacontroller Not all the modules have controllers. Even if prestahop certified 1.5 commercial ones. For example rich menu. Hello, You can override Classes, Controllers, and module template files. Classes and Controllers go to the folder called 'override' Module template files go to : 'themes/[YOUR_THEME_NAME]/modules/[MODULE_NAME]' I've tried and it doesn't work. And I'm not the only one: http://www.prestashop.com/forums/topic/257330-solved-override-blocklayeredphp/page__p__1281517__hl__module%20override__fromsearch__1#entry1281517 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