VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: bryanearl on May 10, 2018, 17:05:28 PM

Title: Adding custom field to a product that already has multivariants and children
Post by: bryanearl on May 10, 2018, 17:05:28 PM
I have created a product that has 10 children using "generic" type. Then, I have 120 children under each of those using "multivariants" type. Everything works as planned.

My question is... I want to now add an option that will appear on that product, regardless of what child the user is currently viewing for something like "add a set of xxxxx for only $1.99 extra!".

Can I do that without creating more child variants? Is there a type of custom field I should use that allows me to set a price increase and can be visible no matter the child?
Title: Re: Adding custom field to a product that already has multivariants and children
Post by: Studio 42 on May 10, 2018, 18:28:16 PM
You have to set the customfield in the parent or in the 1st child level, it depend your need, the field should be inherited in all children.
Vm only can render ratio button or list, but you can use value Yes/No for eg. or you can modify the render with CSS or javascript if you have some knwledge
Title: Re: Adding custom field to a product that already has multivariants and children
Post by: bryanearl on May 10, 2018, 20:02:23 PM
Perfect, thank you! I was able to set it up using a custom field as type "string" with options and price points.