1. Home
  2. WholesaleX
  3. Dynamic Rules
  4. Buy X Get Y (XY)

Buy X Get Y (XY)

Buy X Get Y Discount type is one of the most popular offers that businesses present to their customers. Using this feature, your customer will be incentivized to buy more products from your store. The Buy X Get Y offers your customer the option to buy a specific product with a set quantity to be eligible to get another item with a set quantity for free.

Buy X Get Y Discount.

With WholesaleX’s Dynamic Rule feature, we can easily set the Buy X Get Y discount offer.

This guide will show you how to set the Buy X Get Y offers from the Dynamic Rule section of WholesaleX.

Step 1: Creating a New Rule

First, go to the WordPress Dashboard and select WholesaleX. Now, you have to go to the Dynamic Rules feature to create a rule for a buy X Get Y discount. So, let’s go there and create a new rule. When the dynamic rule page opens, select the Create Dynamic Rule option and click the Untitled Rule to expand it further. 

Creating a New Rule
  • Go to the WordPress dashboard.
  • Click on WholesaleX.
  • Click on Dynamic Rules.
  • Click on the Create Dynamic Rule button.
  • Click on the newly created Untitled Rule.

Step 2: Name A Rule

Now we need to give a name to the rule. This will help you find the rule easily when you have a lot of rules for your store. So let’s name it from the rule title box. Once you type it in you’ll see the untitled rule has changed to the name you have given. It is the Buy Y Get Y discount in this case.

Enter the name of the rule.
  • Enter the name of the rule.

Step 3: Select Buy X Get Y Free Rule Type

Now, you have to select the discount type that will be applied to your order. WholesaleX offers quite a few discount options for your store, but as we are discussing BXGY discounts, we will be using the Buy X Get Y option from the Rule Type dropdown menu.

Select Buy X Get Y from the “Rule Type” dropdown menu.


Select Buy X Get Y from the “Rule Type” dropdown menu.

Step 5: Select User/Rule

Select the type of user or role you would like the discount to apply to. You need to select the type of users as per your requirements and decide which customers can see and avail the discount. WholesaleX lets you select All Users, All Roles, Specific Users, or Specific Roles. 

Select your preferred user/role from the “User/Role” dropdown menu.
  • Select your preferred user/role from the “User/Role” dropdown menu.

Step 6: Select the Product

After this, select the product filter from the dropdown menu to which you would like to apply the discount. Because not just users and user roles, your discount can be product specific, so you need to select them for better discount processing.

Select your preferred product filter from the “Product Filter” dropdown menu.
  • Select your preferred product filter from the “Product Filter” dropdown menu.

Step 7: Set the Value of X and Y (The number of items the user must buy to get Y free)

Now, we need the set the minimum number of products (X) the customer must buy so they are eligible for this discount type. 

First, We need to set the Minimum Product Quantity (X); this is the number of items the customer will need to buy.

Then, we need to set the free product that the customer will get when they meet our set requirements. You can add multiple free products.

Finally, we have to set ‌the quantity of the free product that the customer will receive.

For this guide, we will issue the Buy 1 Hoodie Get 1 Beanie Free offer. We will enter 1 as the Product Quantity (X), set Beanie as the Free Product, and 1 as Free Product Quantity (Y).

Set the Value of X and Y
  • Enter the Minimum Product Quantity.
  • Set the Free Products.
  • Set the Free Product Quantity.

Step 8: Set Additional Discount Options (Optional)

Also, WholesaleX offers optional conditions to customize your discounts‌. You can give discounts based on specific cart quantity, value, weight, user order count (the number of times the user has ordered), total purchase amount. Also, you can use multiple optional conditions for much more specific discounts.

Set additional conditions if needed.
  • Set additional conditions if needed.

Disclaimer: Conditions are optional, but if any conditions exist for a specific dynamic rule, then for applying the rule, conditions must be fulfilled.

Step 9: Set Duration & Usage Limit (Optional)

You can expand the Date and Limit Rule to customize the discount further. In the Usage Limit field, type in how many times (in numeric) a user can avail of this discount. If you want users to avail of the discount for a maximum of 1/2/3, etc. number of times, then this setting is a must for you. Otherwise, you can ignore this option as it will not hamper your discount strategy.

Set the duration and usage limit if needed.
  • Set the duration and usage limit if needed.

Step 10: Saving and Activating Discount

After you’re done with your Buy X Get Y discount setup, you need to save it and activate it. To do this, simply toggle the rule status bar and click save.

Click on the save button.
  • Click on the save button.
  • Toggle the rule status button to activate the rule.

You have now successfully created a Buy X Get One Free Discount using the dynamic rules feature of WholesaleX.

Final Output:

Final Output

Since we added 1 hoody to the cart, Buy X Get Y Discount is automatically applied in this transaction. We added a Beanie to the cart for free. You can change the value of X&Y in Buy X Get Y anytime, or you can set multiple BYGX discounts at once with WholesaleX. 

Was this article helpful to you? Yes No

How can we help?