VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: johfrey1 on September 23, 2013, 19:24:58 PM

Title: custom fields depending on the value
Post by: johfrey1 on September 23, 2013, 19:24:58 PM
I'm entering virtuemart products, but I have a problem or requirement, custom fields, I have several options, depending on the value to choose enable to select the second field depending on the first.
example: a person selects a variable, select the variable to another variable is activated.
1 changeable cake or ponque
2 varible, size depending on the first one selected.
thanks
Title: Re: custom fields depending on the value
Post by: jenkinhill on September 23, 2013, 23:01:03 PM
http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: custom fields depending on the value
Post by: jhoompk on October 04, 2013, 11:48:19 AM
Hi,

I m using Joomla 2.5.14 and VM 2.0.24 with PHP Version 5.3.26.

I want to choose product variant based on selected value of existing variant, for example:

I have variant of size with options: small, Medium and Large
I have another variant with color: Pink, Red, Orchid

Now what my requirement is when i select Size small then it only has Pink and Red items available and for Large size only One color item is available.

How can i make variants based on other variant's value?

your help will greatly be appreciated.
Title: Re: custom fields depending on the value
Post by: Maxim Pishnyak on October 06, 2013, 12:48:23 PM
Stockable plugin?
Title: Re: custom fields depending on the value
Post by: jhoompk on October 07, 2013, 11:25:16 AM
Hello Maxim Pishnyak, Thank you for the reply and suggesting the solution, i tried it and seems its the one i am looking for but i am having a problem with it.
I created a field using Stockable plugin and here is the flow:

Field name "CMS variants"
Color: Red, Pink, Orchid
Size: Medium, Large, XL

i created parent and mentioned just "Generic child variant" to select child as an option in it, then i created child of the same parent and added this Stockable plugin field "CMS variants" in it but when i click on Save button then all values disappear from child leaving only the custom fields which parent has, am i doing something wrong ?

Title: Re: custom fields depending on the value
Post by: jhoompk on October 11, 2013, 11:07:59 AM
Quote from: Maxim Pishnyak on October 06, 2013, 12:48:23 PM
Stockable plugin?

I got it worked, thnx Maxim Pishnyak
Title: Re: custom fields depending on the value
Post by: Maxim Pishnyak on October 11, 2013, 13:07:15 PM
You're welcome.