Opens in a new tab

Bricks – Attributes and variations

Attributes are product properties (e.g. flavour, size, colour), and variations are the individual versions of a variable product, each with its own price, stock and SKU. With them, customers choose, say, a flavour on a single product page, and the store keeps separate stock for each choice. This guide explains how to create attributes, add them to a product, create variations and set prices and stock. The screenshots are from the Peak store.

In short: attributes and variations in 6 steps

  1. Under Products → Attributes create an attribute (e.g. Flavour) and add terms to it (Chocolate, Vanilla).
  2. For the product, set the Product type to Variable product.
  3. On the Attributes tab, add the attribute and tick Used for variations.
  4. On the Variations tab, click Generate variations.
  5. For each variation, enter the price, SKU and stock.
  6. Click Save changes and then Update.

1. Attribute or variation?

  • An attribute describes the product. It can be purely informative (e.g. Purpose: recovery) or let customers make a choice.
  • A variation is the product with a specific choice of attributes (e.g. Flavour: chocolate) and has its own price, stock, SKU and image.
  • A variable product needs at least one attribute marked Used for variations.

2. Global attributes (Products → Attributes)

You create a global attribute once and use it on several products. In the left menu, choose Products → Attributes. On the left is the form for a new attribute (name, slug and settings), on the right the list of existing attributes with the Terms.

  1. Enter the name (as customers see it, e.g. Flavour); the slug is created automatically.
  2. Usually leave the settings (enable archives, sort order) at their defaults.
  3. Click Add attribute.
  4. In the list, next to the attribute, click Configure terms and add values (Chocolate, Vanilla, Strawberry). Each value is one term.

Keep an attribute with many terms (e.g. flavours) in one place, so you don’t end up with duplicate values (Chocolate and Chocolatey).

The Attributes page: form for a new attribute on the left and the list of attributes with terms on the right
Attributes: (1) attribute name, (2) settings, (3) Add attribute button, (4) list of attributes, (5) terms (values).

3. Attributes on a product

When editing a product, open the Product data box and the Attributes:

  • Choose an existing attribute (Add existing) or create a Custom product attribute just for this product.
  • For values, choose terms (or, for a custom attribute, type them separated by a | bar).
  • Visible on the product page – the attribute is shown in the additional information tab.
  • Used for variations – tick this for the attribute customers choose (e.g. flavour). Without it, no variations are created.
  • Click Save attributes.
The Attributes tab in product data with adding an attribute, values, visibility and use for variations
Attributes tab: (1) adding an attribute, (2) name and values, (3) used for variations, (4) save attributes.

4. Creating variations

The product must be a Variable product. On the Variations:

  1. Click Generate variations (in the drop-down, Create variations from all attributes). WooCommerce creates one variation for each value.
  2. Open a variation by clicking its row. Each has an attribute value, SKU, image, regular and sale price, stock status and shipping data (weight, dimensions, class).
  3. If checkboxes are enabled for the product, you can turn on Manage stock separately for each variation.
  4. Click Save changes and then Update.
The Variations tab in product data: attribute value, SKU, image, price, stock and attribute usage
Variation: (1) generate variations, (2) attribute value, (3) SKU, (4) image, (5) price, (6) stock, (7) save.

5. Price and stock for variations

  • The product price on the page is the price of the selected variation. So for a variable product, you don’t enter the price on the General tab, but for each variation.
  • For the same price across all variations, use Bulk actions on the Variations tab, e.g. Set regular prices.
  • Default form values set which variation is selected when the page opens.
  • A variation without a price isn’t shown to customers; before publishing, check that all variations have a price.

6. Common mistakes

  • Forgetting to tick Used for variations – variations can’t be created.
  • Adding new terms to an attribute without regenerating variations – add them manually or click Generate variations.
  • With custom attributes, every product has its own list; with global ones, you edit them in one place.
  • Forgetting Save changes on variations before clicking Update.
  • Deleting a variation (Remove) is permanent; first check whether it’s used in any orders.

FAQ

An attribute is a product property (e.g. flavour), and a variation is a specific version of the product with a chosen attribute, which has its own price, SKU and stock.

For a variable product, the price is set on each variation, on the Variations tab, not on the General tab.

Under Products → Attributes, add a new term, then select it on the product's Attributes tab and save. Then click Generate variations so it gets its own variation.

Check that the product type is Variable product and that Used for variations is ticked for the attribute. You need to save the attributes first.

Yes, click the image on the variation and choose a new one. When customers choose the variation, they see its image.

An attribute you create for one product only, which isn't in the list under Products → Attributes. Only use it in exceptional cases; use global attributes for flavours and sizes.

Need help?

Didn't find an answer?

Email or call us and we'll be happy to help.