Products - Hierarchy List to produce Nested Menu

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
JimboDavies
Forum Members
Forum Members
Posts: 130
Joined: Fri Feb 25, 2011 3:58 pm

Products - Hierarchy List to produce Nested Menu

Post 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.
Attachments
menu_representation.jpg
uniqu3

Re: Products - Hierarchy List to produce Nested Menu

Post 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.
JimboDavies
Forum Members
Forum Members
Posts: 130
Joined: Fri Feb 25, 2011 3:58 pm

Re: Products - Hierarchy List to produce Nested Menu

Post by JimboDavies »

uniqu3, you are, as ever, extremely helpful. Thanks for that link, I will explore and see how I get on!

Jimbo
inyerface
Forum Members
Forum Members
Posts: 191
Joined: Mon Nov 26, 2007 4:46 pm

Re: Products - Hierarchy List to produce Nested Menu

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Products - Hierarchy List to produce Nested Menu

Post 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.
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.
Post Reply

Return to “Modules/Add-Ons”