Skip to main content
Use a Buy X, get Y discount to offer a free product when a customer’s cart qualifies and they enter a code. This template requires a connected, configured Shopify subscriptions app and is not available on the Base plan. The discount does not add the gift to the cart. Customers must add it themselves as a one-time purchase.

1. Choose what customers must buy

  1. Go to Discounts → New discount → Buy X, get Y discount.
  2. Enter a Discount name and choose Manual.
  3. In Customer buys, set Minimum quantity and the qualifying Purchase type.
  4. Choose all products, specific products, or specific collections to count toward that quantity.
Buy X, get Y Customer buys settings requiring three subscription items

2. Add the free gift

Under Customer gets, click Add one-time gift, choose Free, and select the gift product or collection and quantity. The gift must be a one-time purchase product. If your offer also discounts the qualifying products, configure the reward in Customer gets. If you only want to give a gift, leave the qualifying-product reward at 0% and configure the gift separately. One-time gift configured as Free with a quantity of one and a selected gift product

3. Sync and activate the discount

  1. Under Shopify Checkout, enable Sync this discount to Shopify.
  2. Choose any allowed discount combinations and eligible customer segments. If the offer requires specific plans, select them under Eligibility.
  3. Optionally set a Schedule, then save.
  4. Confirm that the discount is Active before launching. If it is inactive, click Activate in Firmhouse.

4. Create the code

  1. Go to Discount codes → Create discount code.
  2. Enter the code customers should use and its total usage limit.
  3. Under Discount to apply, select the Manual Buy X, get Y discount you saved.
  4. Save the code.
For more details, see Manage discount codes.

5. Test Shopify checkout

  1. Add the qualifying products to the cart.
  2. Add the gift as a one-time purchase.
  3. Go to checkout and enter the code.
  4. Confirm that the gift line is free and that other products receive only the discounts you intended.
  5. Test a cart that does not meet the required quantity.
If Shopify accepts the code but does not apply it, check that the gift is in the cart, the cart meets Customer buys, the gift matches Customer gets, and the discount is active and synced to Shopify. If the discount applies without a code, check that it is set to Manual.