VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: autodafe on August 30, 2016, 10:15:33 AM

Title: Child Product with different options than parent?
Post by: autodafe on August 30, 2016, 10:15:33 AM
VM 3.0.16
Joomla 2.5.19
php5.4

I have a product which is an Exam Voucher

customers have two options:
1) just purchase the voucher
2) purchase the voucher and give us additional instructions like is ID, Date for the Exam and site of the Exam.

I have tried with multivariants with no luck

product 1 should have no option, prodict 2 should have 3 options.....but they need to be selected upon a choice (dropdown) from a single parent product...
is this possible without having 2 separate products in our catalog?
Title: Re: Child Product with different options than parent?
Post by: GJC Web Design on August 30, 2016, 12:00:08 PM
QuoteChild Product with different options than parent?

but child products ARE different products that have a relationship to a parent product

prod 1 & 2 should be children of a non orderable parent
Title: Re: Child Product with different options than parent?
Post by: autodafe on August 30, 2016, 12:29:14 PM
So I should use simple generic variants instedad of multi-variants?

I just want one single product with different selectable options, not 2 different products
Title: Re: Child Product with different options than parent?
Post by: GJC Web Design on August 30, 2016, 14:21:13 PM
QuoteI just want one single product with different selectable options, not 2 different products

how would that work?

you want -- if the options choice is chosen - to show a product with options...

other wise I assume u will have to code something that shows the options if the "option choice" is chosen and hide them if not

afaik there aren't linked options
Title: Re: Child Product with different options than parent?
Post by: autodafe on August 30, 2016, 16:55:44 PM
I managed to get it working like follows:

I created  a Parent product with a Multivariant with only the first Option ("Only Exam" / "Exam + Registration")
then created 2 child products with the variant.
The first one has only the multivariant set to "Only Exam", the second one has "Exam + Registration" and additional input boxes for ID, Date and Location...
my catalog show only one product and the multivariant selects the child products