What this setting does
Discount revalidation checks the edited order against the discount codes and automatic promotions that Shopify would apply now. Use it when changing products, quantities, or subtotal can change promotion eligibility.
Order Editing compares the discount gains and losses produced by the recalculated cart. It offers a replacement only when the supported net result is better for the customer.
For example, if a new promotion would save $50 but recalculation would remove an existing $10 line-item discount, the net improvement is $40. If a new $60 saving would remove an existing $600 discount, Order Editing does not advertise the $60 as an improvement.
Before you begin
- Confirm Order Downgrades are available when losing a discount can reduce the final order value.
- Grant the discount permission shown under App permissions.
- Identify the important discount types used by the store, including automatic discounts and Shopify Functions.
- Use a controlled order whose original discount and qualifying conditions you know.
Turn on discount revalidation
- Open Apps > Order Editing > App Settings.
- Select Editing blocks.
- Open Post-Purchase Discount Codes.
- Find Discount Revalidation.
- Turn on Recalculate discount codes eligibility.
- Grant the requested Shopify permission if required.
- Save the settings.
The setting applies to the editing experience as a whole. It is not configured separately for each code.
What happens after an edit
Before saving a customer's changes, Order Editing checks the edited products and totals against Shopify's current promotion result.
- A discount that remains eligible stays on the proposed order.
- A discount that is no longer eligible can be removed, with the customer shown the resulting change before saving.
- A newly available supported discount can be offered when its gain is greater than any supported discount allocation that must be replaced.
- A result that cannot be applied safely is withheld instead of being shown as a saving the final order cannot reproduce.
The final outcome still follows the promotion's Shopify configuration and any Shopify Function involved.
Shipping-discount allocations are not replayed as line-item adjustments. Replacing a shipping line would change the delivery service rather than simply move a product discount, so those cases can be excluded from an improvement offer.
Why an ORDEREDITING- code can appear
Shopify can reject an originally valid code during recalculation because it was first-order, one-time, customer-limited, or usage-limited and has already been redeemed.
For supported amount-off and Buy X Get Y promotions, Order Editing can create a short-lived ORDEREDITING- mirror so Shopify can reproduce the customer's original saving on the comparison cart. The mirror does not give the customer a second discount.
See Why Order Editing Creates Discount Codes in Shopify before deactivating one.
Test the result
- Place or find a controlled order that qualifies for the discount.
- Open the customer editing experience.
- Remove or replace a qualifying product, change quantity, or cross the promotion's subtotal threshold.
- Continue to the order summary.
- Confirm the warning, removed discount, new saving, and net total are understandable.
- Save the edit.
- Open the order in Shopify admin and confirm the final allocations and totals.
- Repeat with an edit that should keep the original discount.
- Test automatic promotions and app-provided Shopify Functions separately.
Use real promotion conditions. Do not rely on a single percentage code to prove Buy X Get Y, automatic, shipping, or custom-function behaviour.
Troubleshooting
The control or permission is unavailable
Review App permissions on the same page and grant the requested discount access. The staff member approving it needs the appropriate Shopify authority.
A discount remains after an ineligible edit
Confirm revalidation is enabled and saved. Reproduce the exact promotion and check whether a custom Shopify Function or another app controls eligibility.
A new saving is smaller than expected
Review discounts lost from the original order as well as discounts gained on the comparison cart. Order Editing reports the net improvement rather than adding the new saving while ignoring an allocation that must be removed.
No improvement is offered
The recalculated result might be worse overall or might require an unsupported mutation, such as replaying a shipping discount. Review the original and comparison allocations before treating this as an error.
When contacting support, include the order number, discount title or code, promotion type, original cart, edited cart, and test time.



