Buy X get discount for Y automatically in a cart

Topic summary

Goal: Set a rule “Spend at least X on products from Vendor A → Product Y gets a discount and is auto-added to the cart.”

Platform limits: Shopify’s native discounts (e.g., BOGO = Buy One Get One) don’t support auto-adding paid items or partial discounts by default. Shopify also avoids auto-adding items without customer interaction, so this usually requires theme customization (AJAX cart API/events) or apps.

Caution: One response advises against auto-adding non-free items without consent; consider a cart message/upsell explaining the earned discount and letting the customer add Y with one click.

App options mentioned: SellEasy – Bundles & Upsell (vendor spend threshold, auto-add Y, partial discount). BOGOS (Buy X Get Y; claims it can auto-add Y and apply a discount; includes setup screenshots). CartSprinkle claims to support this scenario. Generic cart upsell or post‑purchase upsell apps can show Y with a discount for quick add.

Implementation tips: Use a collection to represent the vendor condition; combine a small cart snippet for auto-add with Shopify Functions for discount logic.

Status: No final decision; several app-based paths or custom build remain viable.

Summarized with AI on November 26. AI used: gpt-5.

Hey,

Is there any way to create a discount with the following conditions:

  • A customer spends a minimum amount on products from a specific vendor and then gets a discount on product Y.

Shopify’s default BOGO is great, but I need product Y to be added to the cart automatically.

I couldn’t find anything like this — every app only offers something like “meet the conditions and get a FREE gift.” I don’t want to give a free gift; I want to apply a discount to a product.

Could you help me? :wink:

2 Likes

Hi @BartGal For the vendor condtion just make it a collection of that vendors products for the discount condition.

Shopify avoids baking in features to auto add anything to a persons cart without that customers interaction.
So it’s an advanced theme customization or apps.
For themes just use the ajax api and or any relevant theme events to know when the cart has the items for the condition.
https://shopify.dev/docs/api/ajax/reference/cart

If your not code savvy you can reach out to me for theme customization services
:speaking_head: :postbox: Click profile-pic on forums for options to connect, ALWAYS provide context/reference in all new communications.

Oh I wouldn’t try that… automatically adding an item to a customer’s cart that’s not free, without their consent, I would stay away from that… at most put some graphic explaining the buy x get y discounted. Could even be on the cart page. Like “congrats you’ve earned a discount on y”

1 Like

Hi,

I would suggest that you can use one cart upsell apps that show the product with discount in the cart drawer and customer can easily add by a single click.

or you can use a post purchase upsell app that shows the offer post customer’s checkout and adds the product to the existing order. I have an app - PPS Post Purchase Upsell - PPS Post Purchase Upsell - Increase AOV with Checkout Upsell | Shopify App Store that does this and can help you set it up.

Hey there, I just launched my app CartSprinkle that does just this. You simply build discounts within the app and if you want, you can add to cart automatically or via our “Gift Hub”. Check it out, it’s free through BFCM too!

Let me know if you have any feedback and best of luck to you!

If you want something like “Spend X on Vendor A, then Product Y gets automatically added with a discount” yes, it’s possible, but Shopify can’t do this by default.

The easiest app that supports all this is SellEasy – Bundles & Upsell.
It allows you to:

  • Set a minimum spend on a specific vendor

  • Auto-add Product Y

  • Apply a partial discount (not zero)

Most other apps only do free gifts, but this one works.

If you ARE on Shopify Plus

Then you’re in luck, you can do this natively with:

  • Shopify Functions for the discount logic

  • A tiny cart snippet to auto-add Product Y

You can build this promo, but Shopify won’t let you do it out of the box.
Use an app (SellEasy), or Shopify Plus if you have it. Happy to help anytime! :blush:

Hi,

To achieve exactly what you need, I recommend using a third-party app designed for free gifts, such as BOGOS App.

With the Buy X Get Y feature in BOGOS, you can set a condition where a customer spends a minimum amount on products from a specific vendor and then receives a discount on product Y. The product Y will also be added to the cart automatically.

Here’s a quick setup guide in BOGOS App:

You can start to try BOGOS for FREE here!