- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
PrestaShop. How to comment out the code in .tpl files
April 5, 2016
This tutorial will show you how to comment out the code in .tpl files in PrestaShop.
PrestaShop. How to comment out the code in .tpl filesIf you need to disable some action set in a .tpl file, you can comment it out. Commenting out is achieved by wrapping the code into {* *} .
For example, if you want to remove the heading Subcategories on the category page, please perform the following changes:
Please make a backup of themes/themeXXX/category.tpl file. Then, open it for editing.
Locate {l s=’Subcategories’} and wrap it into {* *} so it looks like this:
{*{l s='Subcategories'}*}
-
Save changes. /p>
Clear Smarty cache and refresh your site to see changes.
Feel free to check the detailed video tutorial below:
PrestaShop. How to comment out the code in .tpl files