All Collections
Discount Rules for WooCommerce
Buy One get One Scenarios
Buy One Get One Discount for Products from Same Category
Buy One Get One Discount for Products from Same Category

Learn how to offer Buy 2 from Category A and get 1 free from the same Category A discount using Discount rules for WooCommerce

Ramesh avatar
Written by Ramesh
Updated over a week ago

Introduction :

Category-based discounts in Discount rules for WooCommerce plugin offered to customers based on the category of products they purchase. Category-based discounts can be a powerful tool for businesses to increase sales and promote specific products or categories.

This user guide explains how to implement Category-based discounts in your WooCommerce store.

The following are some of the examples for Category-based discounts,

  • Buy 2 from Category A and get 1 free from the same Category, Buy 4 and get 2 for free and recursively.

  • Buy 2 or more from Category A and get a 50% discount on one of the cheapest products from the specific category.

  • Spend $500 on Category A and get a fixed discount of $50 on one of the cheapest products from the specific category.

Before getting started, please make sure that you have installed and activated the “Discount Rules PRO'' plugin. The above scenarios require the Buy X Get Y discount type feature, which is available only in the PRO version.

Let’s get started,

Example 1 : Buy 2 from Category A and get 1 free from the same Category, Buy 4 and get 2 for free and recursively..

This scenario lets customers buy two products from Category A and receive one of the cheapest items for free and by increasing the quantity of purchased items, additional free products are given recursively.

Creating a Discount Rule

  • Go to WordPress dashboard -> WooCommerce -> Woo Discount Rules -> Click on “Add New Rule” button.

  • Choose “Buy X Get Y” as the Discount type.

Here is the screenshot of the rule configuration that follows,

Rule Configuration :

Filter Section

Choose "Category" in the "Filter" section as customers have discounts for products from the specific categories.

Discount Section

Choose “Buy X Get Y Categories” in the Discount section as the discount is for the specific category. You can also have other options depending on your requirement.

Choose how to count the quantities as -> Filter set above (count all quantities in cart as together). Select the Mode of Apply as “Cheapest” or “Highest”.

Enter the minimum quantity as “2” and choose the same category for “Get Quantity” which is chosen in the filter section.

Enter the free quantity as “1” and discount type as “Free” (you can also have percentage and fixed discounts)

Enable Recursive option in order to repeat the discounts endlessly.

Once configured, save and publish the rule.

Now, when the customer adds product A and product B from the specified category one of the products would be free.

Here is the screenshot of the cart page showing an example:

Example 2 : Buy 2 or more from Category A and get a 50% discount on one of the cheapest products from the specific category.

This scenario lets customers buy two products from Category A and receive a 50% discount on one of the cheapest items from the same Category A.

Creating a Discount Rule

  • Go to WordPress dashboard -> WooCommerce -> Woo Discount Rules -> Click on “Add New Rule” button.

  • Choose “Buy X Get Y” as the Discount type.

Here is the screenshot of the rule configuration that follows,

Rule Configuration :

Filter Section

Choose "Category" in the "Filter" section as customers have discounts for products from the specific categories.

Discount Section

Choose “Buy X Get Y Categories” in the Discount section as the discount is for the specific category. You can also have other options depending on your requirement.

Choose how to count the quantities as -> Filter set above (count all quantities in cart as together). Select the Mode of Apply as “Cheapest” or “Highest”.

Enter the minimum quantity as “2”, maximum quantity as “999” or you can just leave it as empty and choose the same category for “Get Quantity” which is chosen in the filter section.

Enter the free quantity as “1” and discount type as “Percentage Discount”, enter the percentage value as “50” (you can also have free and fixed discounts according to your requirements)

Once configured, save and publish the rule.

Now, when the customer adds 2 or more products from the specified category one of the products would get a 50% discount.

Here is the screenshot of the cart page showing an example:

Example 3 : Spend $500 on Category A and get a fixed discount of $50 on one of the cheapest products from the specific category.

This scenario lets customers buy products from Category A until the subtotal reaches $500 and receive one of the cheapest items for free from the same Category A.

Creating a Discount Rule

  • Go to WordPress dashboard -> WooCommerce -> Woo Discount Rules -> Click on “Add New Rule” button.

  • Choose “Buy X Get Y” as the Discount type.

Here is the screenshot of the rule configuration that follows,

Rule Configuration :

Filter Section

Choose "Category" in the "Filter" section as customers have discounts for products from the specific categories.

Discount Section

Choose “Buy X Get Y Categories” in the Discount section as the discount is for the specific category. You can also have other options depending on your requirement.

Choose how to count the quantities as -> Filter set above (count all quantities in cart as together). Select the Mode of Apply as “Cheapest” or “Highest”.

Enter the minimum quantity as “1”, maximum quantity as “999” or you can just leave it as empty and choose the same category for “Get Quantity” which is chosen in the filter section.

Enter the free quantity as “1” and discount type as “Fixed Discount”, enter the value as “50” (you can also have free and percentage discounts according to your requirements)

Conditions

In the conditions section, choose “Subtotal” and set the operator to be “Greater than” and enter the value 500.

Because, we are offering a fixed discount when the subtotal reaches $500.

Once configured, save and publish the rule.

Now, when customers spend at least $500 in their cart, they will see a Fixed discount applied to the cheapest product in the cart.

Here is the screenshot of the cart page showing an example:

Some of the examples discussed here will require Discount Rules PRO.

Next Steps :

You may also want to check out these helpful guides :

Refer this video to know more about Category based discounts :

Still unclear?

If you need any assistance, please create a support request at our ticket system. We are always happy to assist you :)

Did this answer your question?