Jump to content

Best way to edit core Prestashop (modules and theme) files


charlie123

Recommended Posts

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

  • 1 year later...
  • 2 months later...
  • 3 weeks later...

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

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