Adding Variable Products To WooCommerce

Adding Variable Products to WooCommerce

If you sell products that have different versions or variations, for example, such size or color; Variable Products is the way to go in WooCommerce. Variable products are a product type in WooCommerce that lets you offer a set of variations on a product, with control over prices, stock, image and more for each variation. They can be used for a product like a shirt, where you can offer a large, medium and small and in different colors.

So how to add the Variable Products to WooCommerce? Let’s go with me!

How to Add a Variable Product to WooCommerce?

Step 1:  Set the product type
To add a variable product, create a new product or edit an existing one.
1. Go to WooCommerce > Products.
2. Select the Add Product button or Edit an existing product. The Product Data displays.
3. Select variable product from the Product Data dropdown.

Step 2: Add attributes to use for variations
In the Attributes section, add attributes before creating variations — use global attributes that are site wide or define custom ones specific to a product.

Global attributes

To use a global attribute:

  1. Select one from the drop-down and Add.
  1. Choose Select all to add all attributes to the variable product (if applicable).
  1. Tick the Used for variations checkbox to tell WooCommerce it’s for your variations.
Adding Global Attributes to a Product
Setting Up Global Attributes

Custom attributes specific to product

If adding new attributes specific to this product:

1. Select Custom product attribute, and Add.

Adding Custom Attributes to a Product

2. Name the attribute (e.g. Size),

3. Set values separated by a vertical pipe (e.g., small | medium | large)

4. Enable the Used for variations checkbox.

5. Click Save attributes.

Step 3. Add variations
To add a variation, go to Variations section in the Product Data meta box.

Manually Adding a Variation

1. Select Add variation from the drop-down menu, and click Go

2. Select attributes for your variation. To change additional data, click the triangle icon to expand the variation.

3. Edit any available data. The only required field is Regular Price.

4. Save Changes.

Editing Many Variations

If you have more than 10 variations, use the buttons to navigate forward and backward through the list. Each time you navigate to a new set of variations, the previous set are saved. This ensures that all data is saved.

Setting Defaults

We recommend setting defaults you prefer on variations. In the example, we have no defaults set, so users can pick any color and size right away from the product page.

If you want a certain variation already selected when a user visits the product page, you can set those. This also enables the Add to Cart button to appear automatically on variable product pages.

You can only set defaults after at least one variation has been created.

Variation Data

Each variation may be assigned.


  • Enabled – Enable or disable the variation.
  • Downloadable – If this a downloadable variation.
  • Virtual – If this product isn’t physical or shipped, shipping settings are removed.
  • Regular Price (required) – Set the price for this variation.
  • Sale Price (optional) – Set a price for this variation when on sale.
  • Tax status — Taxable, shipping only, none.
  • Tax class – Tax class for this variation. Useful if you are offering variations spanning different tax bands.
  • Downloadable Files – Shows if Downloadable is selected. Add file(s) for customers to download.
  • Download Limit – Shows if Downloadable is selected. Set how many times a customer can download the file(s). Leave blank for unlimited.
  • Download Expiry – Shows if Downloadable is selected. Set the number of days before a download expires after purchase.


  • SKU – If you use SKUs, set the SKU or leave blank to use the product’s SKU.
  • Manage Stock? – Manage stock at the variation level.
  • Stock Quantity – Shows if Manage Stock is selected. Input the quantity. Stock for the specific variation, or left blank to use the product’s stock settings.
  • Allow Backorders – Choose how to handle back orders.
  • Stock Status – Set the status of your variation’s stock.
  • Sold Individually? — Allow only one to be sold in an order.


  • Weight – Weight for the variation, or left blank to use the product’s weight.
  • Dimensions – Height, width and length for the variation, or left blank to use the product’s dimensions.
  • Shipping class – Shipping class can affect shipping. Set this if it differs from the product.

Linked products

  • Upsells
  • Cross-sells
  • Grouped

If the SKU, weight, dimensions and stock fields are not set, then it inherits values assigned to the variable product. Price fields must be set per variation.

Add an image for the variation

  1. Expand the variation.
  2. Click the blue image placeholder (screenshot).
  3. Select the image you wish to use.
  4. Save.

Final Thought

Variable products in WooCommerce allow you to create specific products that have several variations, for example, different colors, sizes, prices, and other variable data. Hope that after this tutorial, you can know how to create them and how you can apply attributes, terms, and variations of your products, as well as how to add specific images for each variation. If you have any questions, please feel free to ask me at the comment section below! I’m verry happy to answer 🙂

Leave a Reply

Be the First to Comment!

Notify of