How to test a Shopify discount code before sending a campaign
Keep the email draft open beside your store. Use the exact code, items and shopper country from the offer.
Start with two carts
Price the featured item in a fresh guest cart. Record the merchandise subtotal and any automatic saving. Build a second cart with the same items, quantities and market, then add the campaign code. Compare the discount lines before shipping and tax. A green “applied” label alone does not tell you how much extra the shopper saved.
For example, an email promises 20% off a $100 item in the US. The expected saving is $20. If the code takes off $15, the shopper is $5 short. If it takes off $20 but replaces an automatic $10 discount, the code accounts for $20 and the additional saving is $10. Check which promise your copy makes.
Challenge the limits in the offer
| If your email says… | Try these baskets | What to check |
|---|---|---|
| “Buy two eligible items” | One eligible, two eligible, then one eligible plus an excluded item. | Only the two eligible items should unlock the saving. |
| “Spend $100 on winter gear” | Use eligible merchandise just below and at or above $100. Add an excluded item to the below-minimum cart. | Only eligible spend should qualify. Use available prices and record the actual subtotal tested. |
| “Full-price items only” | Test the excluded sale item alone, then alongside a full-price item. | Open the line breakdown. The sale item should receive none of the campaign discount. |
| “Stacks with your loyalty code” | Try the loyalty code alone, then both codes together on the same products. | Both should remain applicable and the shopper should receive the advertised additional saving. |
Shopify considers each discount’s combination settings and can choose the best eligible discount when codes compete. Shopify’s guide to discount combinations
Test a members-only discount
For a Gold-tier offer, put the same $100 item in three fresh baskets: one for a Gold member, one for a signed-in customer below Gold, and one for a guest. If the offer is 15% off, record which basket receives the $15 saving at checkout. Shopify can show a saving in an anonymous cart even when the native rule restricts it to a customer segment. Enter each test buyer’s details at checkout before recording the result.
For first-order offers, include a returning test customer who has never used the code. A limit of one redemption per customer can still let that customer redeem it. For an email-subscriber offer, check marketing consent separately from a recurring product purchase.
Test the parts that depend on checkout
For free shipping, use a qualifying address, delivery method and cart value. For a customer-only offer, sign in as an eligible test buyer and compare with a guest. For buy X get Y, put both the required items and the reward item in the basket. Use a development store and Shopify’s test payment gateway when the test needs a completed order. Shopify’s test order instructions
Check again at send time
A scheduled code can be configured correctly and still be inactive when the email lands. Check the start time and store timezone, repeat the cart after activation, and keep the result with the campaign. Tillrook can schedule a guest-cart recheck and show which savings or outcomes changed. See Promotion Checker