How to setup Buy X Get Y Free in Magento 2

Setup Buy X Get Y Free is one of the actions when you create the Shopping Cart Price Rule. With the promotion, customers can receive an amount of discount (Y is the discount amount) if there is the quantity of products (X) you have set before and all conditions of the rule are met. The format of the discount will appear as the following:

Buy X quantity of product, get Y quantity for free.

In this tutorial, I will help you get the steps clearly to setup Buy X Get Y Free.

To Set up Buy X Get Y Free:

Step 1: Set the Cart Price Rule

Complete this step when you follow the topic: Create a Cart Price Rule

  • Step 1: Create a New Rule
  • Step 2: Set the Conditions
  • Step 3: Set the Actions
  • Step 4: Set the Labels
  • Step 5: Apply the Rule

Step 2: Set the Conditions

  • On the Conditions tab, appears the statement “If ALL of these conditions are TRUE”The statement has two bold links “All”and “TRUE” to edit.
    • Click on the ALL link, ALL and ANY options are available.
    • Click on the TRUE link, TRUE and FALSE options are available.
  • Leave the conditions blank if you want to apply for all productsClick on Add icon to set conditions for the rule:
    • Product attribute combination
    • Product subselection
    • Conditions combination
    • Cart Attribute
      • Continue tapping the Add icon and follow these steps again to add as many conditions of the cart price rule as you need
      • If you want to delete any statement, just hit the Delete icon to remove it.

      Step 3: Set the Actions

      • In the settings of Cart Price Rule, choose the Actions.
      • Choose Buy X get Y free in the Apply field.
      • Enter the number for Discount Amount.
      • Limit the quantity discount that is applied by setting the Maximum Quantity Discount is Applied to 1, for example, this is the number of items that the discount can be applied on.
      • Set the required products customers need to add to his cart in the Discount Qty Step (Buy X) field.

      Example of Buy X Get Y Free

      You can setup buy 3 get 1 free as the following:

      • Apply: Buy X get Y free
      • Discount Amount: 100
      • Maximum Quantity Discount is Applied: 1
      • Discount Qty Step (Buy X): 3
        • Save and Continue Edit to edit the rule as your expecation.

        Step 4: Set the Labels

        • Choose Labels tab.
        • Under the Default Label section, insert the text in the Default Rule Label for All Store Views.
        • Under the Store View Specific Labels, set the label for each store view,

          Step 5: Apply the Rule

          Click Save Rule to enable the rule.

          As usual, it will take an hour to make the new rule available. In addition, you should test the rule in the right way to ensure that it is perfect.

          Ref: Magento 2 User Guide & Mageplaza