Adding a Variable Product in WooCommerce

Variable Product

Using WooCommerce variable product you can offer different set of variations on the product, with different prices with respect to variation. It provide the control over prices, stock, image and more for each variation. Example used for a product like a shirt, where you can offer a large, medium and small and in different colors.

In this tutorial we will see how to add Variable Product.

Steps to add Variable Product

Step 1: Set product type as Variable product

Create the product with product type as variable product

  1. Go to product-> Add new (or you can edit the exiting product)
  2. From the Product Data dropdown select variable product

Set product data

Step 2: Add Attribute for the variation

First we will see the how to create the attributes.

Steps to create the attribute

Step 1: Create attribute

  1. Go to Product-> Attribute
  2. Click on add new
  3. Set the product name , slug and click on create attribute

Step 2: Configure the attribute

In this step we add the different variation for the product. Example For color- Red, Green, White etc

  1. Go to attribute select attribute and click on configure attribute
  2. set name and slug for variation

Now lets set to set the how to add this variation to your product

Using Global Attribute created in above steps

  1. select attribute from the dropdown
  2. Add the applicable attribute for the product
  3. Enable the Used for variations checkbox to tell WooCommerce it’s for your variations.
  4. click on save attribute

Custom Attributes

In this we add custom attribute specific to product

  1. Select Custom product attribute and click Add
  2. set the name for the product
  3. set the values for attribute by ‘|’ separated Example. Red | Green | white  (for color attribute)
  4. Enable the Used for variations checkbox to tell WooCommerce it’s for your variations.
  5. click on save attribute

Step 3: Add Variation

To add variation go to variation tab in variation tab in product data meta box.

Manually Add variation 

  1. Select the add variation from drop down
  2. Add the applicable variation

Creating All Possible Variations

select the Create variations from all attributes  to add all variations and click on go

Configure the product for each Variation

In this we step we set the price, weight, dimensions and other properties of the product specific to the variation.

What customer will see

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.