Replacing Shopify Scripts for tiered discounts with Functions

Updated 2026-11-17

If your tiered or volume discounts ran on a Script, they have stopped. Functions are the replacement.

Try Stepwise freeFree plan · 14-day Pro trial

What happened to Scripts

Shopify's help center states that Shopify Scripts and the Script Editor app were retired on June 30, 2026, and that scripts no longer run on any store. Its guidance for replacing them is to use an app that provides functions to customize discounts, shipping and delivery options, or payment methods. Functions run automatically once the app is set up.

If you had a line item Script for "buy more, pay less", that discount no longer happens at checkout. Check your orders and your checkout.

What Shopify Functions are

A Function is a small piece of backend logic that Shopify runs for you. A discount Function can apply product, order or shipping discounts. Its settings live in the admin like any other discount, and it works on the standard checkout.

Shopify's developer documentation also says that stores on any plan can use public apps from the Shopify App Store that contain functions, and that only Shopify Plus stores can use custom apps that contain Function APIs. So you do not need Plus to run a Functions-based discount from an app.

Rebuilding a tiered discount

Write down what the Script did before you rebuild it:

Then set the same rules in an app. In Stepwise: Tiered Pricing the mapping is direct:

Script logicStepwise setting
Quantity steps and percentagesTiers (or a template: Gentle, Bundle, Wholesale)
Count by product, variant or groupCounting: per product, per variant, mix and match
Customer tag checkCustomer tag rule (customer must be logged in)
Skipping discounted itemsSkip items already on sale
Start and end datesStart and end dates, pause and resume

Stepwise is a discount applied by a Shopify Function. No discount code is needed and no theme code is edited. The table block on the product page is optional.

Check the result

  1. Add the first tier's quantity to the cart and compare it with what the Script used to give.
  2. Test as a tagged customer and as a guest.
  3. Test with a discount code, and decide with the stacking switch whether the two should combine.

The Free plan covers 2 tiers on all products. Everything else is in Pro, with a 14-day free trial. See also wholesale pricing without Plus.

What does not carry over

Scripts could do almost anything in Ruby. Functions are narrower by design, and each app covers its own use case. Stepwise covers percentage quantity tiers. If your Script did something special, such as free gifts or fixed group prices, check that the app you pick supports that before you migrate.

Before you go live

FAQ

Do Shopify Scripts still work?

No. Shopify's help center says Scripts and the Script Editor app were retired on June 30, 2026, and scripts no longer run.

What replaces Scripts?

Shopify points merchants to apps that provide Functions for discounts, shipping and delivery, and payments.

Do I need Shopify Plus to use a Functions discount?

No. Shopify says stores on any plan can use public App Store apps that contain functions. Only custom apps with Function APIs need Plus.

Can Stepwise replace a tiered-discount Script?

For quantity tiers, yes. It covers tiers, counting rules, customer tags, skipping sale items and dates.

Try Stepwise freeFree plan · 14-day Pro trial

Related guides