VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: Vsevlod on February 22, 2023, 10:40:52 AM

Title: Virtuemart product module - multi-category selection not working
Post by: Vsevlod on February 22, 2023, 10:40:52 AM
Hi!

I tried to select several categories in product module but it doesn't work.

Joomla! 4.2.8 and Virtuemart 4.0.12 10777, PHP 8.0.27.
Title: Re: Virtuemart product module - multi-category selection not working
Post by: jenkinhill on February 22, 2023, 11:22:42 AM
Multi-cat selection works OK with VM 4.0.12 10777 on J 3.10.11 so it is yet another J4 problem. Thanks for letting us know.

As a workaround you can make multiple copies of the module, each for different cats.
Title: Re: Virtuemart product module - multi-category selection not working
Post by: Vsevlod on February 22, 2023, 11:41:33 AM
Joomla! 3.10.11 and Virtuemart 4.0.6 10690, PHP 7.4.33 - it doesn't work either. After saving, only the last category is in the field.
Title: Re: Virtuemart product module - multi-category selection not working
Post by: jenkinhill on February 22, 2023, 15:13:25 PM
Just checked, products from multiple categories are being shown as random products on my J3 test set as I have the category filter turned off - I forgot about this switch.  If turned on then as it says in the tooltip, only products from "this category" are shown. ie a single category. I suspect ithas always been this way.

On client sites I only ever used the module in random product mode.
Title: Re: Virtuemart product module - multi-category selection not working
Post by: Vsevlod on February 22, 2023, 19:01:44 PM
It's a bit strange. The XML file uses the type="vmcategories" field, although type="vmcategory" would be more logical and less misleading. :-\