Discounts & Shopify Functions
Order discount function
A generic % / $ off function used by post-purchase accept and some legacy reward configurations.
This article is a draft and may be incomplete or change before publishing.
A generic Shopify Function that applies a percentage or fixed-amount discount to the order total.
Where it's used
- Post-purchase accept flow — When a buyer accepts a post-purchase upsell, the offer's discount is applied via this function.
- Some legacy reward configurations — Older tier setups that used dedicated functions before the unified function shipped.
How it differs from the unified function
The unified function evaluates many discount types in one pass. The order discount function is single-purpose — it just applies the % / $ off you ask it to.
Do I need to manage this
No. The app deploys and updates this function automatically. There's nothing to configure — it serves the post-purchase flow under the hood.