Eric-CBD Posted June 26, 2014 Share Posted June 26, 2014 I am new to Prestashop and the forum. This may be a dumb question but I have searched for the answer to no avail. Is there a way to modify a .tpl file through the back office or do I need to download it and modify it through Notepad++ and then upload it over the originl file? Link to comment Share on other sites More sharing options...
dioniz Posted June 26, 2014 Share Posted June 26, 2014 Hello Eric and welcome to forum. You need to download, edit, upload. In my opinion it is best idea to copy original theme, make it default and make changes in your new theme so you won't loose changes on updates. 1 Link to comment Share on other sites More sharing options...
CSEpe Posted June 26, 2014 Share Posted June 26, 2014 ad .php at the end (name.tpl -> name.tpl.php) and open it in HTML editor. Afterwards rename it again Link to comment Share on other sites More sharing options...
Eric-CBD Posted June 26, 2014 Author Share Posted June 26, 2014 Thanks and Thanks! Link to comment Share on other sites More sharing options...
dioniz Posted June 26, 2014 Share Posted June 26, 2014 Why would you need to do that? 1 Link to comment Share on other sites More sharing options...
Eric-CBD Posted June 26, 2014 Author Share Posted June 26, 2014 Downloading, modifying and uploading worked like a charm. I just wanted to make sure there wasn't an editor built in that I was missing. That would be a great function on future versions for those of us who like to change stuff. My webserver actually has a file editor built in but it is quite buggy so I just use Notepad++ Link to comment Share on other sites More sharing options...
tuk66 Posted July 1, 2014 Share Posted July 1, 2014 You probably firstly test changes locally so Notepad++ is a natural approach. Link to comment Share on other sites More sharing options...
sammi_552 Posted April 9, 2015 Share Posted April 9, 2015 I have PrestaShop version 1.6.0.8 and using the file manager, I renamed the category.tpl file to category.tpl.php so I could view it. How do I change it back to category.tpl? When I double click on the file and change it to category.tpl and click "save," it automatically saves the file to category.tpl.php again. Thank you! Link to comment Share on other sites More sharing options...
kishoreunni Posted April 9, 2015 Share Posted April 9, 2015 I have PrestaShop version 1.6.0.8 and using the file manager, I renamed the category.tpl file to category.tpl.php so I could view it. How do I change it back to category.tpl? When I double click on the file and change it to category.tpl and click "save," it automatically saves the file to category.tpl.php again. Thank you! I think this is simple you need to change the type to .txt and save the file as .tpl thats all. i hope it may help you. Link to comment Share on other sites More sharing options...
dioniz Posted April 9, 2015 Share Posted April 9, 2015 If you are using Notepad++ and don't want to change file extensions you can do this: In Notepad++ go to Settings > Style Configurator Under Language select php and type tpl in User ext. box. Click Save and Close. Link to comment Share on other sites More sharing options...
Recommended Posts