News:

Support the VirtueMart project and become a member

Main Menu

Show all products or products from multiple categories

Started by ExSpirit, April 11, 2015, 13:09:54 PM

Previous topic - Next topic

ExSpirit

Is there any way in VM3 to display all products from all categories or from two (or more) different categories? When I now add Menu Item I can only select one category, is there any way to select multiple categories?

Another question is since I can create custom fields is there any way to show only products with some specific custom field?

Milbo

Use category=0. Multiple categories? Interesting idea, indeed.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

ExSpirit

I'm not sure what you mean by category=0. At Menu Manager (Menu Item) I selected Category Layout as Menu Item Type and then I can only select one category under Select a Category field.

If I write some sample, let's say I have those categories:
- Main cat 1
-- Sub cat 1
-- Sub cat 2

- Main cat 2
-- Sub cat 1
-- Sub cat 2
-- Sub cat 3
-- Sub cat 4

- Main cat 3
- Main cat 4

-- Sub cat 1

Now I would like to add a button to my menu where I would show all Sub cat 1 products (from all Main categories - Main cat 1,2,4). I can't find a way to do that.


ExSpirit

So this is not possible by default in VM, I have to use some 3rd party plugin? I have already noticed this extensions and would probably work using this, but I wanted to know if showing more than one category of products is possible from VM core.

jenkinhill

As Milbo said Use category=0 to show all products
eg yourdomain /index.php/vm/view/category/virtuemart_category_id/0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

ExSpirit

#6
Quote from: balai on April 13, 2015, 15:51:07 PM
Try Custom Filters
http://breakdesigns.net/extensions/custom-filters
Today I tried this extension but the problem is that there's no option to select multiple categories - only if I would buy it and use custom fields...

Quote from: jenkinhill on April 14, 2015, 00:11:05 AM
As Milbo said Use category=0 to show all products
eg yourdomain /index.php/vm/view/category/virtuemart_category_id/0
That doesn't work (I even tried it on demo page), it just takes me back to first page.

Is there any extension which would allow me to select multiple categories in menu item?