New!Optinly - Increase Web Conversions 10x Times Using Popups!Introductory Offer! Coupon Code: OPTIN20Buy Now

Published under WooCommerce
Last updated on

How to Setup WooCommerce Product Variations Pricing Using a Discount Plugin

Product Variation in WooCommerce is a simple concept of selling products with different combinations of variants at the choice of the customer.

T-Shirt is a variable product with
Color - Bule, White
Size - Small, Medium.
Color and size are the attributes of the product
Bule, White, Small, and Medium are the variants of the products.

The following article is an insight into the creation of a variable product and the common strategies of configuring WooCommerce product variation discounts for your online store.

What is WooCommerce Variable Product?

A variable product is a type of WooCommerce product that offers a set of variations in a single product with control over prices, stock, and more for each variation. They are commonly configured for the products in the “Clothing category” like T-shirt, Shirts, Hoodies, etc with large, medium, and small sizes and different colors as its variants.

How to create a WooCommerce variable product?

Let us get in detail with the process of creating a variable product with its WooCommerce variable pricing.

1. Setting the product type:

Go to WooCommerce -> Products.
Select Add New to create a variable product.


Select “All Products” -> Click “Edit” on the existing products.
This will navigate you to the below screenshot,

1 create variable product

Enter a product name.

Select “Variable Product” from the product data section and click on “Publish”.

2. Create variations for the attributes

In the Attribute section, add the required attributes before creating the WooCommerce product variations. The global attributes are site-wide or can also be customized for a specific product.

  • Create the required attributes in the Attributes section of WooCommerce.
  • Choose the variable product to which the attributes and its WooCommerce product variations are to be configured.
  • In the product data section,

Select -> Attributes -> Add the attribute as shown below,2 choose attribute

Add the attribute values as shown below,

3 adding attributes value

Enable “Used for Variations” to illustrate that these are the WooCommerce product variations.

  • Click on “Save Attributes”.

3. Adding Variations

To add a variation, go to the “Variation” section in the Product Data meta box.

Choose the option “Add Variation” from the drop-down and select GO as illustrated below,

3 adding attributes value

Add the variation to the respective attribute as shown below,

4 add variation

 The data of the variation can be customized just by simply clicking on “Expand”.

The possible data to be edited is the “Regular Price”. Each variation can be set at a regular price.

Once the required configuration is done click on “Save Changes”.

Thus a variable product has been created successfully with its product variations in WooCommerce.

How to configure WooCommerce Product Variation Discounts at your store?

The product variation discounts can be easily configured with the best WooCommerce product variation plugin “Discount Rules for WooCommerce”. The plugin helps you to create conditional discounts for WooCommerce such as percentage discounts, bulk discounts, dynamic pricing, advanced discounts in your store. 

Let us get into the installation of the WooCommerce product variations plugin,

Step 1: Log into your WordPress Dashboard and go to the Plugins section.

Step 2: Click on “Add New” button as illustrated below,

4 add variation

Step 3: Search for the plugin “Discount Rules for WooCommerce” as shown below,

7 install plugin

Step 4:  Install and activate the plugin.

This best WooCommerce variable pricing plugin can also be installed manually to your store by downloading Discount Rules for WooCommerce plugin from WordPress repository. Upgrade to the premium version of the WooCommerce Discount Rules plugin to get more features.

How to display product variations in WooCommerce

When WooCommerce variations are created for the variable product, make sure to check the “Enabled” option under each variation as shown below,

8 enable product variation

It will automatically be considered along with the parent product when it comes to discounts based on any variable product. The option will also display the variations along with WooCommerc product price variations.

Have a look at the product page as to know how the WooCommerce product variations are displayed at your store,

9 choose variation product page

The product is displayed with its WooCommerce product variations & price. The price of the variable product changes depending upon the product variation chosen. 

What are the WooCommerce Product Variation Discounts that can be configured to the variable products?

To configure WooCommerce discounts to your store follow the below navigations,

Go to WooCommerce -> WooCommerce Discount Rules -> Add New Rule

Now start creating your WooCommerce product variations conditional discounts.

Let us look into some of the common WooCommerce product variations conditional logic Discounts that can be configured for your store,

1. WooCommerce discount based on specific product variation

This WooCommerce product variation discount is configured on a specific variable product(s). The percentage discount will be applicable only to the specified parent product and its variants.


15% discount on the product “Hoodie with Logo”.

10 example one configuration

Enter the rule name.

Choose the discount type as “Product Adjustment”.

In the Filter section,

Choose “Products” and enter the specific variable product.

In the Discount section,

Choose “Percentage Discount” and enter the discount value as 15%.

The Rule section is optional where you can set validity for your WooCommerce discount rule and even the WooCommerce coupon can be configured here.

Have a look at the product page,

11 example1 product page

The product page is displayed with WooCommerce product variations & prices.

Have a look at the cart page of this scenario,

12 output example1

The discount of 15% is applied only to the specified variable product.

2. WooCommerce Product Variation Discounts on specific attributes

This WooCommerce product variation is the discount based on specific product variation. The discount will be applicable only to the specified attribute of all the variable products in your WooCommerce store.


All Medium size in the shop gets a price discount of $10.

Only the variation “Medium” of all the variable products is given at a price discount of $5.

3. WooCommerce variable pricing on a BOGO deal

The WooCommerce variable pricing is configured for the WooCommerce BOGO deal. When the cart matches the defined product variation, the free product is added automatically to the customer’s cart.


Purchase “Small size - TShirt” and get a “Belt” for free.

When the specific variable product is purchased, a quantity of the free product is automatically added to the customer’s cart.

4. WooCommerce variable product discount based on the subtotal

This WooCommerce discount is defined completely based on the cart subtotal. You even can offer a variable product as a complementary product in this scenario.


Get a “Hoddie with Logo” for free when your cart subtotal is above $200.

13 example2  configuration

Choose the discount type as “Buy X and Get Y”.

In the filter section, choose “All Products” as it is a store-wide discount.

In the Get Discount section, the configuration for the “Get Y” discount is done with minimum and maximum quantity to be purchased.

In the Rule section, the condition for the cart subtotal is to be configured.

Have a look at the cart page for this scenario,

14 example2 output

The free product is automatically added to the cart as the subtotal is above $200. The Customer can choose the required variant of the free product (WooCommerce variable product) in the cart before completing the purchase.

You can even define the above product variation discounts to a WooCommerce coupon which would attract more customers to your store.

The best thing about WooCommerce is its flexibility and reliability. It allows you to create product pages that are simple or complex as you need. With WooCommerce can set up basic products, or even sell items with different variations.

WooCommerce Product variation discounts work well when configured during your clearance sale. Try implementing the best WooCommerce discount type for your variable products and experience a colossal success at your WooCommerce store.

Wishing you Good Luck.

FAQs on WooCommerce Product Variations

When WooCommerce variations are created for the variable product, make sure to check the “Enabled” option under each variation. This would display all the created variants on the product page of your WooCommerce store.

Below are some of the examples that could be configured as product variation discounts

  1. 15% discount on the product “Hoodie with Logo”.
  2. All Medium size in the shop gets a price discount of $10.
  3. Purchase “Small size - TShirt” and get a “Belt” for free.
  4. Get a “Hoddie with Logo” for free when your cart subtotal is above 200.

Any number of variations can be created manually for a variable product in WooCommerce.