Creating an attribute and its options

Last updated on
16 March 2018
  1. Browse to Administration » Store » Products » Attributes (admin/store/products/attributes).
  2. Click on the Add an attribute tab or link and fill in the form. In the case of the Ubercart Beanie, the name and label were entered as Size and the order was left at 0. Order determines the sorting of attributes on a product. Remember this is a default and may be overridden on each product if need be.
  3. Submit the form to create the new attribute.
  4. In the table of attributes, find the row for your new attribute and click on its operations link titled options.
  5. This page shows a table of existing attributes and includes a tab and link labeled Add an option that you use to access the form you use to add options to this attribute. Each option you add will appear on the product's add to cart form for this attribute. You don't have to enable every option for each product, but you must predefine any option here that you want to make available on your products. Here again you're setting up default values. The values for cost, price, and weight are flat value adjustments. These can be positive or negative numbers. In the case of the Ubercart Beanie, two options titled Small and Medium were added with empty values in the price and weight adjustments. A Large option was added with a $1.00 price increase associated by default with that option. Since the ordering of the options defaults to alphabetical order when all options have the same order value, the options were given order values of 1, 2, and 3 for Small, Medium, and Large respectively.

Repeat this process every time you want to make a new attribute available for products. You can also come back at any time and create new options associated with existing attributes. For example, the Livetest could decide in the future to sell Extra Large beanies using this Size attribute. This option can be added later and then enabled on a per-product basis for the types of beanies to be offered in Extra Large versions. To assign attribute and options to products, use the following steps.

Help improve this page

Page status: No known problems

You can: