Page 1 of 1

Products - Hierarchy List to produce Nested Menu

Posted: Tue Sep 27, 2011 9:03 am
by JimboDavies
I am trying to produce a menu based on a Products hierarchy, and am getting stuck.

All of my products are set to display on a page I've called "Products", and it's just the template for that I'm modifying.

What I want, is for the code to find the parent level category of the product currently being viewed, and produce a nested ul list of all the other categories, and products, with the same parent.

I can get a straight list of all the products in the same hierarchy level, but what I am struggling to achieve is the nested list with the 'sub categories'.

Attached is a graphical representation of what I'm after - any help gratefully appreciated. The site is at www.stormforce.biz.

Re: Products - Hierarchy List to produce Nested Menu

Posted: Tue Sep 27, 2011 10:59 am
by uniqu3
Look here, this could help you http://blog.arvixe.com/template-tricks- ... ts-module/

But sample template does have an unrodered list with children.

Re: Products - Hierarchy List to produce Nested Menu

Posted: Wed Sep 28, 2011 4:21 pm
by JimboDavies
uniqu3, you are, as ever, extremely helpful. Thanks for that link, I will explore and see how I get on!

Jimbo

Re: Products - Hierarchy List to produce Nested Menu

Posted: Sun Sep 29, 2013 11:15 pm
by inyerface
uniqu3 wrote:Look here, this could help you http://blog.arvixe.com/template-tricks- ... ts-module/

But sample template does have an unrodered list with children.
This doesn't seems to work with Products 2.15.1? Has anything changed? Would you mind sharing your templates? Summary, Details and Hierarchy?

Re: Products - Hierarchy List to produce Nested Menu

Posted: Mon Sep 30, 2013 1:26 am
by calguy1000
Goran's tutorial still works with the currently released 2.19.7.
However, his samples were related to smarty2, and there are even simpler ways now.