Recalculate Discount Codes prevents discount abuse during order editing. When enabled, Order Editing verifies that discount codes still apply after a customer modifies their order, ensuring customers can't remove items to game a discount they no longer qualify for.
You'll find this at Settings > Recalculate Discount Codes.
💡 Tip: We recommend enabling this for all stores. Without it, a customer who used a "Buy 2 Get 10% Off" code could remove one item but keep the 10% discount on the remaining product.
Toggle Recalculate discount codes eligibility to enable this feature. When turned on, every time a customer edits their order, Order Editing checks whether their discount code still applies to the modified order contents.
If the edited order no longer meets the discount code's conditions (for example, the customer removed the qualifying product or dropped below a minimum spend threshold), the discount is automatically removed or adjusted.
✅ Compatibility check: The settings page shows a verification status confirming whether Order Editing can accurately recalculate discount codes for your store. Look for the green checkmark with "Order Editing can accurately recalculate discount codes eligibility."
When a customer edits their order and the feature is enabled, Order Editing runs the discount code's conditions against the updated order. This happens automatically in the background, the customer doesn't need to re-enter any codes.
Common scenarios where recalculation matters:
Minimum quantity discounts. A "Buy 3, Get 15% Off" code is applied at checkout. The customer removes one item during editing, dropping to 2 items. The 15% discount is automatically removed.
Minimum spend thresholds. A "$10 off orders over $75" code is applied. The customer removes an item, bringing the total below $75. The $10 discount is removed.
Product-specific discounts. A code gives 20% off a specific product collection. The customer swaps the qualifying product for one outside the collection. The discount is removed.
Without discount recalculation, order editing creates a loophole. A customer could place an order with extra items to qualify for a discount, then immediately edit the order to remove those items while keeping the discount applied. This effectively gives them a discount they shouldn't have.
With recalculation enabled, Order Editing closes this gap by re-validating discount eligibility after every edit. The customer still gets the benefit of self-service editing, but your discount rules are enforced consistently.
Order Editing supports recalculation for standard Shopify discount codes, including percentage discounts, fixed amount discounts, and free shipping codes with conditions. The compatibility check on the settings page confirms whether your specific discount setup is supported.
This setting specifically applies to discount codes (codes the customer enters at checkout). Automatic discounts (discounts applied automatically based on Shopify rules) are handled separately by Shopify's own discount engine.
Yes, customers are informed during the editing experience if their discount code no longer applies to the modified order. This transparency helps avoid confusion and support tickets.
No, this is a global setting that applies to all discount codes. When enabled, every discount code is re-validated after an order edit. If you need certain discounts to persist regardless of edits, you'd need to disable this feature entirely.