Jump to content

[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)
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...
  • 10 months later...
  • 3 weeks later...
  • 2 years later...
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

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...