WooCommerce
Home / WooCommerce / How to Set Up WooCommerce Product Variations (Step-by-Step)

How to Set Up WooCommerce Product Variations (Step-by-Step)

Selecting product variations on WooCommerce
Selecting product variations on WooCommerce

If you sell products that come in different sizes, colors, or flavors, WooCommerce product variations are exactly what you need. Instead of creating a separate product listing for each option, variations let you manage everything under one product — keeping your store clean, organized, and easier to manage.

In this guide, you will learn what product variations are, the difference between global and local attributes, how to set everything up step by step, and how to use bulk editing to save time when your store grows.

What Are WooCommerce Product Variations?

WooCommerce variable product preview showing color and size variation selectors on a product page
WooCommerce variable product preview showing color and size variation selectors on a product page

Before diving in, it helps to understand two key terms:

  • Product Attribute – A characteristic of your product, such as color, size, or material.
  • Product Variation – A specific option within an attribute. For example, the color attribute might have variations like Red, Blue, and Green.

A product that uses these attributes and variations is called a Variable Product in WooCommerce.

Example: Imagine you sell a t-shirt with two attributes — color (Red, Green) and size (S, M, L). WooCommerce will generate 6 possible combinations:

  1. Red / S
  2. Red / M
  3. Red / L
  4. Green / S
  5. Green / M
  6. Green / L

Each combination is a unique variation with its own price, stock, and SKU.

Read our complete guide to adding products in WooCommerce first — it covers every field from pricing and inventory to shipping and images, so you will have a solid foundation before working with variations.

Global Attributes vs Local Attributes — What Is the Difference?

Before you start adding attributes to a product, it is worth understanding the two ways WooCommerce lets you create them. Choosing the right approach from the beginning will save you a lot of repetitive work later.

Global Attributes

WooCommerce Products Attributes menu showing global attribute list in WordPress admin
WooCommerce Products Attributes menu showing global attribute list in WordPress admin

Global attributes are created once at the store level and can then be reused across as many products as you like.

Where to create them: Go to Products > Attributes in your WordPress admin.

From this screen you can add a new attribute — for example, Size — and define all its terms: XS, S, M, L, XL. Once saved, this attribute is available to every product in your store.

When to use global attributes:

  • When the same attribute applies to many products (e.g., Size and Color for an apparel store)
  • When you want consistent naming across your entire catalog
  • When you plan to use attributes as layered navigation filters on your shop page — only global attributes can be used in WooCommerce’s built-in filter widgets

How to assign a global attribute to a product:

  1. Open a product and scroll to the Product data section.
  2. Click the Attributes tab.
  3. Use the dropdown to select the global attribute you created (e.g., Size).
  4. Click Add.
  5. Select which values apply to this specific product.
  6. Check Used for variations and click Save attributes.

Local (Custom) Attributes

WooCommerce product editor showing custom product attribute option selected in the Attributes tab
WooCommerce product editor showing custom product attribute option selected in the Attributes tab

Local attributes — also called custom product attributes — exist only on the product where they are created. They are not saved to the store-wide attributes list and cannot be reused elsewhere.

Where to create them: Inside the product editor, on the Attributes tab, select Custom product attribute from the dropdown and click Add.

When to use local attributes:

  • For one-off or highly specific options that apply to a single product only (e.g., Bundle Contents or Personalization Text)
  • When you are testing a new attribute before deciding whether to make it global
  • For product-specific options that do not need to appear in shop filters

Quick Comparison

Global AttributeLocal Attribute
Created inProducts > AttributesInside the product editor
Reusable across productsYesNo
Works with shop filtersYesNo
Best forColor, Size, MaterialOne-off or unique options
Consistency across catalogHighLow

Recommendation: If you are building a store that sells multiple products with similar characteristics (e.g., clothing, electronics, accessories), create your core attributes — Color, Size, Material — as global attributes first. This keeps your catalog consistent and enables filter functionality out of the box.

How to Add Product Variations in WooCommerce

Step 1 — Set the Product Type to Variable Product

From your WordPress dashboard, go to Products > Add New.

Fill in the basic product details: title, description, category, featured image, and gallery images.

Then scroll down to the Product data section. Open the dropdown and select Variable product.

WooCommerce Product data dropdown with Variable product type selected
WooCommerce Product data dropdown with Variable product type selected

Note: When using variable products, you do not set a price or stock level at the top level. All pricing and inventory are managed at the variation level.

Step 2 — Add Product Attributes

Attributes define the choices a customer will see on your product page, such as size or color. You can use a global attribute you created earlier (recommended for common options like Size and Color) or create a custom product attribute that applies only to this product.

To add attributes:

  1. Click the Attributes tab in the Product data section.
  2. Use the dropdown to select an existing global attribute, or choose Custom product attribute for a one-off option. Then click Add.
  3. If using a custom attribute, enter a name (e.g., Color).
  4. Select or add the values you need (e.g., Red, Green, Blue).
  5. Check the Used for variations checkbox — this is required for the attribute to appear as a variation selector on the product page.
  6. Repeat for any additional attributes (e.g., Size).
  7. Click Save attributes when you are done.
Selecting a product attribute from the dropdown in WooCommerce Attributes tab
Selecting a product attribute from the dropdown in WooCommerce Attributes tab
Adding attribute values such as Red, Green, and Blue to a WooCommerce product attribute
Adding attribute values such as Red, Green, and Blue to a WooCommerce product attribute
Clicking Save attributes button in WooCommerce product editor with Used for variations checkbox enabled
Clicking Save attributes button in WooCommerce product editor with Used for variations checkbox enabled

Step 3 — Generate and Configure Variations

Once your attributes are saved, move to the Variations tab.

  1. From the dropdown, select Create variations from all attributes.
  2. Click Go. WooCommerce will automatically generate all possible combinations.
  3. Click on each variation to expand it.
  4. Fill in the required details for each variation.
WooCommerce Variations tab with Create variations from all attributes option selected
WooCommerce Variations tab with Create variations from all attributes option selected
List of auto-generated WooCommerce product variations from color and size attributes
List of auto-generated WooCommerce product variations from color and size attributes

Each variation can have its own:

FieldDescription
SKUA unique product code for this variation
Regular Price (required)The standard selling price
Sale Price (optional)A discounted price when running a promotion
Stock quantityHow many units are available
Allow backordersLet customers order even when out of stock
Low stock thresholdGet an email alert when stock drops below this number
Downloadable filesAttach files if selling a digital product
Download limitRestrict how many times a file can be downloaded
Download expirySet an expiry date on download access
EnabledToggle to show or hide a specific variation
VirtualCheck this for service or digital products with no shipping

You can also assign a unique image per variation. This is useful if you sell items in different colors — each variation can display the correct product photo when a customer selects an option.

  1. Click Save changes after entering all variation data.
Editing a single WooCommerce product variation with price, stock, and SKU fields expanded
Editing a single WooCommerce product variation with price, stock, and SKU fields expanded

Step 4 — Publish the Product

When all variation data has been filled in, click Publish (or Update if editing an existing product).

Your product will now display a set of dropdowns or selectors on the product page, letting customers choose exactly what they want before adding to cart.

WordPress product editor with Publish button highlighted for a WooCommerce variable product
WordPress product editor with Publish button highlighted for a WooCommerce variable product

How to Bulk Edit WooCommerce Product Variations

If your product has many variations that share the same price or stock level, entering data one by one would take forever. WooCommerce has a built-in bulk edit feature for variations to handle this quickly.

For example, if you sell 10 color variants of a hoodie and they all cost the same, you can set the price for all variations at once.

To bulk edit variations:

  1. On the Variations tab, use the dropdown at the top (below the variation list).
  2. Select the action you want to apply — such as Set regular prices or Toggle “Enabled”.
  3. Click Go.
  4. Enter the value when prompted.
  5. Click Save changes.

Bulk editing is a significant time-saver once your catalog starts growing.

WooCommerce bulk action dropdown on Variations tab for editing multiple variations at once
WooCommerce bulk action dropdown on Variations tab for editing multiple variations at once
Setting a regular price for all WooCommerce product variations using the bulk edit feature
Setting a regular price for all WooCommerce product variations using the bulk edit feature

Best Practices for WooCommerce Variable Products

A few tips to get the most out of product variations:

  • Always fill in a price for every variation. WooCommerce will not display a variation without a price, and customers will see an error when trying to select it.
  • Use unique SKUs per variation to simplify order fulfillment and inventory tracking.
  • Add variation-specific images wherever possible. Showing the exact item a customer is selecting increases purchase confidence.
  • Set a default variation under the Variations tab so the product page does not open empty. Pick your most popular option as the default.
  • Set up global attributes before adding products if your store sells many similar items. Creating Color and Size once at the store level (Products > Attributes) means you never have to type them again — just select them per product.

Frequently Asked Questions

A variable product lets you offer multiple versions of a single item—such as different sizes (S, M, L) or colors (Blue, Red)—each with its own price, SKU, and stock level.

You can manage this by navigating to Products > Attributes in your dashboard. Add a name for your attribute, then click Configure terms to list your specific choices, like Blue, Red, or Green.

Yes, absolutely. In the Variations tab, you can click on each specific combination to expand it and set a unique price. This is ideal if certain sizes or premium colors cost more to produce.

Adding a unique photo for every variation gives your customers confidence in what they are clicking on. This reduces confusion, leads to fewer customer questions, and directly increases your sales.

Wrapping Up

WooCommerce product variations give you a flexible, organized way to sell products with multiple options — without cluttering your store with dozens of separate listings. Understanding the difference between global and local attributes helps you build a catalog that is easy to manage and filter from the start.

The process comes down to four steps: set the product type to Variable product, add your attributes (global or local), generate and configure each variation, and publish.

Once you have the basics down, bulk editing makes it easy to scale as your product catalog grows.

This guide covers the essentials to get you started. For a more comprehensive reference, the WooCommerce official documentation on variable products goes deeper into advanced configuration options that become useful as your store scales.

Using Kubelio as your WooCommerce theme? Kubelio’s clean product page layout works seamlessly with variable products, displaying variation selectors clearly so customers can make their choice with confidence. Download Kubelio for free and see how it looks in action.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *