VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: loralon on February 20, 2017, 14:15:04 PM

Title: Conditional Category View
Post by: loralon on February 20, 2017, 14:15:04 PM
Hello everyone,
I make you a question that seems trivial, but which have not been answered.
I would like to create a view for products using conditional selection. I mean:
Category A -100 products
Category B - 100 products
Category C - 40 products (20 of category A + 20 of category B)
Now I would like to create a view that displays only the products in Category A that are also part of the category C. Is it possible that there isn't a way to do it? I can't find an extensions to do it.
Tips?
Thank you
Tommaso
Title: Re: CONDITIONAL CATEGORY VIEW
Post by: VMTemplates.net on February 20, 2017, 14:17:11 PM
Hi,

simply create category C in VirtueMart categories and assign 20 products from category A and Category B. You can add one or more categories for one product.
At the end simply add a link to category C in you joomla menus

Thanks,
Jason
Title: Re: CONDITIONAL CATEGORY VIEW
Post by: loralon on February 20, 2017, 14:31:41 PM
Thank you for the reply
but in this case the view will have all products of the category C. I would like to display only the ones in C that are also in A. A practical example:

A - shoes
B - clothes
C - products on sale

I would like to display a view with only the shoes on sale.
Title: Re: Conditional Category View
Post by: balai on February 21, 2017, 10:03:18 AM
I suggest using filters for that and not the categories.
Using categories for every kind of attribute is not the best neither for the admin nor for the users

If you are looking for a filtering solution, check that:
https://breakdesigns.net/extensions/custom-filters