VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: conankun on June 06, 2013, 12:53:14 PM

Title: Help Show Subcategories together with Parent Category in Virtuemart Front Page
Post by: conankun on June 06, 2013, 12:53:14 PM
Hi, hope someone can help me with this, been searching the net to no avail.

Here is my site: www.primanada.com

I have categories like such:
- Musical Instruments
- - Bass
- - Drum
- - Guitar
- - Keyboard
- - so on..
- Microphones
- - Bodypack Mic
- - Clip-On Mic
- - Headset Mic
- - so on..

Now when I go to products page www.primanada.com/products, it shows just Musical Instruments, Microphone, ... which is the default virtuemart layout for categories. But what I would like to achieve is for it to show All of the parent and sub categories. So it suppose to show:
- Bodypack Microphone
- Drum
- Musical Instruments
- Microphone
... so on

Is there a way to do this?

The closes solution (that I think is doing what I'm trying to achieve) I found on the net is http://forum.virtuemart.net/index.php?topic=57070.0 but this code is way too old and no longer relevant for the current version of virtuemart and joomla.

Few info that might help:
- I'm using Joomla 2.5.9
- I'm using Virtuemart 2.0.20b
- In Main Menu, I set "Products" to be "Virtuemart > Front Page"


Cheers,
Chris
Title: Re: Help Show Subcategories together with Parent Category in Virtuemart Front Page
Post by: VictorTpo on June 11, 2013, 11:03:57 AM
Hello,

I have the same problem, so if anybody find a solution . . . plz share it :D
Title: Re: Help Show Subcategories together with Parent Category in Virtuemart Front Page
Post by: TRIPLEdm on June 11, 2013, 15:55:46 PM
I am having the exact same problem. I had the solution for VM 1.0, but for 2.0 I have absolutely no clue and cannot find the answer on the forums either. Any help from the VM team will be appreciated!
Title: Re: Help Show Subcategories together with Parent Category in Virtuemart Front Page
Post by: Milbo on June 12, 2013, 13:15:26 PM
Quote from: conankun on June 06, 2013, 12:53:14 PM

- In Main Menu, I set "Products" to be "Virtuemart > Front Page"


I think you just need to choose here the category view, which shows also the products or the categories view, which does not show products. Maybe the easiest is to use category view, to copy the layout in your override folder, rename it, adjust it and then use for your category the other layout.
Title: Re: Help Show Subcategories together with Parent Category in Virtuemart Front Page
Post by: anandmahey on June 17, 2013, 08:33:23 AM
Hello, i'm not sure if this might help, but maybe try changing the "Menu Item Type" to "Category Layout" instead of "Virtuemart Categories Layout". Do remember to "Select a Category" as well.

I had a similar problem, all my sub categories didn't work and we displaying other products for some reason. Nothing else was changed, so i think it may be a bug with the update.

Hope this helps. I'm a newbie  :)
Title: Re: Help Show Subcategories together with Parent Category in Virtuemart Front Page
Post by: sumanguj on March 21, 2014, 07:05:47 AM
So you got it figured out. how did you do it?!