How To Display Subcategories On Category Page in Prestashop 1.7

How To Display Subcategories On Category Page in Prestashop 1.7

When you install Prestashop 1.7 Classic Theme you may see that there are no subcategory thumbnails on a category page. This tutorial will show you how to display subcategories with image thumbnails and enhance them with CSS style.

1-subcategory-thumbnail

Display subcategories on Category Page

First, we need to change category.tpl file. Here is a full path to this file: themes/classic/templates/catalog/listing/category.tpl

Open the file and paste the following code inside the block {block name=’product_list_header’}{/block}: 

The code of modified category.tpl file is attached below:

 Add some CSS style to our subcategory list

The result you can see here.



Post a new comment

top