Categories

Featured templates

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

Alice Weasley April 5, 2016
Rating: 5.0. From 2 votes.
Please wait...

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
Prestashop Premium Themes
This entry was posted in PrestaShop Tutorials and tagged .tpl, comment, Prestashop. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Live Chat
We help you to choose the right product.