Last updated: August 2026
Should a Shopify free-gift threshold use the cart total before or after discounts? For most margin-sensitive promotions, use the amount after product and order discounts. A customer should still spend your target amount after savings to earn the gift.
There are valid reasons to use the pre-discount merchandise value instead. The right choice depends on what the offer promises, how aggressively your discounts stack, and whether the gift is an acquisition cost or a margin-protected reward.
This guide shows the difference with real cart math, explains when each method makes sense, and gives you a test plan before the promotion goes live.
Should a Shopify free-gift threshold use the total after discounts?
Usually, yes. If your offer says “Spend $100, get a free gift,” use the merchandise total after product and order discounts. This protects margin and matches what shoppers understand as spend. Use the before-discount total only when your terms explicitly allow coupons or loyalty benefits to stack.
Use the pre-discount cart value when the campaign deliberately rewards the value of products selected, regardless of a permitted coupon. Typical examples include a VIP benefit, a launch promotion advertised as stackable, or a gift funded as part of your customer-acquisition budget.
| Threshold basis | $110 merchandise value with 20% off | Gift at $100? | Best for |
|---|---|---|---|
| Before discounts | $110 | Yes | Explicitly stackable or loyalty offers |
| After discounts | $88 | No | Margin-protected spend offers |
Neither basis is universally correct. The mistake is leaving the rule undefined and discovering at checkout that your promotion behaves differently from the message customers saw in the cart.
What “before discounts” and “after discounts” mean in Shopify
A Shopify cart can expose several amounts that look similar but answer different questions. Your promotion should name the one it uses.
Before discounts means the qualifying merchandise subtotal before cart-level savings. In the Shopify Storefront API, `subtotalAmount` is the amount before taxes and cart-level discounts. Product-level discounts can complicate what shoppers see because Shopify applies product discounts before calculating the revised order subtotal.
After discounts means the qualifying merchandise value after the product and order savings that affect it, but normally before shipping, taxes, gift cards, and store credit. Gift cards and store credit are payment methods, not merchandise discounts, so they should not usually disqualify a gift.
Shopify applies combinable discounts in this order, subject to the offer's discount-combination settings:
- Product discounts apply to individual products.
- Order discounts apply to the revised subtotal.
- Shipping discounts apply last.
That order matters. A rule that evaluates in the cart can see a different amount from a rule evaluated later in checkout, especially when a customer enters a code only after leaving the cart.
Shopify free-gift threshold examples before and after discounts
Assume your gift costs $8 landed and your advertised threshold is $100.
Example 1: a percentage order discount
The customer adds $110 of qualifying products and applies a 20% order discount.
- Merchandise value before discounts: $110
- Order discount: $22
- Merchandise value after discounts: $88
A pre-discount rule awards the gift. An after-discount rule removes or withholds it until the customer adds at least $12 of post-discount value. To reach $100 after a 20% discount, the shopper needs $125 before the discount because `$125 × 0.80 = $100`.
If you award the $8 gift at $88 of net merchandise revenue, you have effectively added another 9.1% cost relative to that revenue before product cost, fulfillment, and payment fees.
Example 2: a fixed order discount
The customer adds $120 and applies a $25 code.
- Merchandise value before discounts: $120
- Merchandise value after discounts: $95
The cart qualifies before discounts but misses a $100 after-discount floor by $5. This is the clearest case for showing a progress message that updates after the code applies: “Add $5 more to keep your free gift.”
Example 3: a product discount
The cart contains a $70 full-price product and a $50 product discounted to $35.
- Original merchandise value: $120
- Revised subtotal after the product discount: $105
Shopify calculates order discounts after product discounts. If a 10% order code also combines, it applies to the revised subtotal, bringing the amount to $94.50. A rule tested only with order codes can therefore fail when a product discount and order discount appear together.
When a before-discount threshold is the better choice
Use the original or pre-discount cart value when the gift is intentionally allowed to stack with savings.
The promotion explicitly says discounts can stack
If the campaign says “Spend $100 before discounts and get a free gift,” the threshold is unambiguous. This structure can make a seasonal promotion feel generous, but price the gift and maximum permitted discount together before launch.
The gift is a loyalty benefit
A VIP customer may reasonably expect an earned coupon and a spend-based gift to work together. Treating the coupon as a reason to take the gift away can make two benefits feel like one benefit in disguise.
You reward product selection, not cash collected
Some campaigns aim to move a specific collection, introduce samples, or increase units per order. In that case, the original value or qualifying product quantity may be more relevant than the final paid subtotal. A collection or quantity condition can also express the offer more clearly than a cart-value threshold.
Discounts are small and tightly controlled
If the only stackable offer is a 5% welcome code and the gift has a low landed cost, the simpler pre-discount rule may be worth the small margin tradeoff. Model the worst allowed combination, not the average redemption.
When an after-discount threshold is the better choice
Use the discounted merchandise value when your threshold represents minimum revenue or minimum contribution margin.
The gift budget depends on collected revenue
If the unit economics support an $8 gift only when the order contributes at least $100 after discounts, evaluating the original $100 subtotal defeats the purpose of the threshold.
Your store runs large or frequent codes
A 25% sitewide promotion can turn a $100 qualifying cart into $75 of merchandise revenue. Before-discount eligibility lets the discount and gift compound, often without the merchant noticing until campaign reporting.
Customers can apply codes in checkout
A shopper can qualify in the cart, continue to checkout, and then enter a code. Your rule needs to re-evaluate at the stage where that code is known. If it cannot, the cart message should not promise that the gift is guaranteed.
You offer tiered gifts
Discounts can move a customer down a tier. A cart that starts at $155 might drop below the $150 tier after a code but remain above the $100 tier. The expected behavior is usually to replace the higher-tier gift with the lower-tier one, not leave the most expensive gift in place.
For the economics behind the number itself, compare the threshold tactic with the other levers in the Shopify AOV guide before building the rule.
How to configure the rule in AutoCart
AutoCart can evaluate a cart against either its before-discount or after-discount value. In the $110 cart with 20% off used above, you can configure the selected rule to evaluate either $110 or $88, so the storefront behavior matches the terms you publish.
- In AutoCart, select Create New Rule and choose the automation type for where the gift must appear.
- Add a cart-total condition with your threshold and operator, such as greater than or equal to $100.
- Select whether the rule evaluates the cart value before or after discounts. For the example above, confirm that the rule preview reads $110 for before-discount eligibility or $88 for after-discount eligibility.
- Select the product to auto-add and enable a 100% discount on that product if it is a free gift.
- Add a customer-facing message that states whether the threshold is calculated before or after discounts.
- Save the rule and test every discount path before promoting it.
Do not assume “cart total” means the same thing in every theme, cart drawer, app, and checkout extension. Test the selected basis in AutoCart's rule preview and on your storefront before launch.
If you also need to decide whether the gift's 100% discount can coexist with another coupon, start with the complete Shopify gift-with-purchase setup guide.
Use this six-case test before launch
Run the promotion in an incognito session and record what happens to the gift and progress message in each case.
| Test cart | Expected result for a $100 after-discount threshold |
|---|---|
| $99, no discount | No gift |
| $100, no discount | Gift added |
| $110 with 20% off ($88) | No gift or gift removed |
| $125 with 20% off ($100) | Gift added |
| $120 with $25 off ($95) | No gift or gift removed |
| $105 after product discounts, then 10% order discount ($94.50) | No gift or gift removed |
Also test the reverse path. Qualify for the gift, apply a code that drops the cart below the threshold, remove the code, and then remove a product. The gift should follow the rule in every direction rather than remain as a stale cart line.
Repeat the test in the cart drawer, cart page, standard checkout, Shop Pay or another accelerated checkout you support, and each active market currency. A correct desktop-cart test does not prove that every checkout path has the same discount context.
Common threshold mistakes
- Writing “spend $100” when the rule uses $100 before discounts. Add “before discounts” to the offer wherever it appears.
- Counting shipping or tax toward a merchandise gift. These amounts can change after the customer enters an address and should usually stay outside the threshold.
- Counting the gift itself toward qualification. Exclude the auto-added gift from the qualifying subtotal so it cannot help satisfy its own rule.
- Ignoring product discounts. Shopify applies them before order discounts, so they can lower the base used for the next saving.
- Testing only the add path. Verify that AutoCart removes or swaps the gift when a code or cart edit makes the order ineligible.
- Using a progress bar tied to a different total. The progress message and gift rule must evaluate the same amount or customers will see contradictory states.
- Forgetting combination settings. Shopify applies multiple discounts only when their combination settings allow it; otherwise, Shopify can choose the best eligible discount instead.
If several promotions can qualify at once, define which rule wins. The Shopify automation rule-priority guide explains how conditions, actions, and rule priority fit together.
Frequently asked questions about Shopify free-gift thresholds
Should a free gift threshold include shipping and taxes?
Usually no. Base the rule on qualifying merchandise value. Shipping and taxes vary by address and can change late in checkout, which makes them poor inputs for a cart promotion.
Should gift cards and store credit reduce eligibility?
Usually no. They are payment methods rather than product or order discounts. A customer paying part of an eligible order with store credit has still selected the same merchandise value.
What happens if a discount drops the cart below the gift threshold?
For an after-discount rule, the gift should be removed or replaced with the correct lower-tier reward. State this policy in the offer and make sure the rule re-evaluates after the discount applies.
Can a free gift combine with a Shopify discount code?
It can when the discounts and their classes are configured to combine. Shopify's compatibility rules still apply, and non-combinable offers can cause Shopify to select the best eligible discount instead.
What total should a progress bar display?
Display the same qualifying total used by the gift rule. If eligibility is after discounts, update the remaining amount when a product or order discount changes.
Pick one definition, publish it, and test it
The safest default is an after-discount merchandise threshold: the customer earns the gift only when the discounted product subtotal still reaches your target. Choose pre-discount eligibility when stacking is an intentional part of the offer and the combined cost fits your promotion budget.
Whichever method you choose, put “before discounts” or “after discounts” in the terms, use the same basis in the progress message, and test the rule after every active discount type. That clarity prevents surprise gift removals for customers and surprise margin loss for you.
AutoCart lets you auto-add a gift using cart and discount conditions, then remove it when the rule no longer matches—without theme edits or custom cart code.
Try AutoCart free on your Shopify store: apps.shopify.com/autocart-auto-add-to-cart

Install Now