OxifyOxify
Discounts & Shopify Functions

Migrate from legacy to unified

One-click migration from legacy per-type discount functions to the unified function.

This article is a draft and may be incomplete or change before publishing.

If you installed Oxify before unified function support shipped, you have legacy per-type functions running. Migrate to the unified function to avoid the 5-function-per-cart limit and get cleaner stacking.

How to migrate

Open Settings → Discounts → Migrate to unified function. The migration:

  1. Reads all your legacy auto-discounts.
  2. Recreates them as a single unified function call.
  3. Deletes the legacy auto-discounts.
  4. Reports any failures.

Idempotent

Running the migration twice is safe. The script detects already-migrated discounts and skips them.

What gets migrated

  • Free gift reward tiers
  • FBT offers
  • Volume discount rules
  • Cart upsells

What doesn't change

  • Manual discount codes you created in Shopify admin (those aren't Oxify-managed).
  • Other apps' discounts (untouched).
  • Customer-facing experience — the cart looks identical before and after.

After migrating

Test in an incognito window. Confirm a sample cart still gets the expected discounts.

On this page