Mastering Shopify Gift with Purchase: How to Offer Free Gifts After Discounts

Hey there, fellow store owners! Let's talk about something that often trips up even the most seasoned Shopify merchants: offering a 'Gift with Purchase' (GWP) that truly makes sense for your bottom line. We recently had a great discussion in the community, sparked by DavidWard1, asking about an app that could handle GWP based on the cart total after all those juicy automatic discounts and coupons are applied.

It's a common scenario, right? You want to reward loyal customers, encourage a higher average order value, or move some inventory with a free gift. But if that gift triggers based on the original, full-price subtotal, and then a customer applies a 20% off coupon, your margins can take an unexpected hit. David was using an app that just didn't cut it, calculating the threshold before discounts, and he wasn't alone in wanting a more intelligent solution.

The Tricky Business of Post-Discount GWP

As berkbelcioglu pointed out in the thread, this is a genuinely tricky requirement. Many GWP apps out there calculate eligibility based on the subtotal before any discounts hit. This means a customer could have a cart value of $300, get a gift, then apply a $100 coupon, and suddenly your $250 threshold is breached, but they still walk away with the gift you intended for a higher-value purchase. That's not ideal for profitability!

Community Solutions: Apps and Custom Code

The good news is, our community stepped up with some solid answers, offering both app-based and custom-code solutions.

Option 1: The App Route (BOGOS: Free Gift Bundle Upsell)

Ellie from BOGOS: Free Gift Bundle Upsell chimed in, confidently stating their app can handle this scenario perfectly. And after looking at their explanation, it seems like a strong contender.

How BOGOS Handles GWP After Automatic Discounts:

BOGOS evaluates the gift condition based on the final cart total after automatic discounts. This is exactly what DavidWard1 was looking for.

  • When the subtotal is >$250, but after discounts in cart, the estimated total drops to <$250 → customers don’t receive any gifts. This is key for protecting your margins!

  • When subtotal is >$250, and after discounts in cart, the estimated total is still >$250 → customers receive the gift.

Setting up "Spend X amount to get gift(s)" in BOGOS:

  1. Go to BOGOS > Create “Spend X amount to get gift(s)”.
  2. Set cart value min = $250 (or your desired threshold).
  3. Select the products that qualify for the gift.
  4. Set the gift's discount to 100%.
  5. Select the actual gift products.
  6. Publish your offer.

Dynamic Gift Removal at Checkout (Shopify Plus):

What if a customer initially qualifies for a gift, it gets added to their cart, but then they apply another discount code at checkout that pushes their total below the GWP threshold? BOGOS claims to handle this too, ensuring the gift is no longer valid and won't be applied. This feature, however, requires you to be on Shopify Plus due to Shopify's rules around checkout extensibility.

Setting up BOGOS: Checkout Upsell block (Shopify Plus):

  • Go to Online Store → Edit theme.
  • Add the “BOGOS: Checkout Upsell” block.
  • Save your changes.

Option 2: Custom Code Development

For those of you who might have very specific or complex needs, or perhaps want to avoid another app, Prithvi_RAj offered a custom code solution. He confirmed that it's absolutely possible to add logic to your store that checks the cart total after all discounts and coupons are applied, then automatically adds or removes the free gift accordingly. If you have a development team or work with a trusted Shopify expert, this could give you ultimate control over the logic.

Expert Advice: How to Choose the Right App

Regardless of whether you go with BOGOS or explore other apps, berkbelcioglu shared some incredibly valuable questions to ask any app vendor before committing. This is gold for anyone trying to navigate the app store for promotion tools:

  1. Does the gift threshold use subtotal before discounts or after discounts? (This is DavidWard1's core question!)
  2. Does it support automatic discounts and manual discount codes together? You want seamless integration.
  3. What happens if the customer removes items after the gift is added? Does the gift automatically disappear if the cart no longer qualifies?
  4. Can the gift be removed automatically if the cart falls below the threshold? This is crucial for maintaining your intended promotion logic and protecting margins.
  5. Does it work with Shopify Functions-based discounts? As Shopify evolves, new discount types emerge, and your app should keep up.

Always Test, Test, Test!

One final, but super important, piece of advice from berkbelcioglu: always test the full cart flow in a duplicate theme or test product setup before relying on it for a live promotion. Discount testing is paramount. You need to confirm the app’s threshold logic under various scenarios – adding items, removing items, applying different discount codes, reaching the threshold, falling below it. Tools like "Checkpoint: Store Scanner" can also help as a broader QA step before launching any major campaigns.

So, there you have it! The community has shown us that offering a Gift with Purchase based on the cart total after discounts is definitely achievable on Shopify. Whether you opt for a robust app like BOGOS or go the custom code route, the key is understanding the logic, asking the right questions, and thoroughly testing your setup to ensure your promotions work exactly as intended for both your customers and your bottom line.

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases