> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revize.app/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Revize is a Shopify app by Untechnickle for self-service order editing and upsells. Customers edit their existing order from the Shopify Order status page within the merchant's editing window.
> For the Shopify upsell playbook and a comparison of checkout, Thank you, Order status and email offers, start at https://docs.revize.app/guides/increase-average-order-value. Revize Pro includes upsells. Checkout offers and free shipping bars also require Shopify Plus.
> For Shopify integrations, start at https://docs.revize.app/integrations/index. The integration guides specify whether an app connects directly, works through the existing Shopify order, or uses Shopify Flow.
> For 3PLs, warehouse apps, and ERPs, see https://docs.revize.app/integrations/fulfillment for provider-specific workflows using Shopify order tags, delayed payment capture, or fulfillment holds.
> The public documentation is at https://docs.revize.app. For current public pricing and plans, see https://apps.shopify.com/revize. Find the cancellation API guide at https://docs.revize.app/features/cancellation-api.
> To test Revize with selected customers on a live store, see https://docs.revize.app/setup/test-mode. For the Shopify draft-order walkthrough, see https://docs.revize.app/how-to-test-revize.

# Keep Shopify app discounts when customers edit an order

> See how Revize recreates promotions from Shopify discount apps such as BOGOS, Kaching Bundles, and Discounty so gifts, quantity breaks, and spend thresholds recalculate when customers edit orders.

> [!NOTE]
>
> Revize works with **all Shopify discount apps**, including promotions built with custom Shopify Discount Functions. Your app applies the offer at checkout. The Revize team recreates that offer in **Discount rules** so the same products, thresholds, and savings apply when a customer edits the order.

On [Revize Pro](https://docs.revize.app/support/billing.md), the team can set up product, order, shipping, and bundle discounts in the live rule editor. Merchant access to the editor is coming. Once a rule is active, customers see the recalculated prices and order total before they confirm an edit. Revize saves the confirmed changes to the original Shopify order.

## Find the offer you use at checkout

| Example checkout promotion | What the Revize team recreates |
| - | - |
| **BOGOS** gift with purchase | A **Product** rule identifies the gift line, checks what qualifies the order, and discounts the allowed number of gift units. [BOGOS on Shopify](https://apps.shopify.com/freegifts) |
| **Kaching Bundles** quantity break | A **Bundle** rule groups the eligible items and assigns a price or percentage at each quantity tier. [Kaching Bundles on Shopify](https://apps.shopify.com/bundle-deals) |
| **Discounty** spend-based offer | An **Order** rule matches the discount name on the Shopify order, the minimum qualifying subtotal, and the savings. If the campaign edits catalog prices, check the unit price before setting up a discount. [Discounty on Shopify](https://apps.shopify.com/discounty-bulk-discount-sales) |

## Recreate your promotion in Revize

**1. Open the offer that produced the discount**

Open the campaign in your discount app or in **Shopify admin → Discounts**. Note whether it applies automatically or by code. Keep a qualifying Shopify order handy so you can see the discount name, the items that received it, and the amount actually taken off.

**2. Set the result for each direction of an edit**

Send [Revize support](https://docs.revize.app/support/contact.md) the campaign settings or a screenshot and one example of an edit that changes the offer. Include which items count toward the threshold, which receive the reward, exclusions, and quantity limits. If the campaign applies only to certain markets, customers, or dates, or combines with another code, include those settings too.

**3. Configure the promotion in the Revize dashboard**

In [Discount rules](https://docs.revize.app/setup/discount-rules.md), the team creates the corresponding rule, selects its type, and enters the qualifying conditions and reward. For an order discount, the team uses the full discount name as it appears on the Shopify order. For a product gift, the team identifies the reward item itself. If a custom Function uses data held in another app, such as a loyalty balance, share how it determines eligibility so the team can check what is available during an edit.

**4. Check what the customer sees and what Shopify saves**

Test an order at the exact threshold, then edit it just below and back above. Compare the discount on each affected line, the merchandise total, and the balance in the Revize preview with the saved Shopify order. If the offer includes free shipping, also check the selected method and delivery charge. The separate [Shipping rules](https://docs.revize.app/setup/shipping-rules.md) editor controls which delivery rates the customer can choose.

## Worked examples

### How a BOGOS gift changes when a customer removes the qualifying item

Suppose your BOGOS offer gives the customer one free pouch when they buy a serum. The serum costs \$40 and the pouch normally costs \$15. Here’s how the team translates that campaign into a Revize rule.

| Setting in Revize | Value for this offer |
| - | - |
| Rule type | **Product** |
| Qualifying condition | The edited order contains at least one unit of the qualifying serum. |
| Reward items | Select the pouch product. If customers can also buy the same pouch at full price, match the gift line using the line-item attribute from a qualifying order, when the checkout app supplies one. |
| Discount and limit | **100% off** the gift line, up to **one unit**. Keep the gift line at its regular price if the condition is lost. |

**What the customer sees.** An order with a \$40 serum, a \$20 cleanser, and the free pouch has a merchandise total of \$60. If the customer removes the serum and keeps the pouch, the cleanser stays at \$20 and the pouch returns to \$15. The edited merchandise total is **\$35**, a decrease of **\$25**. Test a second order where the serum stays and only the cleanser is removed. The pouch should still be free.

![Removing a \$40 serum from a \$60 order restores the pouch price to \$15, leaving a \$35 total.](https://mintcdn.com/revize/fO0gpZzV3rO1cWHo/images/changelog/changelog-gift-rule.jpg?fit=max\&auto=format\&n=fO0gpZzV3rO1cWHo\&q=85\&s=0aa8843f74eb3fa2c8d09bd457128df4)

### How Kaching Bundles quantity breaks change after an edit

Suppose a Kaching offer gives **10% off two eligible tees** and **20% off three or more**. Each tee costs \$25, and sizes can be mixed. In a **Bundle** rule, the team creates a group for the eligible tees, measures it by **product quantity**, and counts all items in that group together. The team applies both percentage tiers to the tees in that group. If the original offer requires three of the *same variant*, the rule counts each variant separately.

| Customer action | Calculation on eligible tees | Merchandise total |
| - | - | - |
| Buys three tees at checkout | 3 × \$25 at 20% off | **\$60** |
| Removes one tee during editing | 2 × \$25 at 10% off | **\$45** |
| Adds the third tee back | 3 × \$25 at 20% off | **\$60** |

To check the product selection, add a full-price accessory to the two-tee order. The tees should stay at 10% off and the accessory should keep its regular price.

### How a Discounty minimum-spend offer changes after an edit

Suppose Discounty gives **\$10 off orders of \$100 or more**. In an **Order** rule, the team matches the discount name from the Shopify order, sets the qualifying subtotal to **at least \$100**, and enters a **fixed amount of \$10**. At exactly \$100 of qualifying merchandise, the customer pays \$90 before tax and shipping. If an edit removes a \$5 item, the subtotal falls to \$95, the discount drops away, and the new merchandise total is **\$95**. The preview shows a **\$5 increase**, even though the customer removed an item.

If the campaign instead changes a shirt’s catalog price from \$50 to \$40, check the unit price on the saved order. A shirt already sold for \$40 has received the sale price. Applying another 20% discount would bring it down to \$32.

## Frequently asked questions

> [accordion] How does this work with a custom Shopify Discount Function?
>
> Your Function calculates the original checkout promotion. During an edit, Revize evaluates the equivalent rule against the updated items and order details. For example, it can recalculate which quantity tier applies when a customer removes a shirt. Shopify describes the checkout behavior in its [Discount Function reference](https://shopify.dev/docs/api/functions/latest/discount).

> [accordion] Does installing a discount app automatically copy its campaigns to Revize?
>
> Keep managing the checkout campaign in its original app. Tell Revize which promotions need an equivalent rule after checkout. When you change a threshold, add a tier, or end a campaign, update the matching Revize rule as well.

> [accordion] Can a customer enter a code they forgot at checkout?
>
> Yes. Enable [Apply discounts](https://docs.revize.app/features/apply-discounts.md) for eligible orders so the customer can enter the code in the order editor. If your app generated a batch of codes, use a valid code from that batch and test its underlying offer.

> [accordion] Will a free gift be added when an edit takes the order over the threshold?
>
> Discounting a gift line and adding a new product are separate actions. For a gift already on the order, test its price in both directions. If you also want a missing gift inserted or an existing gift removed, share that requirement with Revize when setting up the promotion.

> [accordion] What if the app discount can combine with another code?
>
> Record the combination settings on both promotions. Test the same pair at checkout and on an edited order. Compare the discount on each line, the order discount, and the delivery charge. See [Shopify's discount combination settings](https://help.shopify.com/en/manual/discounts/discount-combinations).

## Related guides

* [Set discount rules for order edits](https://docs.revize.app/setup/discount-rules.md)
* [Recreate Checkout Blocks discounts and delivery rules](https://docs.revize.app/integrations/shopify-checkout-blocks.md)
* [Handle payments and refunds when an order total changes](https://docs.revize.app/setup/payments-and-refunds.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.