6 replies [Last post]
deepsnd's picture
Offline
Joined: 08/11/2009
Juice: 6
Was this information Helpful?

How to create dynamic or dependent attributes

for Example,
if i select VCD in first attribute
then in the next attribute it should list Volume 1, Volume 2, Volume 3, Volume 4, Volume 5

if suppose i select DVD in first attribut
then in the next attribute it should list Volume 1, Volume 2, Volume 3

That is the second attribute is dependent on first attribute

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: How to create Dynamic attributes or dependent attributes

This isn't possible right now. It might be you can create a second attribute that contains all the possible options for the various options in the first attribute and then you use Javascript to restrict which options are available.

deepsnd's picture
Offline
Joined: 08/11/2009
Juice: 6
Re: Re: How to create Dynamic attributes or dependent attributes

Thanks for your suggestion

Ok

Can we do like this. Volumes available for VCD and DVD are same. But the cost for Volumes are different. Please refer the below example

VCD
Volume 1 - $50
Volume 2 - $55
Volume 3 - $60
DVD
Volume 1 - $60
Volume 2 - $65
Volume 3 - $70

alanburke@drupal.org's picture
Offline
Joined: 08/05/2008
Juice: 82
It is possible.
AntoineSolutions's picture
Offline
Bug Finder
Joined: 05/02/2008
Juice: 166
Ubercart Dependent Attributes module available!!!

I have just released a Dependent Attributes module at http://drupal.org/project/uc_dependent_attributes. A development snapshot should be available within the next 24 hours. Grab the download when it's available and lets get this thing flushed out and ready for live sites.

Cheers,

Jon Antoine
Antoine Solutions
Free Open Source PHP IDE

johnlutz's picture
Offline
Joined: 01/04/2010
Juice: 25
Textbox attribute display dependent on other attribute option?

Love the dependent attributes module. Wondering if it can be used to display or not display a textbox attribute depending on what is selected in another select list attribute. Anyone have any ideas on how to do this?

robbie's picture
Offline
Joined: 03/17/2010
Juice: 107
Re: How to create Dynamic attributes or dependent attributes

For product class level attributes and options dependencies, this is the solution: http://www.ubercart.org/project/uc_cano