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 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 didWhat to use
20% off and free shipping togetherOneCode, with a product discount and a shipping discount on one code. Guide
A different percent off each collectionOneCode, with one product discount per collection. Guide
Tiers by quantity or spendOneCode, with one discount type per tier. Buy more, save more or spend more, save more
Free shipping only over a spend or only in some countriesOneCode, with a Cart Subtotal or Shipping Country condition on the shipping discount
Two percentages on the same item, on Shopify PlusOneCode’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
A free gift over a spendOneCode, with a 100% product discount on the gift. The customer adds the gift to the cart, and OneCode makes it free. Free gift

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.

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

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.