Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Ubercart uses attributes for specifying variations for a product. Attributes can specify color or size of a article of clothing or they can specify different sizes of a product, each with their own price and SKU.
Often the possible selection of choices for one attribute may depend on the choice of another attribute. For example, the available color of a shirt may depend on the size selected. The uc_dropdown_attributes module allows an attribute to be displayed depending upon the choice selected for another attribute. So the medium colors attribute will be displayed when the medium size is chosen. If the small size is chosen then the small colors attribute will be displayed. Each colors attribute contains only the colors that are available in that size.
The uc_dropdown_attributes module presents an administrative interface for defining the relationships between attributes. Attributes can be defined to be displayed only when specific values are selected for another attribute.
Attribute dependencies can be defined for product classes (currently only for Drupal 7) or for individual products. Definitions of dependencies for individual products takes precedence over those defined for a product class.
Select boxes, radio buttons and checkboxes are supported. Text fields are also partially supported as dependent attributes.