AdUP Posted June 17, 2016 Share Posted June 17, 2016 (edited) Hi, I need your help, I'm with Prestashop 1.6 I put in the editorial override folder / subfolder modules/editorial/editorial.tpl Module Editor of the home page but are not taken into account, do you know why? Edited June 17, 2016 by AdUP (see edit history) Link to comment Share on other sites More sharing options...
Kogkalidis Posted June 17, 2016 Share Posted June 17, 2016 In my case I had to go to /cache and delete the class_index.phpThis file (if does not exist) is generated automatically and gets the new "setting" (overrides).Give it a try! Link to comment Share on other sites More sharing options...
AdUP Posted June 17, 2016 Author Share Posted June 17, 2016 In my case I had to go to /cache and delete the class_index.php This file (if does not exist) is generated automatically and gets the new "setting" (overrides). Give it a try! but it did not solve the problem ... Link to comment Share on other sites More sharing options...
rocky Posted June 18, 2016 Share Posted June 18, 2016 Did you copy modules/editorial/editorial.tpl to themes/<your_theme>/modules/editorial/editorial.tpl? The override/modules directory is for overriding PHP files, not TPL files. 1 Link to comment Share on other sites More sharing options...
Kogkalidis Posted June 18, 2016 Share Posted June 18, 2016 Did you copy modules/editorial/editorial.tpl to themes/<your_theme>/modules/editorial/editorial.tpl? The override/modules directory is for overriding PHP files, not TPL files. I really didn't know that the override folder is not for tpl files. I forgot to mention the /modules and /<your_theme>/modules functionality, though. Nice job, my friend!! 1 Link to comment Share on other sites More sharing options...
AdUP Posted June 18, 2016 Author Share Posted June 18, 2016 Did you copy modules/editorial/editorial.tpl to themes/<your_theme>/modules/editorial/editorial.tpl? The override/modules directory is for overriding PHP files, not TPL files. thank you so much rocky, I did as you told me. But if I change the form, when there will be an update I lose my changes? Link to comment Share on other sites More sharing options...
rocky Posted June 18, 2016 Share Posted June 18, 2016 You will not lose any changes when you update the editorial module. If you update PrestaShop, it may be lost if you're using the default theme. You can copy the default theme and rename it to avoid that happening. If you switch to another theme, you'll need to copy the file to your new theme. Link to comment Share on other sites More sharing options...
eleazar Posted June 18, 2016 Share Posted June 18, 2016 I really didn't know that the override folder is not for tpl files.Depends on what you are going to override. In case of the modules Rocky already gave you the right answer. Like modules behavior overrides of mails or pdf (invoices etc.) have to be placed in the theme's directory, too. But if you want to override tpl-files of the back office, you have to do it in the overrides directory, though the path may be a bit different, when you override parts of the BO theme. 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