Navigating Gift With Purchase: How to Offer Free Gifts After Discounts on Shopify

Hey everyone! I recently stumbled upon a really common and super important question in the Shopify community that I just had to dive into. It came from DavidWard1, who was trying to figure out how to offer a free gift with purchase based on the cart total after all those lovely automatic discounts and coupon codes had been applied. If you’ve ever run promotions, you know this can be a real head-scratcher!

David’s current app, "EG Auto Add to Cart," wasn't quite cutting it because it only looked at the subtotal before any reductions. And let’s be honest, you want your customers to feel like they’re truly earning that gift based on their final spend, right? Not on a price they might not even be paying.

The Challenge: GWP Based on Final Cart Value

This isn't just David's problem; it's a recurring theme I see. Many standard gift-with-purchase apps calculate eligibility using the cart's initial subtotal. But with all the dynamic discounts we run these days – automatic discounts, tiered pricing, manual coupon codes – the final cart value can look very different. The goal is to ensure your GWP logic is robust enough to handle these fluctuations and keep your customers happy, while also protecting your margins.

App Solution: BOGOS: Free Gift Bundle Upsell

One of the most promising solutions that popped up in the thread came from Ellie-BOGOS, who confidently recommended their app, BOGOS: Free Gift Bundle Upsell. Ellie provided some fantastic, detailed examples and setup instructions that really address David’s specific pain points. Let’s break down how it tackles the two main scenarios:

Scenario 1: Cart Total Crosses Threshold AFTER Automatic Discounts

This is the primary ask: ensuring the gift is only added if the final cart total (after any automatic discounts) meets your set threshold. Ellie explained that BOGOS evaluates the condition based on the final cart total. Here’s how it works in practice:

  • If a customer's subtotal starts above, say, $250, but after automatic discounts, it drops below $250, they won’t receive the gift.
  • Conversely, if the subtotal is over $250, and even after automatic discounts, the total is still over $250, then your customer will receive their gift. This is exactly what we want!

Ellie even shared some great visuals to illustrate this:

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

  1. Go to the BOGOS app dashboard.
  2. Select “Create Spend X amount to get gift(s)”.
  3. Set your desired cart value minimum (e.g., $250).
  4. Select the products that qualify for the promotion.
  5. Set the gift's discount to 100%.
  6. Select the specific gifts you want to offer.
  7. Publish your offer.

Here’s a peek at the setup interface:

Scenario 2: Gift Removed if Checkout Discount Drops Total Below Threshold

This is a slightly more advanced scenario, but equally important for maintaining promotion integrity. What if a customer qualifies for a gift in the cart, but then applies an additional discount code at checkout that pushes their total below the GWP threshold? BOGOS also handles this:

  • If the cart initially qualifies (e.g., >$250) and the gift is added.
  • Then, at checkout, the customer enters another discount code, and the total drops below $250.
  • The gift will automatically become invalid and won't be applied to the order.

This ensures you're not giving away freebies when the customer hasn't met the true final spending requirement. Ellie again provided images to show this before/after effect:

Setting up the 'BOGOS: Checkout Upsell' Block (Shopify Plus required):

Just a heads-up, for this specific functionality where the gift adjusts at checkout due to another discount code, you’ll need to be on Shopify Plus. This is due to Shopify's rules around checkout extensibility.

  1. From your Shopify admin, go to Online Store.
  2. Click Edit theme.
  3. Add the “BOGOS: Checkout Upsell” block to your theme.
  4. Save your changes.

Here’s what that looks like in the theme editor:

Considering Custom Code

While apps offer fantastic out-of-the-box solutions, it's always good to know there are other avenues. Prithvi_RAj chimed in, confirming that this kind of logic is absolutely possible through custom code. If you have highly unique requirements, or perhaps you're already working with a developer for other custom features, a bespoke solution might be a good fit. This involves adding custom logic to your store's theme or scripts to check the cart total after all discounts and then dynamically adding or removing the free gift.

Expert Tips for Choosing ANY Gift-With-Purchase App

Beyond specific app recommendations, berkbelcioglu offered some truly invaluable advice for anyone looking into a GWP app. These are the critical questions you should be asking any app vendor (or yourself, if you’re coding it!):

  1. Discount Impact: Does the gift threshold consider the subtotal before or after discounts? (This is David's core issue!)
  2. Discount Compatibility: Does it play nicely with both automatic discounts and manual discount codes?
  3. Cart Modifications: What happens if a customer removes items from their cart *after* the gift has already been added?
  4. Dynamic Removal: Can the gift be automatically removed if the cart total drops below the threshold (like Ellie described for Shopify Plus)?
  5. Shopify Functions: Does it work with Shopify Functions-based discounts, which are becoming more prevalent?

Berkbelcioglu also stressed the importance of thorough testing. Before you roll out any new promotion, especially one with complex discount logic, always test the full cart flow in a duplicate theme or a dedicated test product setup. It’s a small step that can save you a huge headache later!

So, there you have it. The community really came through on this one! It’s clear that while setting up a gift-with-purchase based on the final cart total after discounts can be tricky, it’s definitely achievable. Whether you go with a robust app like BOGOS, explore a custom code solution, or just use berkbelcioglu’s checklist to vet other apps, you’ve got options. The main takeaway is to ensure that the app’s logic aligns perfectly with your promotion rules, and always, always test!

Share:

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools