# Best Shopify Scripts replacements for discounts

If a discount Script you are moving away from did more than one thing at once, such as 20% off products and free shipping, [OneCode: Stackable Discounts](https://apps.shopify.com/rm-combo-discounts) can rebuild it as one discount. OneCode runs as a Shopify Function, and one OneCode discount can hold product, order and shipping discounts that apply together. It doesn't import or run your Script's code, so you rebuild the offer in its editor.

A Script that gave 20% off and free shipping should give the same result after the move: $16 off an $80 cart, with nothing charged for shipping.

## Which replacement for which Script

| What the Script did | What to use |
|---|---|
| 20% off and free shipping together | OneCode, with a product discount and a shipping discount on one code. [Guide](/for/shopify-scripts.md) |
| A different percent off each collection | OneCode, with one product discount per collection. [Guide](/guides/different-percent-per-collection.md) |
| Tiers by quantity or spend | OneCode, with one discount type per tier. [Buy more, save more](/guides/buy-more-save-more.md) or [spend more, save more](/guides/spend-more-save-more.md) |
| Free shipping only over a spend or only in some countries | OneCode, with a **Cart Subtotal** or **Shipping Country** condition on the shipping discount |
| Two percentages on the same item, on Shopify Plus | OneCode's Plus option **Combine on same product with discounts tagged**, with both discounts tagged. Or make the second saving an order discount, so it comes off the already-reduced price. [Shopify Plus](/for/shopify-plus.md) |
| A free gift over a spend | OneCode, with a 100% product discount on the gift. The customer adds the gift to the cart, and OneCode makes it free. [Free gift](/guides/free-gift-with-purchase.md) |

## If the Script was really an upsell

OneCode replaces the discount itself. If the Script's real job was a checkout upsell, that is what Stackable sells. Its listing, checked November 2026, puts upsells on the $99.99 a month plan.

## Before you switch the Script off

Rebuild the offer in OneCode, run the same test cart through checkout, and compare the item discounts, any order discount, and the shipping line with what the Script gave. Switch the Script off only when they match. The step-by-step is in [replace a Shopify Script that combined discounts](/for/shopify-scripts.md).

One review on OneCode's listing, from Harper Wilde, says the OneCode team helped them solve a complex shipping discount case while migrating off Shopify Scripts.

![The OneCode editor with the code SUMMER25: a 20% Product Discount on the Summer Collection and a Free Shipping discount on all rates](/images/editor-percent-and-shipping.png)

OneCode costs $9.90 USD every 30 days after a 7-day free trial, billed by Shopify. You can install it from the [Shopify App Store](https://apps.shopify.com/rm-combo-discounts).
