Pro Buy X, Get Y

The Buy X, Get Y module lets you create BOGO (Buy One, Get One) type offers in your WooCommerce store.

In a BOGO type offer, you offer a discount on Product Y when a customer buys Product X in a pre-defined quantity. For example, if they buy 3 items of Product X, they get 1 item of Product Y 50% off.

With Merchant Pro, you can create both percentage-based and fixed discounts.

You can include all products, one or more product categories, or one or more individual products in the offer, meaning that:

  • If you add all products, the offer will show up on all product pages.
  • If you add product categories, the offer will show up only for products that belong to those categories.
  • If you add it to individual products, it will only show up for those products.

Merchant Pro allows you to create as many ‘Buy X, Get Y’ offers as you want.

In the screenshot below, you can see an example of a percentage-based offer on a WooCommerce product page:

An example of the Buy One Get One discount, annotated screenshot

Once the customer clicks the Add To Cart button, the entire bundle (in the example above, the four products) appears on the Cart page.

As you can see below, Merchant Pro applies the discount to Product Y:

Screenshot of the Cart page with the Buy X, Get Y discount

You can also create a ‘Buy One, Get One Free’ offer with the module by setting the discount value to 100%:

An example of the Buy One Get One Free discount, annotated screenshot

Now, let’s see how you can configure and enable Merchant Pro’s Buy X, Get Y module on your WordPress site.

1. Open the Buy X, Get Y Module

First, open your Merchant dashboard by clicking the Merchant menu in the left sidebar of your WordPress admin area.

Find the Boost Revenue section, and click the Buy X, Get Y module to open its settings page:

Location of the Buy X, Get Y module on the Merchant dashboard

2. Create and Configure Your First Buy X, Get Y Offer

You can create the offers one by one on the admin page of the Buy X, Get Y module.

To create a new offer, click the Add New Offer button:

Location of the Add New Offer button on the admin page of the Buy X, Get Y module of Merchant Pro

Once the Campaign section appears on the screen, open its settings, and configure each option:

  • Offer name – The name of your offer; it will only show up in the admin interface (e.g. ‘Buy 3 Get 1 with 50% Off’).
  • Trigger – This field refers to Product X. You can add the products you want to include in the offer; the available options are All products (the offer will be shown for all products; you can exclude products), Product categories (you can choose the categories you want to include from a dropdown list; you can exclude products), Specific products (you can use a real-time search field to add the individual products you want to include).
  • Quantity – The minimum quantity of Product X a customer needs to purchase to get the offer.
  • Customer Gets – This field refers to Product Y. You can use real-time search to add the product you want to offer at a discount. You can add only one product.
  • Quantity – The quantity of Product Y the customer gets at a discount if they purchase Product X in the required quantity.
  • Discount Type – Here, you can choose between a Percentage Discount and a Fixed Discount.
  • Discount Value – Here, you can define how much discount you want to give to your customers. In case of a percentage discount, you define the discount in percentage (e.g. 10%) and in case of a fixed discount, you define it in the currency of your WooCommerce store (e.g. $10) that you can change from the WooCommerce > Settings > General > Currency options > Currency menu.
  • Placement on product page – Here, you can choose whether you want to show the ‘Buy X, Get Y’ banner before or after the add to cart form on the WooCommerce product page.
  • Offer title – This is the title of the offer that Merchant Pro will show for your customers on the product pages.
  • Buy label – This is the label that will be shown above Product X on the product pages. You can use the {quantity} variable. For example, if you set 3 as Quantity for Product X, you can set this field to ‘Buy {quantity}’, and it will appear as ‘Buy 3’ on the product pages.
  • Get label – This is the label shown above Product Y on the product pages. You can use the {quantity} and {discount} variables. For example, if you set 1 as Quantity and 50% as Discount Value for Product Y, you can set this field to ‘Get {quantity} with {discount} off’, and it will appear as ‘Get 1 with 50% off’ on the product pages.

You’ll also find font and color settings at the bottom of the campaign settings, where you can customize the font weight, font size, and color of the title text; the text and background colors of the Buy and Get labels and the arrow; as well as the border color and radius of the offer:

Settings of a Buy X, Get Y offer, annotated screenshot

Once you’ve configured all the settings, click the Save button in the top-right corner of the page.

3. Enable the Buy X, Get Y Module

To activate the module, click the Enable button at the top of the page:

Location of the Enable button on the Buy X, Get Y module's Settings page

4. Create As Many Offers As You Want

To create another offer, click the Add New Offer button again, configure the settings of the new offer, then click the Save button to make the changes live.

When your offer is set up, close its settings section, and you can review all of your ‘Buy X, Get Y’ offers in a list view.

You can also rearrange the order of your offers by grabbing the offer you want to move up or down and dragging it to its new location:

Five BOGO offers in list view on the admin page of the module

5. Activate the Shortcode of the Module (for Developers)

Merchant Pro’s Buy X, Get Y module is also available as a shortcode.

Note that activating the shortcode automatically deactivates the ‘Placement on product page’ option, so if you have already added Buy X, Get Y offers to your store, they will disappear from the product pages. This is a security measure to prevent duplicate content when the shortcode is used.

The shortcode is [merchant_module_buy_x_get_y].

If you want to use it in your WooCommerce store, toggle the Use shortcode option on, and click the Save button in the top-right corner of the page:

Use shortcode option on the admin page of the Buy X, Get Y module of Merchant Pro