DARKF3D3 Posted July 17, 2018 Share Posted July 17, 2018 (edited) Hello, I'm trying to create a copy of some modules tpl file, because I need to make changes to some modules and I prefer not to edit the original files. I'm trying to do this on PS1.7.4 but I don't understand how to do this correctly. For example i tried creating a copy of this file: /modules/ps_emailsubscription/views/templates/hookps_emailsubscription.tpl So i put this file into this folder: themes/mycustomtheme/modules/ps_emailsubscription/views/templates/hookps_emailsubscription.tpl But there's something not working properly, because after copying the file, with no modify in it, there's some problems with the layout of the newsletter block. The same problem also with other modules, and also with files that are into the main folder of the module. Any help? Edited August 10, 2018 by DARKF3D3 (see edit history) Link to comment Share on other sites More sharing options...
DARKF3D3 Posted July 19, 2018 Author Share Posted July 19, 2018 I read also this, but I haven't yet find a solution: http://doc.prestashop.com/display/PS17/Overriding+modules I tried also with another module but with the same result... Break layout after overriding tpl file from: /modules/ps_contactinfo/ps_contactinfo.tpl To: /themes/mycutomtheme/modules/ps_contactinfo/ps_contactinfo.tpl Link to comment Share on other sites More sharing options...
DARKF3D3 Posted July 27, 2018 Author Share Posted July 27, 2018 No one tried overriding default PS module tpl files? 1 Link to comment Share on other sites More sharing options...
Ourgon Posted August 10, 2018 Share Posted August 10, 2018 Hey there, Was wondering the same and found out this nice tutorial : https://belvg.com/blog/overriding-modules-in-prestashop-1-7.html Enjoy : ) 1 Link to comment Share on other sites More sharing options...
DARKF3D3 Posted August 10, 2018 Author Share Posted August 10, 2018 Thank you Ourgon, after more investigation i found out that the problem was caused by some file of the module saved into the classic template folder, while I was using a child template based on it. Link to comment Share on other sites More sharing options...
dolec Posted June 30, 2020 Share Posted June 30, 2020 how can i override module template files in child theme of classic theme? Should i delete files from classic theme or is it enough to upload the same files to child theme and change it? Link to comment Share on other sites More sharing options...
50l3r Posted May 8, 2021 Share Posted May 8, 2021 is it possible to replace php files? Link to comment Share on other sites More sharing options...
MrEduar Posted May 25, 2021 Share Posted May 25, 2021 On 5/8/2021 at 7:39 AM, 50l3r said: is it possible to replace php files? Did you manage to do it? I also want to overwrite this. Link to comment Share on other sites More sharing options...
50l3r Posted May 26, 2021 Share Posted May 26, 2021 15 hours ago, MrEduar said: Did you manage to do it? I also want to overwrite this. Nope. The only way to do this its overwrite the module Link to comment Share on other sites More sharing options...
MrEduar Posted May 26, 2021 Share Posted May 26, 2021 5 hours ago, 50l3r said: Nope. The only way to do this its overwrite the module I did it by overwriting the module in /override/modules Link to comment Share on other sites More sharing options...
w3bsolutions Posted December 25, 2023 Share Posted December 25, 2023 On 6/30/2020 at 2:56 PM, dolec said: how can i override module template files in child theme of classic theme? Should i delete files from classic theme or is it enough to upload the same files to child theme and change it? It's enough to just upload the same files to the child theme and modify them. 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