Skip to content

WooCommerce Variable Products: Set Up Options That Work

Create a variable product with usable attributes, variation prices, stock and buying options, then test the actual selection and checkout path.

Two shirt colours with distinct size and stock tags
Jack Lee
4 Min Read
Share
On This Page

A WooCommerce variable product groups purchasable options, such as a shirt's colour and size, under one product. Each variation can have its own price, stock, image and identifiers.

The setup is ready when a customer can select a real option, see its correct information and carry that exact choice into the cart.

Map the Options You Actually Sell

For a clothing shop, list the colours and sizes that are genuinely available. Two colours and two sizes suggest four combinations, but create only the combinations the shop sells.

Decide whether stock is shared across the parent product or tracked separately for each option. Independent shirts in each colour and size usually need quantities attached to those actual variants; a shared stock model serves a different inventory situation.

Keep this commerce decision separate from whether each variant needs an independent search page. The product variants SEO guide covers that publishing question.

Create Attributes and Variations

  1. In WordPress, add or edit the product and select Variable product in Product data.
  2. Add global or product-specific attributes, such as Colour and Size, with the intended values.
  3. Mark the appropriate attributes Used for variations, then save them.
  4. Open Variations and generate the intended combinations or add them manually.
  5. Expand each variation, enter its data and save the changes. Update or publish the product before testing the storefront.

Visible on the product page controls information display. It is different from Used for variations. Showing an attribute in the description does not create a purchasable option.

Adding a new colour later also requires checking the variation combinations. The existence of an attribute value is not proof that its child option is ready to buy.

Set Commercial Data Per Variation

FieldCheck for each intended option
Enabled and priceThe variation is enabled and has the appropriate regular or sale price
ImageThe selected colour displays the correct product photo
SKU and identifiersThe values identify the actual option, with deliberate inheritance only
Stock and backordersQuantity and availability follow the chosen inventory model
Shipping detailsAny option-specific weight or dimensions are accurate

An unpriced variation does not appear in the store. Editing only a parent price is not enough to establish every child option's price.

If you use SKUs, assign explicit unique variation SKUs where needed. Blank fields can inherit parent values, including identifiers. Inspect what the selected option and exported product data actually contain before sending the catalogue to another channel.

The Merchant Center identifier guide explains why a parent code should not accidentally replace a variant's assigned GTIN.

Choose a Consistent Stock Model

WooCommerce supports parent-level stock, variation-level stock and deliberate mixtures. For independently stocked shirts, manage each variation's quantity so a purchase reduces the selected combination's inventory.

Review backorders and the display of unavailable combinations. A setting that permits orders after quantity reaches zero is a business promise, not merely a display preference.

Avoid broad “Any colour” or “Any size” combinations in a beginner setup. Overlapping variations can make the first matching variation determine the behavior, which is harder to reason about than explicit combinations.

Test the Selected Option Through the Cart

  1. Open the public product page on desktop and mobile.
  2. Select each intended colour-size combination and check its image, price and availability.
  3. Add an available option to the cart and confirm the option details.
  4. Check an unavailable or excluded combination behaves as intended.
  5. Use the payment gateway's official sandbox procedure if testing checkout and stock changes.

For WooPayments, test mode is available under Payments settings and avoids real charges. It still creates test orders in WooCommerce. Other gateways have their own test process; do not assume one gateway's settings apply to all of them.

Themes and extensions can change selectors and galleries. Test the actual storefront, not only the product editor. Keep the main product page information accurate for the option customers select.

Frequently Asked Questions

What Is a Variable Product in WooCommerce?

It is a parent product with selectable variations that can have their own commercial data. Use it for real buying options, not simply to display descriptive attributes.

How Do I Add Product Variations?

Create and save attributes marked Used for variations, then generate or manually add the intended combinations. Set the necessary price, enabled state and stock information for each.

Why Is a Variation Missing From the Store?

Check that it exists, is enabled, has a price and is available under your stock settings. Also inspect extension or theme behavior affecting the selector.

Should I Manage Stock at Parent or Variation Level?

Use the level that reflects the inventory you actually hold. Independently stocked options need their own quantities; shared stock requires a deliberate parent-level setup.

Share This Article