How to render products from subcategory

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Is there any easy way from code perspective to render product on a category, which belongs su subcategory.

|_MainCat
|    |_SubCat-1
|    |_SubCat-2
|
|_Product-of-SubCat-1
|_Product-of-SubCat-1
|_Product-of-SubCat-2

or at least to get list of categories that product belongs to, that could work as well.

Thanks in advance!
6 years ago
I think you need to check setting:

Admin panel > settings > catalog settings > find Catalog pages section and checked following setting.    

Include products from subcategories
6 years ago
Divyang wrote:
I think you need to check setting:

Admin panel > settings > catalog settings > find Catalog pages section and checked following setting.    

Include products from subcategories


Thanks, but this will not solve my problem, as I mentioned I need this within the code, because I want to use only for one particular category template.
6 years ago
Appreciate any help :) please someone

Many thanks!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.