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.
Products - Hierarchy List to produce Nested Menu
-
JimboDavies
- Forum Members

- Posts: 130
- Joined: Fri Feb 25, 2011 3:58 pm
-
uniqu3
Re: Products - Hierarchy List to produce Nested Menu
Look here, this could help you http://blog.arvixe.com/template-tricks- ... ts-module/
But sample template does have an unrodered list with children.
But sample template does have an unrodered list with children.
-
JimboDavies
- Forum Members

- Posts: 130
- Joined: Fri Feb 25, 2011 3:58 pm
Re: Products - Hierarchy List to produce Nested Menu
uniqu3, you are, as ever, extremely helpful. Thanks for that link, I will explore and see how I get on!
Jimbo
Jimbo
Re: Products - Hierarchy List to produce Nested Menu
This doesn't seems to work with Products 2.15.1? Has anything changed? Would you mind sharing your templates? Summary, Details and Hierarchy?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.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Products - Hierarchy List to produce Nested Menu
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.
However, his samples were related to smarty2, and there are even simpler ways now.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
