WooCommerce Product Variations: What They Are and How to Use Them

If you sell products that come in different sizes, colors, materials, or any other options, WooCommerce product variations are how you handle that cleanly. Instead of creating a separate product listing for every combination — a red shirt in small, a red shirt in medium, a blue shirt in small, and so on — variations let you manage all of that under a single product with its own pricing, stock levels, and images per option.

Quick Setup Summary

In Products, edit the item and choose Variable product under Product data. Add and save the attributes customers will select, then create the combinations you sell in Variations. Enable each option, enter its regular price, and set how it tracks stock. Save the variations, update the product, and test the selectors and Add to Cart on the storefront.

The Difference Between Attributes and Variations

Attributes are the characteristics of a product — things like color, size, or material. Variations are the specific combinations of those attributes that you actually sell. A product might have a “Color” attribute with values Red, Blue, and Green, and a “Size” attribute with values Small, Medium, and Large. Each purchasable combination is a variation. You don’t have to offer every possible combination — if you only stock Blue in Large, that’s the only variation you need to create.

Setting Up a Variable Product in WooCommerce

Suppose you sell a T-shirt in Small and Medium, in Red and Blue, but don’t carry Blue in Small. Use one product listing with three variations. Open the T-shirt in Products and choose Variable product in the Product data dropdown.

Step 1: Add Your Attributes

In Attributes, add Size with the values Small and Medium, and Color with Red and Blue. You can reuse global attributes or create them for this product. For custom attributes, separate values with a vertical bar, such as Small | Medium. Check Used for variations for both attributes and select Save attributes.

Step 2: Create the Combinations You Sell

In Variations, use Add manually to create Small / Red, Medium / Red, and Medium / Blue. Leave out Small / Blue. If you sell every size and color combination, Generate variations can create them in one step.

Step 3: Configure Each Variation

Open each variation, check that it’s enabled, and enter a Regular price. For example, set Small / Red to $24 and both Medium options to $26. To track each combination independently, enable stock management on each variation and enter its quantity. Add a variation SKU or image where it helps identify the option. Select Save changes, then Update or Publish the product.

Assign the Medium / Blue photo. In Product data → Variations, expand Medium / Blue. Click its image placeholder and select the blue shirt photo from the Media Library. If you want that combination preselected, choose Medium for Size and Blue for Color in Default Form Values at the top of the Variations tab. Leave both defaults unset if you want shoppers to choose both options. Save the changes and update the product.

Check the product on mobile. Open the product page on a phone in a private browser tab. If you set defaults, check that Medium / Blue is already selected. Otherwise, select it yourself. Confirm that the blue photo appears, the price is $26, and the availability or Add to Cart button reflects that variation’s stock settings. Switch to Small / Red and check that the price changes to $24 and that the image and availability match what you configured for that option.

Step 4: Test the Storefront

Open the product as a shopper. Select Medium / Blue and check its price, stock status, and any variation image you added. Add it to the cart and confirm the line item shows the right size and color. Then try Small / Blue and confirm it cannot be added.

Common Use Cases

  • Apparel: Size and color combinations with per-variation stock and images
  • Food and beverage: Pack size or weight options with different pricing
  • Digital products: Different license tiers or file format options
  • Personalized products: Variations based on material, finish, or personalization options

How to Manage Variation Stock

Use product-level stock for variations that draw from the same inventory pool. Variations with their own stock management enabled track their own quantities. When product-level stock is enabled, variations without independent stock management draw from the shared quantity. You can mix both methods on the same product. For example, two finish options can share the stock of one unfinished item while a prepackaged option tracks its own stock.

Use separate counts for finished items. Say your shelf has one Small / Red shirt and four Medium / Red shirts. Enable stock management on each variation and enter its own quantity. When the last Small / Red sells, its count reaches zero and customers can no longer order it if backorders are disabled. Medium / Red still has four available.

Use a shared count when options consume the same units. If you sell the same blank mug with a choice of print designs and apply the design after purchase, track the blanks on the parent product. Leave stock management off for the individual design variations so each sale draws from that shared quantity.

If you also sell these SKUs in-store or through a marketplace, see the WooCommerce Inventory Management guide for an example of how sales and returns update stock across channels.

Troubleshooting Missing or Unavailable Variations

  • The size or color selector is missing. Confirm the product type is Variable product, both attributes are marked Used for variations, and the attributes were saved before creating the variations.
  • An option appears but can’t be purchased. Check that the exact combination exists, the variation is enabled, it has a regular price, and it’s in stock or allows backorders. Save the variation and update the product.
  • A sold-out choice still appears. Check the catalog’s out-of-stock setting and how the variation tracks stock. WooCommerce can hide sold-out variations from selectors when stock is managed independently for each variation and backorders are off. Shared stock affects all variations that draw from it.
  • The selectors behave differently on a large product. WooCommerce changes its default dropdown behavior for products with more than 30 variations. Test valid and invalid combinations on the published page.

For more detail, see the WooCommerce guide to variable products.

When Variations Aren’t the Right Tool

Variations work well for options that don’t fundamentally change what the product is. When options are complex enough that each deserves its own product page, its own SEO treatment, or a completely different set of images and descriptions, separate products are often cleaner. For highly configurable products, WooCommerce product add-ons or a custom configurator may be a better fit.

At Interactive Design Group, we think through these decisions as part of every WooCommerce store we build. If you’re building a new store or dealing with a catalog that’s become hard to manage, get in touch.