VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: ereallstaff on July 03, 2013, 12:47:53 PM

Title: Mutli child attribute with more params value
Post by: ereallstaff on July 03, 2013, 12:47:53 PM
Hello we need to create a product like following:

T-shirt

-Color: Red
----- Long Sleeves
--------- --------- Size M
--------- --------- Size L
----- Short Sleeves
--------- --------- Size M
--------- --------- Size L


-Color: yellow
----- Long Sleeves
--------- --------- Size M
--------- --------- Size L
----- Short Sleeves
--------- --------- Size M
--------- --------- Size L

I have tried creating a multi level child product, but didn't worked?

Thanks
Title: Re: Mutli child attribute with more params value
Post by: balai on July 03, 2013, 17:04:25 PM
If you don't want to have stock control i think its easy.

Just create the following custom fields:
Color
Sleeves type
Size
Title: Re: Mutli child attribute with more params value
Post by: ereallstaff on July 03, 2013, 18:11:25 PM
The problem is that I need both stock control and product child behaviour changing description and pictures.

I was able in mean time to set the stock control with stockable variant, and I took the behaviour as expected. But I wish also to refresh the page, calling the child product displaying  . I have seen in final html, there is no referral by vm code to the id of child product calling, so I need to code this out?

I have tried with child products, one for each level ( one child for color, one child for each color for sleeves and then size ), the page updates, but in childs no custom fields is found

Thanks
Title: Re: Mutli child attribute with more params value
Post by: balai on July 04, 2013, 10:20:26 AM
Actually i think that what you are trying to do is too hard to be done with VM.
According to your scheme you need at least 4 product variations per each color and at least 3 levels drilling to select the correct product.

Possibly you can do that just creating each child product as unique variation:
E.g.
Child 1 - Red , Long Sleeves, M
Child 2 - Red , Long Sleeves, L
Child 3 - Red , Short Sleeves, M
....