How to Create Buy X Get Y Discounts
Sometimes, you want to offer customers a special promotion where buying one product unlocks a discount on another.
Using our advanced logic builder, you can create a Buy X Get Y discount easily.

Create a new "Include/exclude products" condition. Add your desired product.

Add a Minimum/Maximum Purchase Requirements criteria

Ensure minimum purchase quantity is set, and that it "Applies to" Eligible line items.

Set your Apply Discount step. Select Get Y as discount type, select your desired discounted product then set it's discounted value.


A 10% discount + free pair of Pillow Socks (or any other product).
Buy a headband, a bag and a pair of earrings together and get 30% off the lot
Minimum Purchase Requirements are required. When a minimum purchase requirement isn't added to your Buy X Get Y Discount, the logic set literally translates like this, "Buy 1+ Demo Product, get a Gift Card at 100% discount.".

Buy X Get Y does not apply "infinitely"/"in increments."
To make the Y product free, set it to 100% discount

Create a new "Check If specific products are in cart" condition. Add your desired product.

After adding your product, click the "Show" button right under "Advanced Options", write a variable name in the input field.

Click Add Criteria, Select "Compare a variable", Click Add Criteria

Confirm your desired settings

Add the "Apply Discount" step.

As a solo founder, your experience is crucial to me. Could you spare a moment to share your thoughts? Please leave a review on the Shopify App Store. Thank you for helping me improve!
Using our advanced logic builder, you can create a Buy X Get Y discount easily.
Example: With Quantity (Recommended)

Create a new "Include/exclude products" condition. Add your desired product.

Add a Minimum/Maximum Purchase Requirements criteria

Ensure minimum purchase quantity is set, and that it "Applies to" Eligible line items.

Set your Apply Discount step. Select Get Y as discount type, select your desired discounted product then set it's discounted value.

Example: Where the X and Y products are the same

More Use Cases
A 10% discount + free pair of Pillow Socks (or any other product).
Buy a headband, a bag and a pair of earrings together and get 30% off the lot
Things To Note
Minimum Purchase Requirements are required. When a minimum purchase requirement isn't added to your Buy X Get Y Discount, the logic set literally translates like this, "Buy 1+ Demo Product, get a Gift Card at 100% discount.".

Buy X Get Y does not apply "infinitely"/"in increments."
To make the Y product free, set it to 100% discount
Advanced Use Case: Exact Quantity Requirement

Create a new "Check If specific products are in cart" condition. Add your desired product.

After adding your product, click the "Show" button right under "Advanced Options", write a variable name in the input field.

Click Add Criteria, Select "Compare a variable", Click Add Criteria

Confirm your desired settings

Add the "Apply Discount" step.

Your Feedback Matters
As a solo founder, your experience is crucial to me. Could you spare a moment to share your thoughts? Please leave a review on the Shopify App Store. Thank you for helping me improve!
Updated on: 03/11/2024
Thank you!