Skip to content

Testing with Cart Preview

The Cart Preview lives in the right rail of the rule editor (on a narrow screen it moves below the editor) — no save-and-reload, no separate view. Add a few products, tweak a tier, and the discount applies in real time using the same engine that runs your live store.

Rule editor for a Spend & Save discount with the Cart Preview right rail beside it: a two-item sample cart, the spend-more nudge, the discount line and the estimated total

Cart Preview runs the real discount engine against a simulated cart. It’s not an approximation — the same code that evaluates customer carts in your live store evaluates the preview cart.

To use it:

  1. Open any discount in the rule editor, or create a new one. The preview evaluates the discount you’re editing — its heading reads Applying <name> (draft) — including edits you haven’t saved yet
  2. Click Add Product From Store to search your catalogue, or Add Custom Item to type a name and price. You can also open Sample carts and click a saved cart to load it
  3. Change quantities or remove items, and the totals update as you go
  4. Use Customer Scenario below the totals to test targeting: Customer role (defaults to — Guest —), Past orders, Total spent, Days since last order, Simulate date, Simulate time, Currency, Country, and Coupon codes

The Discounts tab has the same Cart Preview in its right rail. There it applies all active discounts together, so you can check how they combine.

Start simple — add the products your discount is meant to apply to and confirm the discount fires and the amount is correct.

For tiered discounts (Spend & Save, Volume), test each tier boundary:

  • Just below the threshold — discount should not apply
  • Exactly at the threshold — discount should apply
  • Above the threshold — correct tier should apply

For example, if you have “spend £50 → 10%, spend £100 → 15%”, test carts at £49, £50, £99, and £100.

If your discount targets particular items (Cart contains matching items in What triggers it?, or What the discount applies to in Rewards), test both sides:

  • A cart with only qualifying products → discount applies
  • A cart with only non-qualifying products → no discount
  • A mixed cart → discount applies only to qualifying items (for product-level discounts)

Cart Preview starts as a guest shopper. If your discount targets customers in Who is this for?, pick a Customer role and fill in Past orders, Total spent or Days since last order to match the shopper you want to test. Leave a past-customer field empty to use the real customer’s value, or type 0 to simulate a first-time customer.

To test a discount from When does it apply?, set Simulate date and Simulate time. Left blank, they use today and the current time in your store’s time zone.

Type the code into Coupon codes in Customer Scenario. Each code shows as a pill; one that won’t apply is marked — for example no such coupon or coupon is inactive. For a bulk coupon, pick one of its generated codes from the list: the seed code itself never applies.

Cart Preview shows:

ElementWhat it tells you
Discount lineEach discount that applied, with its cart label and amount (a DRAFT tag marks one with unpublished changes)
Line itemsA Discounted by … or Free — … tag on items a discount touched
Spend-more nudgeThe nudge text, while the cart is below the discount’s next tier
Total Savings / Estimated TotalThe total discount and the final total (plus a Tax row on stores that show prices excluding tax)

Below the totals and Customer Scenario, Why this cart looks like this lists what was Applied to this cart and what Did not apply, with the reason — for example that the cart total doesn’t meet the threshold, or the date is outside the schedule.

SymptomLikely cause
Discount doesn’t fireTargeting conditions not met — read Why this cart looks like this, then check the thresholds and Cart contains matching items in What triggers it?
Wrong discount amountTier boundary off by one — check threshold values in Rewards
Spend-more nudge doesn’t appearInclude in spend-more nudges isn’t ticked in this discount’s Messaging section (it starts unticked), nudges are switched off in Message Settings, or the cart already meets the top tier
Discount applies to wrong itemsThe item sets include more than intended — review What the discount applies to in Rewards and the item sets in What triggers it?
Cart label shows default textCustom label not saved — Dino auto-generates a label from the discount type when no custom label is set

Once Cart Preview confirms your discount behaves as expected:

  1. Click Save Draft (or Done for an existing discount) to return to the Discounts tab
  2. Click Publish changes in the You have unpublished changes banner
  3. Review the What goes live summary
  4. Click Publish changes in the modal

WooCommerce is a trademark of Automattic, Inc. WordPress is a trademark of the WordPress Foundation. Dino Discounts is not affiliated with or endorsed by Automattic or the WordPress Foundation.

Contact · Report a bug