VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: behemoth on May 23, 2019, 13:36:03 PM

Title: Multivariant dropdown fields display
Post by: behemoth on May 23, 2019, 13:36:03 PM
Joomla! 3.9.6
VirtueMart 3.4.2

I have a parent product with two options that redirect to child products. It all seems to work properly, except the second dropdown isn't populated until the first is selected. Hopefully the attached image will clarify things.

Title: Re: Multivariant dropdown fields display
Post by: StefanSTS on May 23, 2019, 14:02:20 PM
You can choose, that the parent is visible and got the first option chosen, or all options, so the customer can see e.g. the most used case.

The dependency goes from the first to the last field, so it's on you to make a logical structure your customers can follow.

One way would be to display the second field only if the first is chosen. But there are a lot of ways so you have to find the best for your specific task.

Regards
Stefan
Title: Re: Multivariant dropdown fields display
Post by: behemoth on May 23, 2019, 14:09:26 PM
Hi Stefan,

Thanks for your response.

I'm not sure I fully understand. Are you saying that I'm free to reorder the fields but there will always be a requirement to select the first one before the next shows all the options?

If I've misunderstood, can you point me to the right bit of configuration to be able to do what I want?

Cheers,
Ian
Title: Re: Multivariant dropdown fields display
Post by: StefanSTS on May 23, 2019, 14:30:20 PM
In your tab custom fields you can change the order of the fields.

The child products that you generate in that view will always have the dependency you said.
You have to choose an option to see the next.

That is why some choose to have the parent shown there in the first row to have a possible combination of the available field values.
If you have 2 field with both having 4 options. And you have the parent and seven child products, you can display all combinations, because you have 2 x 4 = 8 products.

So choosing the parent to be a valid combination, you allways have all fields filled.

If there are combinations of the fields that are not used, you should sort the fields by the most important feature that people would choose first to the least important.

Title: Re: Multivariant dropdown fields display
Post by: behemoth on May 23, 2019, 15:00:31 PM
I see.

It's not what I want but thank you for explaining. I want the parent to be a generic product and not actually purchaseable. It sounds like I can't quite do what I was hoping for. Oh well...