Home
Articles
Shopify Scripts Have Stopped Running. Now What?
Shopify Plus
15
min read
Published
October 3, 2026

Shopify Scripts Have Stopped Running. Now What?

Scripts switched off on 30 June 2026. A step-by-step plan to recover the old rules and rebuild them with Functions, apps and pixels.
A greyed-out Ruby Script card stamped Stopped behind a bright blue discount function card labelled WebAssembly, Git, Shopify CLI and under 5 ms, with a calendar tile for 30 June 2026

On 30 June 2026 Shopify switched off every Script still running on a Plus store. There was no grace period and no fallback. Tiered discounts, hidden shipping rates and payment rules that had not been rebuilt simply stopped applying.

Two stores that came to us in July show both ends of what that looks like. A UK homeware brand noticed within hours, because its "free gift over £100" promotion vanished from checkout on the first morning and customers started emailing to ask where the gift was. A Spanish fashion store took six weeks. A Script used to hide cash on delivery for orders outside mainland Spain, and nobody missed it until a run of refused parcels came back from the Canary Islands. The first problem cost a morning. The second cost return shipping on every one of those orders.

My team builds and maintains Shopify Plus stores at Teplin, so I come at this from the scoping and testing side. This article is a walkthrough in the order I would run it. It starts with recovering what your Scripts actually did, then maps each rule to the right Shopify Functions API, covers the plan restrictions and technical limits that cause most production bugs, deals with the visual and tracking pieces that are easy to forget, and ends with the testing routine we use. If your Scripts were migrated before the deadline, the same steps work as an audit of what was rebuilt. Plan rules and limits below are as of October 2026.

Three things to do this week

  1. Export the Scripts customisations report
    It lists every Script that was active, with its source code, and it is the only reliable record of the rules your store used to apply.
  2. Check your top three revenue rules by hand
    Place test orders for your biggest discount, your main shipping rule and any payment restriction, and note which ones no longer behave as they did.
  3. Look for the visible and tracking pieces
    Banners, gift selectors and Thank you page tracking that sat alongside Scripts may have broken at the same time.

Scripts stopped running on 30 June 2026

Shopify Scripts were small Ruby programs, available only on Shopify Plus, that ran on Shopify's servers during cart and checkout. Merchants used them for three jobs. Line item Scripts changed prices for discounts, bundles and gifts. Shipping Scripts hid, renamed, reordered or discounted rates. Payment Scripts hid or reordered gateways.

Shopify confirmed the final timeline in its developer changelog. From 15 April 2026, merchants could no longer edit or publish Scripts. On 30 June 2026, all Shopify Scripts stopped executing. Shopify's Help Center confirms that Scripts still published at that point were deactivated and no longer work.

Timeline of the move to checkout extensibility: 13 August 2024 checkout.liquid deadline on Plus for the Information, Shipping and Payment pages; 28 August 2025 additional scripts become view-only; 15 April 2026 Scripts can no longer be edited or published; 30 June 2026 all Scripts stop executing; 26 August 2026 deadline for non-Plus stores to upgrade Thank you and Order status pages

The replacement is Shopify Functions, part of the checkout extensibility platform that also replaced checkout.liquid. If you went through the checkout.liquid upgrade on Plus (the deadline for the Information, Shipping and Payment pages was 13 August 2024), the end of Scripts is the second half of the same project. Shopify wants every checkout customisation to run through apps, extensions and functions that it can keep upgrade-safe and fast.

Functions work differently from Scripts

Scripts were powerful but awkward to manage. They were written in a restricted Ruby dialect inside a browser editor, had no version control, and could only be tested by publishing them or using the Script Editor preview. Functions are compiled to WebAssembly, deployed inside apps with the Shopify CLI, kept in Git like any other code, and configured by merchants in the admin. Shopify's Help Center states that functions execute in under 5 milliseconds, which matters at peak trading, when a slow Script could hold up checkout.

Distribution is the other big shift. A Script lived on one store. A function lives inside an app, so a developer can build a discount type once and any merchant can install it. That is why so many common Script use cases are now covered by off-the-shelf apps, and why the first question on every rule should be whether an app already does it.

Recover the rules before you rebuild anything

Shopify generates a Scripts customisations report in the admin, under Apps, then Script Editor, then the Replace Shopify Scripts banner. It groups Scripts into Payment gateways, Shipping and Product discounts, lists each Script's name, description and source files, and suggests apps or Functions tutorials. It can be exported as a CSV. If nobody exported it before 30 June, do it now, before people's memory of the old rules fades any further.

Then I turn every Script into something a non-developer can sign off. Save the Ruby source of every Script, including ones you think were unused, because comments in old code often reveal business rules nobody remembers agreeing to. Write each rule as one plain-English sentence, for example "Wholesale-tagged customers get 30% off all products except the Gift Card collection, and the discount does not combine with codes". That sentence becomes the acceptance test later. Finally, name an owner and a value for each rule. Rules nobody can explain are candidates for retirement rather than rebuilding.

If the Scripts have already stopped and you are working backwards, use whatever evidence you still have. Old order exports show which discounts were applied and at what values. Support tickets from July 2026 onwards often point straight at a rule that disappeared. Screenshots of the old checkout, if anyone kept them, show which shipping rates and payment methods used to appear for which customers. For the Spanish store above, the order export from May and June was enough to rebuild five of its six rules. The sixth only surfaced through the refused parcels.

Every Script type has a Function API

Line item Scripts become Discount Functions or Cart Transform Functions. Shipping Scripts become Delivery Customization Functions, with the Discount Function API handling any shipping discounts. Payment Scripts become Payment Customization Functions. Logic that Scripts could only fake now has its own Cart and Checkout Validation API. The detail below is based on the current Function APIs reference on shopify.dev.

Mapping diagram: line item Scripts go to the Discount Function API and Cart Transform API; shipping Scripts go to the Delivery Customization API, with shipping discounts moving to the Discount Function API; payment Scripts go to the Payment Customization API; rules Scripts could only fake now use the Cart and Checkout Validation, Fulfillment Constraints and Order Routing Location Rule APIs

Line item rules

The Discount Function API covers tiered discounts, buy X get Y, spend thresholds, customer-tag pricing and VIP discounts. One discount function can now apply product, order and shipping discounts together, using product, order and delivery discount candidate targets. The older Product Discount and Order Discount Function APIs are labelled legacy in the documentation, and their delivery group input is always empty, so any new build that touches shipping discounts should use the unified API.

The Cart Transform API covers bundle logic and price overrides. It can merge several lines into one bundle line (linesMerge), expand a bundle into its components (lineExpand), or update a line's price, title or image (lineUpdate). One restriction is worth knowing early. Shopify's reference states that only development stores or stores on Shopify Plus can use apps with lineUpdate operations, and each app can install at most one cart transform function per store.

A store can have at most 25 active discount functions. They all run at the same time and know nothing about each other, so stacking is controlled by the combination settings on each discount. In a single Script, code order decided that. This is the change that catches the most teams out.

Shipping rules

The Delivery Customization API covers Scripts that hid, renamed or reordered shipping rates, such as hiding express delivery for heavy items or adding a message to a rate name. Up to 25 delivery customisation functions can be active per store. Delivery customisation does not change prices, though. If a Script reduced shipping costs, for example free express shipping for VIPs, that logic moves to a discount function using the delivery discount target. Local pickup and pickup point delivery option generators let apps create pickup options and charges. Some were marked unstable in the API reference at the time of writing, so check their status before depending on them.

Payment rules

The Payment Customization API covers Scripts that hid, renamed or reordered payment gateways, such as hiding cash on delivery above a cart value or for certain countries. Up to 25 payment customisation functions can be active per store. The same API can do things Scripts never could: set payment terms (fixed, net or event-based, with optional deposits) and add a review requirement so B2B orders are submitted as drafts for approval.

Rules Scripts handled badly

  • Cart and Checkout Validation API
    Blocks checkout when a rule is broken, such as a maximum quantity per customer, a restricted destination or a minimum order value. It also runs on express checkouts like Shop Pay, Apple Pay, Google Pay and PayPal, which theme-based workarounds never covered. Up to 25 validation functions can be active per store.
  • Fulfillment Constraints API
    Controls how items are grouped into fulfilments, for example keeping certain products shipping from one location.
  • Order Routing Location Rule API
    Sets which locations get priority when Shopify routes an order, which helps multi-warehouse brands.

What the mapping looked like on one project

Nordik Recovery, the Canadian ice bath brand, runs on Shopify Plus. Its checkout rules were built on Functions from the start, so it makes a clean reference for how the mapping turns out in practice. These were the four rules and where each one ended up:

  • Freight only for ice baths and chillers
    Standard parcel rates are hidden whenever the cart holds a large item, so the shopper sees freight delivery only. Delivery Customization API, custom function.
  • No freight to remote northern postal codes
    Orders with a freight item cannot check out to addresses the carrier does not serve, on every payment path including express wallets. Cart and Checkout Validation API, custom function in the same app.
  • Accessories cheaper with an ice bath
    A percentage off covers and accessories bought together with an ice bath. Shopify's native buy X get Y discount, no function at all.
  • Financing hidden on small orders
    The instalment option is hidden below a cart value where it makes no sense. Payment Customization API, through an App Store app.

Two custom functions in one app, one App Store app and one native discount. That split is typical of what I see. The custom app took about 45 hours, and more than half of that was testing rather than code.

Most rules belong in an app

If a Script did something common, such as tiered pricing, gift with purchase, a free shipping threshold or hiding a gateway by country, I look for an App Store app first. Volume discounts, bundles, BOGO and hiding payment or shipping methods by country, cart total or product tag are all well covered. Public apps that contain functions work on any Shopify plan, so non-Plus stores can now get Script-like logic for the first time, and good apps expose their settings in the admin, so the marketing team can change a threshold without a developer.

Decision flow for each old rule: if nobody can name an owner and value, retire it; if it is a standard rule, use an App Store app; if the store is not on Plus, use a public app with functions; on Plus, build a custom function app through the Dev Dashboard and Shopify CLI when it uses your own data, combines several rules, needs performance at scale or you want to own it
Most simple Scripts belong in an app. Only a small number of business-critical rules justify custom code. Nobody wins anything for rebuilding a free shipping banner from scratch.

Custom code pays for itself in four situations:

  1. The logic uses your own data. Pricing based on metafields, customer segments, loyalty tiers or ERP-fed attributes is easier to build than to bend an app around.
  2. Several rules need to act as one. A single custom discount function can apply product, order and shipping savings in one decision and avoid conflicts between three separate apps.
  3. Performance at scale matters. You control the code, the input query and the language, and Shopify recommends Rust for functions that must handle large carts.
  4. You want to own it. A custom app has no per-feature monthly fee and cannot disappear from the App Store.

One practical detail trips up a lot of teams. Shopify's migration guide notes that Functions-based apps require App Bridge, which custom apps created directly in the Shopify admin do not support. Custom function apps therefore have to be built through the Dev Dashboard and the Shopify CLI, then connected to the store. Building those is the kind of work our custom apps and integrations team does.

Your plan decides what you can build

Every Shopify plan can use public App Store apps that contain functions. Only Shopify Plus stores can use custom apps that contain Function APIs. Some individual capabilities are restricted to Plus as well, and the API reference flags these per API. The cart transform lineUpdate operation is the one I run into most.

Network access is a further tier. A function can fetch data from an external service, such as live pricing from an ERP, only through a fetch target, and as of October 2026 Shopify's reference limits that to custom apps installed on Enterprise stores. Network access is not available on development stores, and functions that use it do not run on draft orders.

If you are wondering whether Plus is justified for this alone, our breakdown of whether Shopify Plus is worth $2,300 a month goes through the full bill. For many brands, a couple of public apps on a standard plan do the job.

The sandbox limits cause most production bugs

Functions run in a strict sandbox, and in our projects the limits are behind most production bugs. Shopify's documentation sets these numbers:

  • Instruction count
    For carts with up to 200 line items, a function can execute up to 11 million instructions. Above 200 lines, the limit scales in proportion to the number of lines.
  • Binary size, input and output
    The compiled WebAssembly module must stay under 256 kB, each function input under 128 kB and each output under 20 kB.
  • Active functions per type
    Up to 25 active discount functions, 25 delivery customisation functions, 25 payment customisation functions and 25 validation functions per store.
  • Cart transforms
    One cart transform function per app per store, and Shopify rejects cart transform operations when a selling plan (subscription) is present.
  • No direct calls
    Functions cannot be called by URL. Shopify runs them at fixed points during cart and checkout.

The instruction limit is where JavaScript functions most often fail. A function that loops over every line, then every discount tier, then every customer tag can blow through the budget on a large B2B cart while working perfectly on a three-item test cart. We saw exactly that this year on a tiered wholesale pricing function for a trade client: it passed every test with ten lines and failed on the first real order of 180 lines. Trimming the input query to the fields it used and replacing the nested loops with a single lookup brought it back to about a third of the budget. The Shopify CLI reports instruction counts and input size for each run, so this can be measured instead of guessed.

How one tiered pricing function spent its 11 million instruction budget: a 10-line test cart used a small share, a 180-line wholesale order with nested loops over lines, tiers and customer tags went over the limit and failed, and the same 180-line order after trimming the input query and replacing nested loops with one lookup used about a third of the budget

Where functions do and do not run

Coverage is not universal, which is easy to miss if your Scripts only ever ran in online checkout. The Discount Function API is supported in cart, checkout, POS, admin and storefront, partially supported on draft orders, order edits and subscriptions, and not supported on the Create Order API, pre-orders or Try Before You Buy. Validation functions run on checkout, cart, B2B and draft orders, but not on POS, order edits or subscriptions.

Coverage matrix: the Discount Function API runs in cart, checkout, POS, admin and storefront, is partly supported on draft orders, order edits and subscriptions, and does not run on the Create Order API, pre-orders or Try Before You Buy; validation functions run on checkout, cart, B2B and draft orders but not on POS, order edits or subscriptions

Subscriptions deserve their own check. A discount function does not re-run when recurring orders are created, and Shopify's reference notes that shipping discounts from the original order default to 100% on recurring orders. Most of the subscription stores we build, including THRSTY, Ovrload, Quantum Padel and ORCA, sell the same product as a one-time purchase and as a subscription with its own saving, which is exactly where discount rules collide.

Quantum Padel is the example I use. In launch week a 10% automatic launch discount was set to apply to both one-time and subscription purchases, so the first subscription orders took the launch discount on top of the 15% subscription saving. We spotted it in the order export on day three, about 40 orders in, and limited the launch discount to one-time purchases. No function was involved, which is the point: the combination settings decide stacking now, and they need testing on subscription carts as much as on one-time ones.

Banners and gift pickers need checkout UI extensions

Functions change the logic. Checkout UI extensions change what customers see. If a Script came with checkout.liquid edits, such as a banner explaining a discount or a gift selector, that visible part now needs a checkout UI extension.

Checkout UI extensions come in three forms. Block extensions are placed by merchants in the checkout editor. Static extensions render in fixed positions, for example after the cart line items. Runnable extensions have no UI and respond to events such as address entry. Extensions on the Information, Shipping and Payment steps are available only to Shopify Plus stores, while apps that customise the Thank you and Order status pages work on Basic and above.

Typical Plus uses include upsell blocks in checkout, delivery date pickers, gift message fields, trust badges, loyalty point balances and B2B purchase order fields. The Checkout Branding API, which controls fonts, colours and layout beyond the standard editor, is Plus-only too. For the UK homeware brand from the introduction, the gift itself came back through an App Store app in a day, but the "choose your gift" block took a small checkout UI extension.

One-click upsells after payment

A true one-click post-purchase upsell, where the customer adds an item after paying without re-entering card details, uses Shopify's post-purchase checkout extension. According to shopify.dev, post-purchase extensions are still in beta. They work without restriction on development stores, but live stores must request access.

The payment limits matter for forecasting. The post-purchase page does not appear when customers pay with wallets or instalment providers such as Apple Pay, Google Pay, Amazon Pay, Klarna or Affirm, or when the original purchase used a gift card or a non-card payment method. Gateways that need the card security code to be retained are not supported either. If many of your customers use express wallets, the realistic upsell audience is smaller than your order count. Pre-purchase offers in checkout (Plus only) and offers on the Thank you page are the usual alternatives.

Tracking moves into Customer Events

Tracking that used to sit in "Additional scripts" or script tags on the Thank you page now belongs in Customer Events, as app pixels or custom pixels built on the Web Pixels API. Shopify's Help Center states that from 28 August 2025 the additional scripts section in checkout settings became view-only, and that 26 August 2026 was the deadline for non-Plus stores to upgrade their Thank you and Order status pages.

Custom pixels run in a sandbox and subscribe to standard events such as page_viewed, product_viewed, product_added_to_cart, checkout_started, payment_info_submitted and checkout_completed. This is how I handle it:

  • Official app pixels first
    Google, Meta, TikTok and most major platforms provide app pixels through their Shopify apps, which handle consent and deduplication better than custom code.
  • Custom pixels for everything else
    Affiliate networks, smaller ad platforms and custom analytics can subscribe to checkout_completed in a custom pixel.
  • Consent checked properly
    You are responsible for compliance, consent and code security in custom pixels, and some third-party scripts need changes to work inside the sandbox.
  • Numbers reconciled
    Compare pixel-reported conversions with Shopify orders for at least two weeks. A gap of more than a few percent means a missing event or a consent misconfiguration.

How we test before anything goes live

Test in a development store or a duplicated staging environment first, then on the live store with the function or app active but limited to test conditions. Because Scripts no longer run, there is no side-by-side comparison in production any more. Your plain-English rules and any screenshots of old behaviour are now the reference.

Every rule gets its own test matrix: a list of carts that should trigger it and carts that should not, each with an expected result and a column for what actually happened. On the Nordik functions, the matrix for the two freight rules alone had 14 rows. These are the dimensions we cover:

  • Exact thresholds
    Edge cases on both sides of every limit, such as £99.99 against £100.00.
  • Real customer types
    Logged-out guests, tagged customers, B2B company contacts and customers in each market and currency.
  • Every payment path
    Standard checkout, Shop Pay, Apple Pay, Google Pay and PayPal. Validation functions should block all of them.
  • Large carts
    Run the function against your biggest realistic cart (for B2B, often 100 lines or more) and check instruction counts in the CLI output.
  • Discount stacking
    Combine automatic discounts, codes, app discounts, custom functions and subscription savings and confirm the totals are right.
  • Admin and POS
    Create a draft order and a POS sale if those channels matter to you.
How a test matrix for checkout rules is structured, using the two Nordik freight rules as the example: each row is a cart with its contents, customer and address, payment path, the expected result and the actual result. The six rows shown cover an ice bath alone, an accessory alone, an ice bath with a cover on Apple Pay, a chiller on PayPal, a remote postal code on Google Pay where checkout must be blocked, and a cart where the ice bath is removed so parcel rates return

After launch, check function run logs in the Partner or Dev Dashboard and watch discount usage and average order value for the first two weeks. One habit I insist on in our Shopify Plus development projects is automated unit tests for each function's input and output JSON. Shopify's function templates support this, and it means a future change to one discount tier cannot quietly break another rule.

Before closing the project, update the documentation. Record which app or function now owns each rule, with the plain-English description beside it, so the next person does not have to repeat this audit from scratch.

Mistakes I see most often

  • Rebuilding everything as custom code
    Many Script features are now a free or cheap app, and custom code you do not need is code you have to maintain.
  • Ignoring discount combinations
    A single Script decided all pricing in one place. Several functions run independently, so badly set combination rules can double-discount.
  • Testing only small carts
    Functions that pass with three items can exceed the 11 million instruction budget on large orders.
  • Forgetting subscriptions
    Cart transform operations are rejected when a selling plan is present, and discount functions do not re-run on recurring orders.
  • Losing tracking without noticing
    A broken discount gets reported by customers within a day. A missing conversion pixel stays invisible until ad performance drops.

Frequently asked questions

Do Shopify Scripts still work in 2026?

No. Shopify stopped Scripts from being edited or published on 15 April 2026, and all Scripts stopped running on 30 June 2026. Any Script logic that was not rebuilt with Shopify Functions or an app is no longer applied at checkout.

Can I use Shopify Functions without Shopify Plus?

Yes, through public apps from the Shopify App Store that contain functions, which work on any plan. Custom apps containing Function APIs and specific capabilities such as the cart transform lineUpdate operation are restricted to Shopify Plus, and network access to custom apps on Enterprise stores, as of October 2026.

How long does a Scripts to Functions migration take?

Replacing a few simple Scripts with App Store apps takes a few days, including testing. A custom function app with several rules takes longer: the four Nordik rules above took about 45 hours, and a complex B2B pricing setup can run to several weeks. On every project we have done, the audit and the testing took longer than the coding.

The end of Scripts is a good excuse to clear out years of layered checkout rules, and most stores come out with fewer customisations that are easier to change and test. If you have your Scripts customisations report, send it to us through the contact page. We will tell you which rules an off-the-shelf app can cover, which need a custom function, and which you can simply retire.

Sources

Teplin team
Want us to find your store's biggest wins?
We'll record a free video audit of your Shopify store and show you exactly what to fix first.
Free audit

Get a free Shopify store audit

A senior CRO specialist records a personalised video walkthrough of your store and the changes that will move revenue
Conversion & UX review
Speed & Core Web Vitals check
Prioritised list of quick wins
AUDIT - YOURSTORE.COM
Shopify store audit preview
Shopify store audit report
Claim your free audit
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Newsletter

Stay ahead of the curve

Monthly Shopify updates, ecommerce trends and proven conversion tactics – straight to your inbox. No fluff.
Keep reading

More from our resources

Development
11
min read

What We Freeze in a Shopify Store Four Weeks Before Black Friday

Our real freeze log from two Shopify stores: what we shipped, what waited until December, what we refused and this year's dates.
26.10.2026
Vlad Teplin
Vlad Teplin
November 2026 calendar with every day from 30 October frozen and Black Friday on 27 November marked, under the words 4 weeks of frozen code before Black Friday
Shopify Plus
16
min read

Is Shopify Plus Worth $2,300 a Month? Here Is the Real Bill

Every line on a Shopify Plus bill, the maths on when it beats Advanced, and the cases where I tell brands not to upgrade.
16.10.2026
Vlad Teplin
Vlad Teplin
Shopify Plus plan card showing $2,300 a month on a three-year term
AI Search
8
min read

Getting Your Shopify Store Into ChatGPT and AI Search Answers

How Shopify, Google and OpenAI actually get products into AI answers, and what we find when we audit client stores for it.
15.10.2026
Vlad Teplin
Vlad Teplin
Illustration of a generic AI assistant chat: a shopper asks for vegan creatine gummies that are easy to take daily and the answer shows two in-stock product cards with cited sources, tagged Route 1 Feed and Route 2 Open web, beside the title Getting your store into AI answers