[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

PrestaShop. How to comment out the code in .tpl files

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 files

If 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:

  1. Please make a backup of themes/themeXXX/category.tpl file. Then, open it for editing.

  2. Locate {l s=’Subcategories’} and wrap it into {* *} so it looks like this:

    {*{l s='Subcategories'}*}
  3. Save changes. /p>

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