Skip to content
Building a Shopify app or a SaaS product?Chat on WhatsApp
shopify-development

Shopify Scripts Are Gone: Finding and Fixing What Broke

Scripts became uneditable on 15 April 2026 and stopped executing on 30 June, and the failure mode was silence rather than an error. How to work out what quietly stopped applying, what not to bother rebuilding, and how Functions differ.

AK
Aashish Kaushik · 12 min read · updated 29 October 2026
Close-up of a customer using a smartphone for contactless payment at a retail checkout with a pineapple on the counter.
On this page

Key takeaways

  • Scripts became uneditable on 15 April 2026 and stopped executing on 30 June 2026 — a completed deprecation, not an upcoming one.
  • The failure mode was silence: a Script that stops running throws no error, so discounts simply stopped applying and orders completed at full price.
  • If you missed the cutoff, compare discount totals per order before 15 April against after 30 June, and treat an unexplained margin improvement in July 2026 as a symptom rather than good news.
  • Several months of those rules being off is a clean natural experiment: if nobody noticed, delete the rule instead of paying to rebuild it.
  • Functions run concurrently with no knowledge of each other and cap at 25 per store, so Scripts written to assume execution order must be restructured into one function rather than ported.

Shopify Scripts became uneditable on 15 April 2026 and stopped executing entirely on 30 June 2026. Both dates have passed. If you are reading this because something broke, the answer is that nothing broke — a deprecation completed on schedule, and the failure mode was silence rather than an error.

The two dates matter separately, and the first one is the one that caught teams out. From 15 April a store could still run its Scripts but could no longer change them, so any team that planned to “adjust the Script until we migrate” lost that option ten weeks before the logic stopped working. From 30 June the logic stopped applying altogether.

That silence is the reason this deprecation caused more damage than it should have. A Script that stops running does not throw. Discounts simply stop applying, orders complete at full price, and unless someone was watching order-level margin closely, nothing surfaces for weeks.

If you are unsure whether this affects you

Check whether your store ever had Script Editor installed, and look at whether any expected automatic discount is currently failing to apply. Absence of errors is not evidence that nothing is wrong here.

If you missed the cutoff: how to find out what it cost you

Most stores reading this did not migrate in time, and a good share do not yet know whether that mattered. Because the failure was silent, the question is not “what is broken” but “what has been quietly not happening since 30 June 2026”. That is answerable in an afternoon, and it is worth answering before you scope any rebuild, because it tells you which rules were load-bearing and which nobody missed.

Work in this order. The point of the sequence is that each step narrows the next.

1. Establish whether you ever had Scripts at all. Check whether Script Editor was ever installed on the store. If your store was never on Plus, it never had Scripts, and none of this applies — your custom discount logic is either native, an app, or a Function already.

2. Find the discounts that stopped. Compare order-level discount totals for a window before 15 April 2026 against the equivalent window after 30 June, normalising for season and order volume. A rule that stopped applying shows up as a discount line that was present on a steady proportion of orders and then was present on none. This is the single most informative comparison available and almost nobody runs it.

3. Look for the inverse on margin. Margin per order that improved for no commercial reason around July 2026 is not good news, it is a discount that stopped. Merchants who celebrated a margin improvement that summer should check this specifically.

4. Check shipping and payment separately. Scripts also hid payment methods, and renamed or reordered shipping rates. These leave no discount line to find, so the trace is different: look for a payment method now appearing to customers it was previously hidden from, or a shipping rate that reverted to its raw carrier name. Support tickets and chargebacks are often the first evidence.

5. Interview, do not just read. Whoever configured the Scripts knows rules the code does not explain, and seasonal rules are invisible in any audit run outside their season. A Script that only ran in November is absent from a July review and absent again in November unless someone remembers it.

6. Decide what not to rebuild. This is the step with the best return. Several months have now passed with these rules switched off. If nobody noticed, and the numbers did not move, that rule was costing you margin for no measurable benefit, and the correct migration is to delete it. A completed deprecation is an unusually clean natural experiment, and it is worth using before you pay to restore everything exactly as it was.

Post-cutoff damage assessment

  • Confirm whether Script Editor was ever installed on this store
  • Compare discount totals per order before 15 April 2026 against after 30 June 2026, normalised for season
  • Flag any unexplained margin-per-order improvement around July 2026
  • Check whether any payment method is now visible to customers it used to be hidden from
  • Check whether any shipping rate reverted to its raw carrier name or original order
  • Interview whoever configured the Scripts, for rules the code does not explain
  • List seasonal rules that would not appear in an audit run today
  • For each rule found, decide explicitly whether to rebuild it or delete it

What actually changed

Scripts and Functions solve the same problem with fundamentally different architecture, and understanding the difference explains why migration is more than a translation exercise.

Scripts and Functions compared

Shopify ScriptsShopify Functions
LanguageRubyRust or JavaScript, compiled to WebAssembly
AvailabilityPlus onlyDiscount Functions available beyond Plus
EditingIn the admin, via Script EditorCode in a repository, built and deployed
DeploymentSave and it is liveBuild, deploy through an app, then configure
ExecutionSandboxed at runtimeWebAssembly at defined extension points
Version controlNoneWhatever your repository provides
PerformanceVariableFast and bounded by design
Execution orderSequential, and could be written to assume itConcurrent, with no knowledge of each other
Scope per unit of logicOne Script, one areaOne function can return product, order and shipping savings together
Limit per storeNo practical limit25 activated discount functions

The two rows that change how teams work are editing and deployment. Scripts could be modified by anyone with admin access, in the browser, and were live on save. That was genuinely convenient and genuinely dangerous — there was no history, no review, and no way to know who changed pricing logic or when.

Functions invert this. You get version control, review and repeatability. You also get a deployment step, which means the merchant who used to adjust a discount rule themselves on a Friday afternoon now files a ticket.

The migration is restructuring, not porting

The common expectation is that a Script can be translated line by line. It usually cannot, because the execution model differs.

A Script ran with broad access and could iterate over the cart making decisions procedurally. A Function receives a defined input, produces a defined output, and runs at a specific extension point with limits on what it can see and how long it may take. Logic written against the first model frequently needs to be re-expressed rather than converted.

Three patterns that tend to need rethinking:

Multi-pass cart logic. Scripts that walked the cart repeatedly, adjusting as they went, need restructuring into a single evaluation producing a set of discount operations.

Decisions requiring data the Function cannot see. A Script that consulted broad shop state may need that data supplied through metafields, which the Function receives as input. This is often the largest piece of the work and is easy to underestimate.

Interdependent Scripts. Stores commonly ran several Scripts that assumed a particular execution order. Functions do not offer the same implicit sequencing, and overlapping logic must be made explicit.

Do not forget shipping and payment

This is the most common oversight in the migration, and it is expensive because it is discovered at checkout.

Scripts covered three areas: line item discounts, shipping rates, and payment method behaviour. Merchants migrating tend to focus on discounts, because that is the visible commercial feature, and forget that their Script also hid a payment method from certain customers or renamed a shipping rate.

Each of these has its own Function API — discounts, delivery customisation and payment customisation are separate extension points, not variations of one. Audit for all three before scoping the work:

What the replacement looks like now, not at announcement

One thing worth knowing before you scope a rebuild, because it changes the shape of the work and most migration guidance predates it.

The Discount Function API is now a unified schema. A single function processes one discount but can apply savings across all three discount classes at once — product, order and shipping — so one function can reduce the order total and the delivery cost together. For a store migrating several interdependent Scripts, that is the useful detail: outcomes that would once have needed two or three cooperating rules can be expressed as one function computing the whole result, which also sidesteps the combination settings that trip people up.

Two limits to design against. You can have a maximum of 25 discount functions activated on a store, which is generous unless you have accumulated an app-installed function per campaign. And all discount functions run concurrently with no knowledge of each other — a function cannot ask whether another discount already applied and branch on the answer. Scripts, which ran in sequence and could be written to assume order, allowed exactly that pattern, and it is the single most common reason a Script does not port cleanly. If two rules genuinely depend on one another, they become one function.

What a function outputs is still only a candidate: the combination and stacking rules set on the discount itself apply on top. Writing a function does not exempt you from configuring those, and the merchant who assumes otherwise spends a day debugging logic that is working correctly.

Three pages cover the destination in more detail than a migration guide should. Shopify Functions for discounts is what replaced Scripts and what you can actually build today. Why Shopify discounts will not stack covers the combination rules that sit on top of every function, including the pairings that are impossible regardless of code — read it before rebuilding anything with more than one rule. And if your Scripts touched the checkout itself rather than only pricing, Checkout Extensibility is the migration that runs alongside this one, because the two deprecations overlapped and stores commonly completed one and not the other.

Audit before you scope

  • Every discount rule the Script applied, including edge cases nobody documented
  • Any shipping rate hidden, renamed or reordered
  • Any payment method hidden or reordered by customer, cart or address
  • Conditions referencing customer tags, metafields or order history
  • Behaviour depending on the order in which multiple Scripts ran
  • Anything only triggered seasonally, which will not be visible in a current audit

That final item catches teams out. A Script handling a Christmas promotion is invisible in a July audit and absent when November arrives, which is the worst possible moment to discover it.

Who can change discount logic now

This is an organisational consequence that deserves explicit planning, because it is the change merchants feel most.

Under Scripts, a merchant could adjust a threshold themselves. Under Functions, the logic is compiled. There are two ways to restore merchant control, and choosing between them should be a deliberate decision made during the migration rather than discovered afterwards:

Configuration through metafields. Build the Function to read its parameters — thresholds, product sets, dates — from metafields, and expose those in the admin. The logic is fixed; the numbers are editable. This covers most real needs and is the right default.

A full app interface. Build an embedded admin interface for configuring offers. More work, more flexibility, and effectively what commercial discount apps sell.

If you migrate a Script into a hardcoded Function without either, you will have converted every future pricing tweak into a development ticket. That is a common and avoidable outcome.

A migration sequence that does not break checkout

  1. Inventory everything. Every Script, every rule, every edge case. Interview whoever configured them, because the code frequently does not explain the intent.
  2. Write down the intended behaviour in plain language, separately from the code. This is the specification you will test against, and it will expose rules nobody can justify any more.
  3. Decide what stays. Migration is a good moment to delete rules that exist because of a promotion in 2023. Porting logic nobody wants is pure cost.
  4. Build the Functions, with configuration exposed through metafields where merchants need control.
  5. Test combinations exhaustively, including accelerated checkouts and every case where two rules could apply at once.
  6. Deploy and verify on real orders, watching order-level margin for the first week rather than assuming success.

Test with real historical carts

Take twenty genuine past orders that the old Scripts affected and confirm the new Functions produce the same outcome. This catches the edge cases that a specification written from memory will miss, and it is far cheaper than finding them in production.

The failure modes to watch for after deploying

A Function that deploys successfully is not a Function that behaves correctly, and the ways these go wrong are specific enough to be worth listing.

Silent non-application. The most common and the most costly. The Function runs, produces no discount operation because a condition was subtly wrong, and the order completes at full price. There is no error anywhere. The only signal is margin that looks slightly too good, which nobody investigates.

Over-application. The inverse, and easier to spot because someone eventually notices the revenue. Usually caused by a condition that was implicitly scoped in the old Script by surrounding code and is now evaluated independently.

Correct in the cart, wrong at checkout. Rarer with Functions than with cart-manipulating apps, but still possible where storefront messaging is computed separately from the actual discount. If your theme displays a calculated saving, that calculation is a second implementation of the same logic and the two will drift.

Timeouts under load. Functions run within bounded execution limits. Logic that is comfortable on a five-item cart may not be on a fifty-item one, and the carts that break are disproportionately your largest orders.

Metafield drift. If you exposed configuration through metafields, someone will eventually enter a value the Function does not handle — a blank threshold, a deleted product reference, a date in the wrong format. Validate inputs inside the Function and decide explicitly what it does with nonsense, because the default is usually to apply nothing.

Instrument before you need it

Add a monitor on the proportion of orders receiving each expected discount, and alert when it moves sharply. This is the only reliable defence against silent non-application, and it costs an afternoon. Every merchant who lost money to the Scripts deprecation lost it because nothing was watching this number.

What you gain, honestly

The migration is unwelcome work, but the destination is better in ways worth stating.

Functions are faster and more predictable than Scripts were, and they run within defined limits rather than variably. Discount Functions extend beyond Plus, which widens what non-Plus merchants can do. And the deployment model, whatever it costs in convenience, means pricing logic now lives in version control with a history — which is a substantial improvement over a system where anyone with admin access could silently change how your store charges people.

The convenience loss is real and should be mitigated rather than denied. Build for configuration, not just for behaviour, and the merchant keeps the control that mattered while you keep the review that was missing.

If this migration is still outstanding, it is also a reasonable test of whoever maintains your store: what to ask a Shopify agency includes how they handle deprecations, and this is the deprecation they should be able to speak to without notice. Keeping ahead of the next one is covered in Shopify API versioning. For the wider development picture, see Shopify development; discount strategy in promotions and offers, and checkout behaviour in checkout and payments.

Frequently asked questions

When exactly did Shopify Scripts stop working?
Scripts became uneditable on 15 April 2026 and stopped executing entirely on 30 June 2026. The first date is the one that caught teams out: from April a store could still run its Scripts but could no longer change them.
How do I find out what broke when Scripts stopped?
Compare order-level discount totals for a window before 15 April 2026 against an equivalent window after 30 June, normalised for season and volume. A rule that stopped shows up as a discount line present on a steady proportion of orders and then on none. Also check for an unexplained margin-per-order improvement around July 2026, which is a discount that stopped rather than good news.
What happens to my discounts if I did nothing?
They stopped applying on 30 June 2026, silently and with no error. Shipping and payment customisations stopped too, and those leave no discount line to find — look instead for a payment method now visible to customers it used to be hidden from, or a shipping rate that reverted to its raw carrier name.
Do I have to rebuild every Script I had?
No, and this is the step with the best return. Several months have passed with those rules switched off. If nobody noticed and the numbers did not move, the rule was costing margin for no measurable benefit, and deleting it is the correct migration.
What is the difference between Shopify Scripts and Shopify Functions?
Scripts were Ruby, edited in the admin through Script Editor, available only to Plus, and executed sequentially in a sandbox at runtime. Functions are Rust or JavaScript compiled to WebAssembly, deployed through an app from a repository, available beyond Plus for discounts, and run concurrently with no knowledge of each other.
Why will my Script not port line by line?
Mostly execution order. Scripts ran sequentially and could be written to assume a previous Script had already acted. Discount functions run concurrently and cannot ask whether another discount applied, so interdependent rules have to be restructured into a single function rather than converted one for one.
How many discount functions can a store have?
A maximum of 25 activated discount functions. A single function can apply savings across product, order and shipping classes at once, so outcomes that once needed several cooperating Scripts can often be expressed as one function.
Do I need to be on Shopify Plus to use Functions?
Discount Functions are available beyond Plus, which is a meaningful widening compared with Scripts. Some extension points and higher input limits remain tied to Plus.
Can I edit a Function in the Shopify admin like I could a Script?
No, and this is the largest workflow change. A Function is code in a repository that must be built and deployed. To keep merchant control, build the function to read its thresholds, product sets and dates from metafields and expose those in the admin.

Building a Shopify app or a SaaS product?

ByteInfy designs, builds and ships them. Tell us what you are making.

Chat on WhatsApp

Or reach us directly

About the author

Aashish Kaushik

Founder

Builds Shopify apps and SaaS products at ByteInfy.

More from Aashish

Get new articles by email

No more than one a week. Unsubscribe in one click.

Comments

Comments are reviewed before they appear.

Keep reading

Man packing blue coffee mugs for delivery in a bright, artistic workspace.

Shopify API Versioning: Staying Ahead of Deprecations

Deprecations are the most predictable failure in the Shopify ecosystem. They are announced, scheduled, and they still take stores by surprise every year.

25 October 2026 · 7 min readRead
Close-up of a smartphone with a cryptocurrency graph placed on an open business magazine, highlighting economic trends.

Shopify App Development in 2026: A Practical Guide

The hard parts of a Shopify app are rarely the features. They are the distribution choice, the review requirements, and the storefront surface you commit to on day one.

11 September 2026 · 7 min readRead
Close-up of hands on a laptop typing with a credit card for online shopping.

Headless Shopify with Hydrogen: When It Pays Off

Headless is not faster by default and not better by default. It buys you control, and control is only worth its price when you have something specific to do with it — plus why Hydrogen and Next.js stopped being alternatives in 2026.

8 September 2026 · 10 min readRead
WhatsApp