VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kiasati on May 08, 2018, 16:47:55 PM

Title: showing some products from different categories in an menu item
Post by: kiasati on May 08, 2018, 16:47:55 PM
Hi.

as i described on the title, i want to show some products from different categoris in a menu item.

if there where a field for each product to input tags, this would be possible like joomla articles.

because there isn't any field to assign tags to products, i think using custom fields is the solution.
but how can i show products that have a certain custom field in a menu item?
Title: Re: showing some products from different categories in an menu item
Post by: jenkinhill on May 08, 2018, 19:02:06 PM
I'd make a new category and add your special items to that category as well the normal one. Then the menu link is set to your new category.
Title: Re: showing some products from different categories in an menu item
Post by: Studio 42 on May 08, 2018, 22:29:17 PM
YOu can use https://shop.st42.fr/en/products/shortcodes.htm to add tags
Documentation : https://shop.st42.fr/en/shorcodes-english-doc#searchable
Sample product http://pro.st42.fr/fr/android/acer-liquid-z6.html or most all from the demo shop.
Note that the only way to add menu link, is to use Menu URL(Virtuemart and Joomla don't permit to add link to customfields plugins)
If you need to use more advanced search, you have some component as
- custom filters  https://breakdesigns.net/extensions/joomla/custom-filters
- https://webkul.com/blog/joomla-virtuemart-product-custom-filter/
- https://cmsmart.net/virtuemart-extensions/custom-filter-for-virtuemart ....
But i think that all this solution are slower and need more work
My tags fillter only check if tag eixst, not the strings and dont need many work.
So choose the right solution, depending your needs.