News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

custom fields depending on the value

Started by johfrey1, September 23, 2013, 19:24:58 PM

Previous topic - Next topic

johfrey1

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

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jhoompk

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.

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

jhoompk

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 ?



Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart