How to add product variations in WooCommerce

How to create variable products in WooCommerce: attributes, variations, prices, stock, images, swatches, bulk editing and avoiding common mistakes.

Usman Muhammad UsmanUpdated October 13, 2026
How to add product variations in WooCommerce

If you sell a T-shirt in four sizes and three colours, you do not want twelve separate products. WooCommerce variable products let customers choose options on one product page, with each combination having its own price, stock and image if needed. Here is how to set them up properly and avoid the mistakes I see most often.

Attributes and variations explained

Attributes describe options, such as Size or Colour, with values like Small, Medium and Large. Variations are the purchasable combinations of those values, such as Medium in Blue. A variable product needs at least one attribute marked as ‘Used for variations’, and then a variation for each combination you sell.

Create global attributes under Products > Attributes when the same options apply to many products. Global attributes can be used for filtering in the shop and keep naming consistent. Custom attributes, added on a single product, are fine for options that only apply to one item.

Creating a variable product

Edit or create a product and choose ‘Variable product’ from the Product data dropdown. In the Attributes tab, add your attributes and values, tick ‘Used for variations’ and save. Then go to the Variations tab and click ‘Generate variations’ to create every combination automatically, or add them one by one.

Each variation needs a price before it can be purchased; without one it stays hidden. Set the regular price, sale price if any, SKU, stock and weight. Set default form values so the page loads with the most popular option selected, which reduces clicks for most customers.

Setting up variations
  1. 1Global attributesSize, colour, material
  2. 2Variable productProduct data type
  3. 3Generate variationsOnly what you sell
  4. 4Price and stockBulk actions
  5. 5Images and swatchesClear on mobile

Prices, stock and images

If all variations share the same price, use the bulk actions dropdown in the Variations tab to set prices for all at once. You can also set stock and shipping class in bulk. Enable stock management at variation level when sizes or colours sell at different rates, so customers cannot buy combinations you do not have.

Upload an image for each colour variation. When a customer chooses a colour, the main image switches to that variation, which reassures them they are buying the right item. Keep variation images the same size and style as the main gallery so the page does not jump.

Swatches instead of dropdowns

By default, WooCommerce shows variations as dropdown menus. Colour and image swatches, or simple buttons for sizes, are faster to use and clearer, especially on phones. Several plugins add swatches, and some themes include them. Choose a lightweight option and check that it works with your theme and cache.

Show out-of-stock combinations as crossed out or greyed rather than hiding them completely, so customers understand what is available. Add a size guide link next to the size selector where fit matters. These small details reduce returns and support questions, as covered in my product page checklist.

Large numbers of variations

Products with many attributes can create hundreds of combinations. WooCommerce loads variation data differently once a product exceeds a threshold, which can make the selector slower and less helpful. Generate only combinations you actually sell, rather than every theoretical combination.

For very complex products, such as made-to-measure items or bundles with many options, a product add-ons or configurator plugin may be better than variations. Sometimes splitting one product into a few separate products, such as by material, is clearer for customers and better for SEO, because each product can target its own search terms.

Importing and bulk editing

For large catalogues, import variable products with the built-in CSV importer. Each variation is a row linked to its parent product by SKU or ID, with attribute values in dedicated columns. Export one product first to see the exact format, then build your spreadsheet to match.

To edit many variations later, use bulk actions in the Variations tab or a bulk editing plugin for changes across products. Always back up before large imports or bulk edits, and test on a staging site if the catalogue is important.

Variations and SEO

All variations of a product share one URL, which concentrates ranking signals on a single page. That is usually good for SEO. Make sure the product title and description mention the main options customers search for, such as ‘available in oak, walnut and white’, so the page can rank for those terms.

If one variation is searched for very differently, such as a product sold in very different materials, a separate product page may rank better. Use your SEO plugin’s Product schema so price ranges and availability appear correctly in search, and read e-commerce SEO for category page strategy.

Common mistakes

The most common issues are variations without prices, which hide them; attributes not marked ‘Used for variations’; mismatched stock levels; and forgetting to set a default selection. Another is changing attribute names after variations exist, which can break the link between them.

Check each variable product as a customer would: choose every option, check prices, images and stock messages, and add to cart. If you are setting up a new store, my WooCommerce setup guide covers the wider configuration. If you need help with a complex catalogue, it is part of my WooCommerce development service.

Key takeaways

  • Attributes describe options; variations are the combinations customers buy.
  • Every variation needs a price or it will not appear.
  • Use variation images and swatches to make choices clear.
  • Generate only combinations you actually sell.

Frequently asked questions

Why is my variation not showing?

It probably has no price, is out of stock with hidden out-of-stock items, or the attribute is not marked 'Used for variations'.

How many variations can a WooCommerce product have?

There is no strict limit, but performance and usability drop with hundreds of variations. Keep combinations realistic.

Can each variation have its own SKU?

Yes. Set a unique SKU for each variation, which helps with stock management and integrations.

How do I add colour swatches?

Use a swatches plugin or a theme with built-in swatches, then assign colours or images to each attribute value.

Can variations have different shipping costs?

Yes. Assign a shipping class to each variation and set class costs in your shipping zones.

Free website audit

Get a free audit of your website

Tell me your URL and I'll send a short, prioritized list of the speed, SEO and security fixes that will make the biggest difference.

  • No obligation, no sales call
  • 5.0 rating on Google and Upwork
  • Reply within one business day
Written by Muhammad UsmanWeb Development Team Lead with 5+ years building WordPress, WooCommerce, Shopify and Wix websites. Experience · Certificates About me

More on WordPress & WooCommerce

All WordPress & WooCommerce articles

Have a project in mind?

Tell me what you're building and I'll reply with next steps and an estimate.