VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: hmmm on December 13, 2011, 10:08:11 AM

Title: Show sub sub-categories in menu
Post by: hmmm on December 13, 2011, 10:08:11 AM
Hi all,

I'm using the mod_virtuemart_category module to show all the categories as a menu on the site. This works fine, but i want to show the sub subcategories too. I've been fiddling with the module but unable to see how to do this.

For example, i want to get the following information:


Category 1
  - Sub 1
     - Sub Sub 1
     - Sub Sub 2
  - Sub 2
     - Sub Sub 1
     - Sub Sub 2
Category 2
  - Sub 1
     - Sub Sub 1
     - Sub Sub 2
  - Sub 2
     - Sub Sub 1
     - Sub Sub 2


I've been looking at the excisting module code (all.php) in modules/mod_virtuemart_category/tmpl and some debugging later (with some print_r's) I know the category has got an array childs. But the childs have childs too, but are missing this array.  How can I build a menu like this? Any tips and help would be very welcome.
Title: Re: Show sub sub-categories in menu
Post by: hmmm on December 20, 2011, 10:11:27 AM
Really nobody who can help me with this? :(
Title: Re: Show sub sub-categories in menu
Post by: rooney on January 02, 2012, 09:47:39 AM
I am also having the same problem and i have posted it too but no replies.
I think nobody is able to fix the problem..

J1.7.3 & VM2.
Title: Re: Show sub sub-categories in menu
Post by: PRO on January 02, 2012, 13:36:16 PM
the category module only supports 2 levels
Title: Re: Show sub sub-categories in menu
Post by: rooney on January 02, 2012, 13:47:44 PM
Then how to get more than 2 levels??
Title: Re: Show sub sub-categories in menu
Post by: PRO on January 02, 2012, 14:15:11 PM
create a joomla menu manually, or wait for someone to develop another category module.

Title: Re: Show sub sub-categories in menu
Post by: rooney on January 06, 2012, 05:52:20 AM
I have created new menu "VM categories" in joomla.
Now i have to create categories in this menu so what "Menu Item Type" should i give??
Title: Re: Show sub sub-categories in menu
Post by: patrickit on February 06, 2012, 05:42:20 AM
See solution here http://forum.virtuemart.net/index.php?topic=96816.msg321564#msg321564 (http://forum.virtuemart.net/index.php?topic=96816.msg321564#msg321564)