Skip to main content
Buy X Get Y

Find out how to use the Discount Rules for Woocommerce plugin for setting up Buy X Get Y BOGO offers on your WooCommerce store.

Ramesh avatar
Written by Ramesh
Updated over a week ago

Introduction:

Buy X Get Y discount rule in the Discount Rules for WooCommerce plugin, refers to a promotion where customers who purchase a specific product (X) are eligible for a discount on another product (Y).

For example, if a customer buys a shirt (X), they can get Free/ Discount on Cap (Y). This type of promotion is the most popular BOGO deal in the e-commerce world.

This user guide explains how to implement the Buy X get Y offer in your WooCommerce store.

The following are some of the common examples of Buy X get Y offers:

  • Buy 2 get 1 free, Buy 4 get 2 free, Buy 6 get 3 free and so on (ie..,recursive) and the free can be either cheapest or highest.

  • Buy 2 or more products get one product as free (non-recursive)

  • Buy 1 product get 20% off on every second purchase (recursive)

  • Choose any one product as free from the list of products (A, B, C or D)

The quantities used in this example are only for demonstration purposes. You can modify them to suit your specific needs.

To customize your settings, simply adjust the "Min" and "Max" quantity fields in the discount tab as needed. These fields are designed to offer you greater flexibility.

Please note that before proceeding, you must have installed and activated the Discount Rules PRO plugin. It is important to note that this feature requires the PRO version.

Let’s get started,

Example 1 : Buy 2 get 1 free, Buy 4 get 2 free, Buy 6 get 3 free and so on (ie..,recursive) and the free can be either cheapest or highest.

This scenario lets customers get a Free product recursively, meaning the discount and quantity will repeat endlessly as the customer adds more items to their cart. Let’s create a discount rule for this scenario.

Creating a Discount Rule

  • Go to WordPress dashboard -> WooCommerce -> 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,

Details of configurations are:

Step 1: Choose "All Products" (storewide) from the filter options (buy X section). You also have options like specific Categories, selected Products, Attributes, Tags, Sku’s and so on… You can choose the option depending upon your requirement.

Step 2: Choose “Buy X get Y - All” in the Discount/ Get Y section. You also have other options like “Buy X Get Y - Products” or “Buy X Get Y - Categories” depending on your requirement.

Step 3: Choose how to count the quantities as -> Filter set above (count all quantities in cart as together. For example, if a customer buys 2 of Product A and 3 of Product B, our plugin count 5 products as together)

Other available options to count quantities are:

  • Individual product - counts each item separately, even for variable products. For example, if a customer buys 2 of Product A and 3 of Product B, our plugin count of 2 for Product A and 3 for Product B individually.

  • All variants in each product together - counts all variants of a product, which is useful for applying discounts based on the parent product. For example, if a customer buys 2 Small, 4 Medium, and 6 Large variants of Product A, the count will be 12.

Step 4: Select the mode of application as

  • “Cheapest” or “Highest”,

  • Set minimum quantity as 2, free quantity as 1

  • Choose the discount type as FREE (you can also set Percentage or Fixed Discount) and

  • Enable the Recursive checkbox to repeat the discount endlessly.

Step 5: Save the rule.

Now, if a customer purchases 2 or more quantities, they will get 1 product as free (cheapest) for every 2 quantities.

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

Check out the following video tutorial for an overview how to offer Buy 2 Get 1 (recursive):

Example 2 : Buy 2 or more products get one product as free (non-recursive)

This rule offers customers only one free product while buying 2 or more items, meaning the discount won't apply for any extra purchases.

Creating a Discount Rule

  • Go to WordPress dashboard -> WooCommerce -> 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,

Details of configurations are:

Step 1: Choose "All Products" (storewide) from the filter options (buy X section). You also have options like specific Categories, selected Products, Attributes, Tags, Sku’s and so on… You can choose the option depending upon your requirement.

Step 2: Choose “Buy X get Y - All” in the Discount/ Get Y section. You also have other options like “Buy X Get Y - Products” or “Buy X Get Y - Categories” depending on your requirement.

Step 3: Choose how to count the quantities as -> Filter set above

Step 4: Select the mode of application as

  • “Cheapest” or “Highest”,

  • Set minimum quantity as 2, set maximum quantity field as empty and free quantity as 1

  • Choose the discount type as FREE (you can also set Percentage or Fixed Discount)

Step 5: Save the rule.

Now, if a customer purchases 2 or more quantities, they will get only 1 product as free (cheapest product in cart).

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

Example 3 : Buy 1 product get 20% off on every second purchase (recursive)

This rule offers 20% off on every second purchase (recursive), while the customer buys 2 or more quantities.

Creating a Discount Rule

  • Go to WordPress dashboard -> WooCommerce -> 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,

Details of configurations are:

Step 1: Choose "All Products" (storewide) from the filter options (buy X section). You also have options like specific Categories, selected Products, Attributes, Tags, Sku’s and so on… You can choose the option depending upon your requirement.

Step 2: Choose “Buy X get Y - All” in the Discount/ Get Y section. You also have other options like “Buy X Get Y - Products” or “Buy X Get Y - Categories” depending on your requirement.

Step 3: Choose how to count the quantities as -> Filter set above

Step 4: Select the mode of apply as

  • “Cheapest” or “Highest”

  • Set minimum quantity as 2, free quantity as 1

  • Choose the discount type as Percentage Discount and set value as 20%

  • Enable the Recursive checkbox to repeat the discount endlessly.

Step 5: Save the rule.

Now, if a customer purchases 2 or more quantities, they will get 20% off on 1 product (cheapest) for every 2 quantities added to cart.

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

Example 4 : Choose any one product as free from the list of products (A, B, C or D)

This scenario lets customers choose a Free product from the list of given products. If you want to offer your customers the option to select a free product, you can set the mode of application to "cheapest" when setting up your discount.

Creating a Discount Rule

  • Go to WordPress dashboard -> WooCommerce -> 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,

Details of configurations are:

Step 1: Choose "All Products" (storewide) from the filter options (buy X section). You also have options like specific Categories, selected Products, Attributes, Tags, Sku’s and so on… You can choose the option depending upon your requirement.

Step 2: Choose “Buy X get Y - Products” in the Discount/ Get Y section and enter the list of products that you would like to allow customers to pick from

Step 3: Choose how to count the quantities as -> Filter set above

Step 4: Select the mode of apply as

  • “Cheapest”

  • Set minimum quantity as 2, leave maximum quantity section as empty and free quantity as 1

  • Choose the discount type as FREE

Step 5: Save the rule.

Now, the customer will get one product from the list of products as Free (cheapest), only if the customer manually adds a qualifying product to their cart.

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

Below are some other frequently used Buy X Get Y scenarios:

1. Buy Product A, Get Product B at 50% off or for Free:

This type of discount allows customers to purchase Product A and get Product B at a discounted or free price. It's a promotional strategy aimed at increasing sales, clearing inventory, and introducing or promoting products by bundling a popular product (Product A) with a discounted or free product (Product B). For example: Buy a shirt (Product A) at full price and get a belt (Product B) for free.

2. Buy One Get One Discount for Products from Same Category:

This type of discount allows customers to buy one product from a specific category and get another product from the same category at a discounted price or for free. This promotional strategy encourages customers to purchase more products from a particular category, promote related products, clear out inventory, and increase revenue. For example: Buy two shirts, get one free/ at 50% off.

3. Buy any items from Category A and get 20% discount on Category B:

This type of discount allows customers to buy products from Category A and get a 20% discount/ Free on products from Category B. It incentivizes customers to purchase from a particular category while promoting related products from another category. For example: Buy pet accessory, get 20% off pet food

4. Subtotal based free product:

This type of discount allows customers to receive a free product when their subtotal reaches a certain amount. For example, "Spend $50 and get a free t-shirt." The purpose of this type of discount is to incentivize customers to spend more money by offering a free product as a reward.

5. Buy product A + B and get discount in product C:

This type of discount allows customers to purchase two specific products (Product A and B) together and receive a discount on another product (Product C). For example: Buy peanut butter (Product A) and jelly (Product B) together and get a discount on bread (Product C).

The above discussed (Buy X Get Y) discount scenarios require a PRO version.

More Buy X Get Y Examples:

Learn about Buy X Get Y discounts and related guides:

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?