Jump to content
DARKF3D3

[SOLVED] Overriding a module on Prestashop 1.7

Recommended Posts

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 by DARKF3D3 (see edit history)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More