WooCommerce Product Variations: Size, Colour, Stock

Add sizes and colours to one WooCommerce product, with a price, photo, SKU and stock count for each, plus the mistakes that confuse your buyers.

Published 1 December 2026

To sell one item in several sizes and colours, choose Variable product as the product type. Add Size and Colour on the Attributes tab and save them. Then click Generate variations on the Variations tab. Give every variation a price, because one without a price does not show in your store.

Three words to know first

Take a made-up cotton kurti that comes in three sizes and two colours.

  • An attribute is something the buyer chooses. Here there are two: Size and Colour.
  • A value is one option inside it, such as M or Maroon. WooCommerce also calls values "terms".
  • A variation is one real item on your shelf, such as the kurti in M and Maroon.

Three sizes and two colours make six variations. All six use the same fabric, so fabric goes in the description. If the buyer has nothing to choose, you do not need a variation.

Write your stock list first

Count the pieces and give each variation its own SKU (stock code) before you open WooCommerce. This sample uses made-up codes and counts:

SKU         Size   Colour   Stock
KRT-BLK-S   S      Black    4
KRT-BLK-M   M      Black    6
KRT-BLK-L   L      Black    3
KRT-MRN-S   S      Maroon   2
KRT-MRN-M   M      Maroon   5
KRT-MRN-L   L      Maroon   0

The stock adds up to 20, so there should be 20 pieces on the shelf. Keep the same order in every code: item, colour, size. Write the code on each packet, so whoever packs the order can match it to the screen. If you leave a variation's SKU blank, WooCommerce uses the main product's SKU, and all six may look the same on your packing list.

Create Size and Colour once for the whole shop

You can reuse these attributes on every product, so nobody types "Medium" on one and "M" on the next.

  1. Go to Products > Attributes and type Size as the name.
  2. Set Default sort order to Custom ordering, then click Add Attribute. If you sort by name, the sizes come out as L, M, S.
  3. Click Configure terms and add S, M and L. Drag them into the right order.
  4. Do the same for Colour.

Build the product

  1. Go to Products > All Products, click Add new product and type the name.
  2. In the Product data menu, choose Variable product.
  3. On the Attributes tab, add Size from your existing attributes and select the values this product has. Do the same for Colour.
  4. Tick Used for variations on both attributes, then click Save attributes.
  5. On the Variations tab, click Generate variations to make all six. If you stock only some of them, choose Add manually instead.
  6. Open each variation and add its photo, SKU and Regular price. If all the prices are the same, use Bulk actions to set them together.
  7. Click Save changes on the Variations tab, then Publish.
  8. Open the product on your phone and try all six combinations. Check the photo, price and stock each time.

Keep stock for each variation

Open a variation, tick Manage stock? and enter its own quantity. When someone buys a black M, only that count goes down.

If you enter stock only on the product's Inventory tab, the variations share one number. In our example that number is 20, so the store could sell a maroon L when you have none.

To hide sold-out sizes from the dropdowns:

  1. Go to WooCommerce > Settings > Products > Inventory and tick Hide out of stock items from the catalog. This is a setting for the whole shop.
  2. Keep stock on each variation, not on the main product.
  3. Keep backorders off for those variations.

If you also sell from a counter, the website cannot see those sales on its own. Correct the online count every day. If that takes too much time, message us for a quote on inventory software.

Mistakes that confuse buyers

  • A missing price. Open any variation that does not show and check its Regular price.
  • Attributes changed later. If you add XL after making the variations, go back to the Variations tab. Create the new ones and check the old ones.
  • "Any size" or "Any colour". If two variations fit the buyer's choice, WooCommerce uses the first match from the top. The price or stock may then come from the wrong one. Choose an exact size and colour for each variation.
  • More than 30 variations. By default, the dropdowns then show every option, even the ones you do not have. The buyer sees "Sorry, no products matched your selection" only after choosing. You could make a separate product for each design.
  • One photo for every colour. Add the correct photo to each variation. Our phone photo steps include a list of shots.
  • Letters without measurements. Put the chest and length in inches in the description. Buyers can then compare them with a kurti they own. Explain size exchanges in your return and exchange policy.

Common questions

Can one size cost more than another?

Yes. Each variation has its own Regular price, so XL can cost more than S. Your shop page may show a price range, depending on your theme. Buyers see the exact price after they choose all the options.

Why can buyers not add the product to the cart?

They must choose every required option first. If they have, check that the variation is enabled, in stock and has a price. You can also set a default choice at the top of the Variations tab, so one combination is already selected.

Should each colour be a separate product?

Both ways work. Separate products give each colour its own page and photos. One product keeps all the choices together. Separate pages suit different prints or designs, and large ranges that would go past 30 variations.

Can I add many variations from a spreadsheet?

Yes. The built-in importer can create the product and its variations from a CSV file. Try it with one product first. Our bulk import example has five sample rows to copy, and three of them are sizes.

Sources

Read next

Check a domain name