How to create product variations in WooCommerce

How to create product variations in WooCommerce

WooCommerce is one of the best eCommerce platforms available worldwide for online sales.

Online shopping usually requires that you offer product variations, such as different colors and sizes for a pair of shoes. Correct sizing is obviously important to ensure proper fit and customer satisfaction.

You can easily learn how to add this feature to your WooCommerce site with a little practice.

Adding variations means you don’t need to add the product multiple times on the site for each different size or color. Customers will quickly give up if they have to search through all these products, which is why WooCommerce product variations are so vital.

This guide created by our team at wpDataTables will teach you to create product variations in WooCommerce.

WooCommerce Variable Products

A WooCommerce variable product is any product that enables you to choose different options, including SKU, size or colors. The options are called attributes. You can add more than one to each item – for example, different colors and sizes.

Not all products offer variations, however, some items have many options, such as the following examples:

  • Furniture or furnishings that have different material options
  • Food that has different ingredients or flavors, for example, cookies in either white chocolate or dark chocolate
  • Clothing in different sizes or colors

There are two features that are variable:


These are product descriptors, such as material, color or size. For example, you want to purchase a ladle and the attributes could be ‘plastic’ and ‘black’.


Variations refer to choices or options available to the customer. For example, a customer may be able to select a t-shirt either in ‘orange’ or ‘white’.

Follow the guide below to create WooCommerce variations for your products.

Define Attributes and Add Variable Products

First add the product to your site, then set up the attributes of each available variation.

How to Add Variable Products

  • Go to WordPress admin
  • Hover on ‘products’ until you can click ‘new product’
  • Write in your title, e.g. ‘white t-shirt’
  • Go to the ‘product type’ menu and select ‘variable product’

How to Add Attributes for Variations

  • Access the attributes section by clicking ‘products’ then ‘attributes’
  • From the dropdown, select ‘add’
  • Write in the attribute, for example, ‘color’

Using Global Attributes

Global attributes apply to multiple products in your eCommerce site and are used to filter page results, such as by color or size of the products. Most web pages offer these global attributes to aid customers’ searches.

How to Add Global Attributes

  • Hit ‘select all’ to add every attribute to your variable product
  • Click the ‘used for variations’ box
  • Save your attributes

How to Add Custom Attributes

  • Go to ‘custom product attribute’
  • Hit ‘add’
  • Type in the name of the attribute, such as color

  • Set the potential values, e.g. Orange, White, Black
  • Tick the checkbox ‘used for variations’
  • Save

Adding Variations

A variation is a single product that the customer wants to purchase. It may be a t-shirt in size large and it could be white, based on the choices they make when selecting a product variation.

Each variation must have a price as well as being in stock. If they’re out of stock, they should not appear.

How to Add Variations

  • Use the dropdown menu to click ‘add variation’
  • Choose the attributes that apply
  • If you need to change anything, you can use the triangle icon
  • Edit anything you need to
  • Save

Sometimes, variations have different prices. For example, queen size sheets are often more expensive than single sheets. You can add different prices and which variations are in stock.

As an example, sheets with two attributes create variations such as the below:

  • Blue Queen
  • Orange Queen
  • Blue Single
  • Orange Single

How to Add All Possible Variations

The following steps enable you to run a bulk process for creating a variation for every possible combination of attributes. .

  • On the variable product, click ‘product data’
  • Select the tab called ‘variations’
  • Under the dropdown ‘add variation’, choose ‘create variations from all attributes’
  • Hit ‘go’

This will create all potential variation combinations for you, up to 50 at one time. If you want more, run it again until completion.

If you have many variations and don’t want to set individual prices, an easier way is:

  • Go to ‘add variation’
  • Choose ‘set regular prices’
  • Set the price and hit ‘ok’

How to Add Photos

If your product comes in different styles or colors, you’ll likely want to add an individual picture. WooCommerce variation swatches and photos are very useful, for example, photos for a sweatshirt that comes with or without a hood.

  • Go to the ‘photo’ icon
  • Upload your picture
  • Save
  • Click ‘update’ or ‘publish’

Look at the user view of your site to ensure it is uploaded correctly. Users should see the photo when selecting their desired style. If the product comes up as unavailable, you likely forgot to enter a price.

Set Defaults

You can set defaults for different variations, which enables users to find the most common option available without changing anything on the product page.

This will mean that one variation is already chosen when the user goes to the product page. An example might be white queen sheets, which can be changed to blue or single.

Defaults can only be set after one or more variations are added.

Properties of Variations

Variations have many different properties, including the following:

  • General
  • Tax status – Whether it’s shipping only, taxable or none
  • Tax class – this is handy if you have options in different tax bands
  • Enabled or disabled
  • Virtual – choose this if it is not a physical shippable product, for example, a PDF book
  • Downloadable – If it can be downloaded
  • Regular Price – this is required
  • Sale Price – this is optional, only enter this to put the product on special
  • Downloadable Files – you can add files that customers might download
  • Download Limit – adds a limit to the number of times a consumer can download a file. For unlimited, leave blank
  • Download Expiry – You may want your download to expire after a certain time period. You can set this as a number of days

FAQs about WooCommerce product variations

1. What are product variations in WooCommerce?

With WooCommerce, product variations are a means to give customers additional options for a product, such as various sizes, colors, or materials. Customers can select the option that best matches their needs by allowing each variation to have its own pricing, image, and stock level.

2. How do I create a product variation in WooCommerce?

You must first enable the product variations option in the product settings in order to create a product variant in WooCommerce. After that, you may give the product more characteristics and variations, such as different color and size possibilities, and give each variation a price and a stock level.

3. Can I have multiple product variations for a single product in WooCommerce?

In WooCommerce, you can have various product variations for a single product. By doing this, you can provide buyers with a lot of options without having to make separate goods for each variant.

4. How do I set different prices for each product variation in WooCommerce?

You can easily give a price to each variation in the product settings in WooCommerce to set various prices for each product variation. This enables you to charge extra for larger sizes or higher-quality materials or to provide varying rates for various options.

5. Can I use images to represent each product variation in WooCommerce?

Indeed, WooCommerce allows you to represent each product variation with an image. You can upload a picture for each variation, and when the buyer chooses that choice, the picture will appear on the product page.

6. Can I set different stock levels for each product variation in WooCommerce?

Absolutely, WooCommerce allows you to establish several stock levels for each product variation. This enables you to better manage inventories and avoid overselling of particular varieties.

7. How do I add custom fields to product variations in WooCommerce?

You can use a plugin or customized code to add custom fields to product variations in WooCommerce. This enables you to ask buyers for further specifics, such engraving information or custom measurements.

8. How do I display product variations on my WooCommerce store?

With dropdown menus or buttons, you may display product variations on your WooCommerce store so that buyers can choose the one they want. To aid buyers in visualizing each option, you can also include pictures or fabric swatches.

9. Can I set up different shipping options for each product variation in WooCommerce?

In WooCommerce, you can set up many shipping choices for each product variety. This enables you to provide various shipping options depending on the size, weight, or final destination of various products or variations.

10. Can I import product variations in WooCommerce using a CSV file?

Absolutely, a CSV file may be used to import product variations into WooCommerce. This saves you time and effort by enabling you to bulk upload variations and the data that goes with them, such as prices, stock levels, and photos.

Ending thoughts on WooCommerce product variations

Using the WooCommerce product variations plugin makes your pages very flexible, so you can create plain, simple, or extremely detailed pages, as well as basic product pages without options.

Variable products make your site easier to use, with fewer product pages to deal with.

Creating attributes is time-consuming, however, after you have set them up, adding variable products is easy.

Customers can see the attributes on the site, and it makes the pages easier to read.

Spending a little time learning this skill will make your site much more functional and engaging.

If you enjoyed reading this article on WooCommerce product variations, you should check out this one about how to set WooCommerce related products.

We also wrote about a few related subjects like WooCommerce appointments plugins, WooCommerce redirect after checkout, how to set up WooCommerce test mode, WooCommerce grouped product, WooCommerce variable product, how to export export WooCommerce orders, how to change the WooCommerce number of products per page, WooCommerce hide category from shop page and the best WooCommerce extra product options.

Up Next:

WordPress countdown timer examples to try on your website

WordPress countdown timer examples to try on your website