dformica Posted November 16, 2015 Share Posted November 16, 2015 How to list all subcategories for each parent category on the category pages? Basically just like the they are listed in the top menu. Link to comment Share on other sites More sharing options...
Tung at RockPOS.com Posted November 17, 2015 Share Posted November 17, 2015 I will have to write custom codes. Anyway, how would you want to list them down? If your category tree is bundled with many levels (2, 3,4,...n level), will you display all of them or just sub-categories of sub-categories of the current category? Do you want to just list down all of them? Or group by their parent categories? Link to comment Share on other sites More sharing options...
dformica Posted November 19, 2015 Author Share Posted November 19, 2015 I would like to list the subcategories just like they are listed when you hover on the top menu with their 2nd level subcategories under. I already removed the thumbnails from the category page, now I just need to list the 2nd level subcategories under each as in the attached image. Link to comment Share on other sites More sharing options...
Tung at RockPOS.com Posted November 20, 2015 Share Posted November 20, 2015 Ok. I think it's quite simple. Just do the same like what PrestaShop does in module blockcategories. Basically, get all sub-categories (up to 2nd sub level), organize them in a tree. Then in your template, render the view. Both of them can be copied from blockcategories. Link to comment Share on other sites More sharing options...
Recommended Posts