Jump to content

Modifying a .tpl file


Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

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

  • 9 months later...

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

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

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

×
×
  • Create New...