---
title: "Buy one product, get a discount on others"
description: "Give a discount on a collection only when a specific product is in the cart, for example \"buy a beanie, get 20% off accessories\"."
url: https://jxngqfpxd.us.gleap.help/en/articles/34-buy-one-product-get-a-discount-on-others
collection: "Recipes"
updated: 2026-11-06
language: en
---

# Buy one product, get a discount on others

Give a discount on a collection only when a specific product is in the cart, for example "buy a beanie, get 20% off accessories".

**In short:** Add a Global Condition **Product In Cart** **Contains** the product the customer must buy, then a **Product Discount** targeting the items that should be discounted.

## Example

Buy a Merino Beanie, get 20% off the Accessories collection.

## Steps

1.  Click **Create discount**.
    
2.  In **Global Conditions**, click **Add Condition**. Set **Field** to **Product In Cart**, keep **Contains**, click **Browse** and pick the Merino Beanie.
    
3.  Click **Add Discount Type**. Enter `20` in **Percentage**, set **Target** to **Specific Collections** and pick Accessories.
    
4.  Click **Save discount**.
    

![Global Conditions with Product In Cart contains Merino Beanie](https://staticfiles.us.gleap.ai/p6ae440349b260bc5e19963ea/WcR9H93SdtwC3Hng7fHLsGwRLIMcyP8T2QT2w8YVx4SHIuSW0UiXjUh11Z2R1POgNO5gpKY3I6q.png "Global Conditions with Product In Cart contains Merino Beanie")

## What the customer gets

-   Beanie and a $30 tote bag from Accessories: 20% off the tote, $6 saved.
    
-   A tote on its own: no discount.
    

## Good to know

-   If the product the customer must buy is also in the discounted collection, it gets the discount too. In this example, if the beanie is in Accessories, it's 20% off as well. Target specific products instead to leave it out.
    
-   To also make the beanie cheaper, add another product discount targeting it.
    
-   **Product In Cart** can't be added to a product or order discount's own conditions, only to Global Conditions and shipping discounts. For two separate "buy X" offers, create two discounts.

## Related

- [A different discount for each collection in one code](https://jxngqfpxd.us.gleap.help/en/articles/26-a-different-discount-for-each-collection-in-one-code.md)
- [Spend $100, get 20% off and free shipping](https://jxngqfpxd.us.gleap.help/en/articles/27-spend-dollar100-get-20percent-off-and-free-shipping.md)
- [Buy more, save more: quantity tiers (buy 2, 3 or 4)](https://jxngqfpxd.us.gleap.help/en/articles/28-buy-more-save-more-quantity-tiers-buy-2-3-or-4.md)
- [Spend more, save more: spending tiers](https://jxngqfpxd.us.gleap.help/en/articles/29-spend-more-save-more-spending-tiers.md)
- [Free shipping only when the cart has discounted products](https://jxngqfpxd.us.gleap.help/en/articles/30-free-shipping-only-when-the-cart-has-discounted-products.md)
