Shopify Platform Changes12 minute read

Shopify Scripts to Functions: The Post-Sunset Audit

Published Last updated

Shopify Scripts stopped executing entirely on June 30, 2026. If your store had discount, shipping, or payment logic built in the Script Editor, it isn't running anymore — and because Scripts fail silently rather than throwing visible errors, many stores don't yet know what broke. Here's the audit process and how each common Script pattern maps to a Shopify Function.

Last verified: September 6, 2026.

Why This Deadline Is Different from the Others

Every other deadline in this cluster gives you a visible signal something needs attention — a deprecation notice, an admin warning, a page that stops rendering. Scripts don't. A discount rule that stopped applying on June 30 doesn't announce itself; a cart that should qualify for free shipping just silently doesn't get it. There's no error banner, no failed request in your logs in the way a broken integration would show up — the logic simply stops being evaluated, and the checkout proceeds as if the rule never existed. This is the deadline on this entire page most likely to already be costing revenue without anyone noticing, and it's been passed for over two months as of this writing. → For the full 2026 timeline, see Shopify's 2026 Deadlines.

The Audit: Reconstruct What It Did, Not Whether It Still Works

The single most important thing to understand before you start: there is nothing left to test. Scripts didn't degrade or partially fail on June 30, they stopped executing. Every Script rule you had is not running, without exception. Adding items to a cart to see whether the discount applies only confirms what's already certain.

That changes what the audit actually is. It isn't a diagnostic exercise to find out what broke; it's a reconstruction exercise to recover what the logic used to do, precisely enough to rebuild it. The rule may still be sitting in your admin, but the specification (the conditions, the thresholds, the edge cases, the interactions) is what you need back, and that's the part nobody wrote down.

Where to look, in rough order of reliability:

  1. The Script source itself. If your old Scripts are still visible in the Script Editor, that code is the most accurate record of the logic you will ever have. Export every one of them now, before access to that configuration goes away, even the ones you're confident you remember.
  2. Historical order data from before June 30. Orders placed while the Scripts were still running carry the evidence of what they did: discount lines applied, shipping rates charged, payment methods offered. Pull a representative sample from a normal trading period and work backward from the outcomes to the rules that produced them.
  3. Order data from after June 30. This is the closest thing to a live signal you have, and it runs in the opposite direction from testing. Orders that got shipping they shouldn't have, product combinations that should have been blocked, discounts that stopped appearing: the gap between the two periods is your list of what's missing.
  4. The people who ran the promotions. Marketing and operations teams remember rules in terms of the deal they ran, not the implementation. That's usually more useful than searching for technical documentation that was never written.

Work through the four categories, documenting behavior rather than testing it:

  1. Discounts. List every automatic rule that existed (buy-one-get-one, spend thresholds, customer-tag pricing) and write down the exact trigger condition and exact output for each. Where two rules could apply to the same cart, document whether they stacked or excluded each other. That interaction detail is the piece most often lost, and a partially reconstructed stacking rule looks correct right up until it isn't.
  2. Shipping. Free-shipping-over-$X thresholds and rate-hiding logic are the most common Script-based shipping patterns. Record the threshold, whether it was calculated pre-tax or post-tax, and which rates were hidden under which conditions. Rate-hiding is the easiest to lose, because it was defined by absence: nobody remembers the expensive rate that used to not show up.
  3. Payment. If you had payment-method filtering (hiding a method for certain cart contents, countries, or customer types), reconstruct the trigger condition from pre-deadline orders. This is often the lowest-traffic use case but the most consequential when missing, since an unintended payment method appearing, or a needed one disappearing, directly affects conversion.
  4. Cart validation. Logic blocking incompatible product combinations or quantity limits tied to specific SKUs is easy to skip during an audit, since it doesn't map intuitively onto "discount" or "shipping" framing. Post-deadline orders are the best evidence here: anything that got through since June 30 that shouldn't have tells you a validation rule existed.

There is one thing genuinely worth testing live, and it's the reverse of the usual instinct. Some logic you assume was Script-based may have been configured natively (automatic discounts, native rate thresholds), and native configuration still works. Testing sorts the logic that actually needs rebuilding from the logic that was never in a Script to begin with, which can meaningfully shrink the scope of work.

Mapping Common Script Patterns to Functions

Shopify Script patterns mapped to the Function category that replaces them
What the Script didFunction type that replaces itNotes
“Buy one, get one” or tiered discountsDiscount Function (Product/Order discount)Logic moves server-side; UI for the discount still shows in checkout as before
Spend-threshold free shippingDelivery customization FunctionReads cart total, returns a modified shipping rate
Hiding shipping rates by product type or destinationDelivery customization FunctionSame Function type as above, different logic
Customer-tag-based pricing or discountsDiscount Function, reading customer dataRequires the Function to have access to customer tag data — confirm your app/build supports this
Payment method filtering by cart contentsPayment customization FunctionRuns at checkout, evaluates cart before payment methods render
Cart validation (blocking incompatible product combinations)Cart and checkout validation FunctionDifferent Function category from discounts/shipping/payment
Quantity limits tied to specific SKUsCart and checkout validation FunctionSame category as above; commonly bundled with combination-blocking logic

A Worked Example: Rebuilding a Spend-Threshold Shipping Discount

To make the rebuild process concrete, here's what migrating one common pattern actually looks like end to end:

The six-step rebuild of a spend-threshold shipping Script as a Shopify Function, from identifying the old behavior to testing discount interactions
The six-step rebuild, shown for a spend-threshold shipping discount.
  1. Identify the old behavior. The Script gave free shipping once a cart total exceeded $100, applied automatically at checkout with no customer action needed.
  2. Classify the Function type. This is a Delivery customization Function — it needs to read the cart's total value and modify which shipping rate is presented or its cost.
  3. Define the logic precisely. Does the $100 threshold apply to the pre-tax or post-tax total? Does it include or exclude the cost of gift wrapping or other add-ons? These are exactly the small details that were implicit in the old Script and need to be made explicit again in the rebuild — assumptions that lived in someone's head three years ago don't automatically carry over.
  4. Build and deploy. Unlike a Script, this requires actual development work — writing the Function, deploying it through an app, and configuring it in the admin to run at the right point in checkout.
  5. Test against the original threshold logic. Carts at $99.99, exactly $100, and $100.01 — confirm the boundary behaves as intended, not just the obvious middle case.
  6. Test interaction with other discounts. If this store also has a percentage-off promotion running simultaneously, confirm the two don't conflict or double-apply in an unintended way.

This same six-step process applies to every pattern in the mapping table above — the specifics change, but the sequence (identify old behavior precisely, classify the Function type, define edge-case logic explicitly, build, test the boundary, test interactions) doesn't.

What a Rebuild Actually Involves, in Terms of Effort

Functions aren't merchant-editable the way Scripts were — they're built, tested, and deployed through an app, typically requiring developer involvement rather than a quick admin edit. For each piece of logic identified in the audit:

  1. Identify which Function category it belongs to (discount, delivery, payment, or validation)
  2. Rebuild the logic — this is genuine development work, not configuration
  3. Test against the same scenarios used in the audit, plus edge cases the original Script may have handled that aren't obvious from testing the happy path alone
  4. Deploy and re-test in production with real (or realistic test) cart scenarios

A single, simple discount rule is a small, contained piece of work. A store with five or six interacting pieces of Script-based logic (discounts, shipping, and payment rules that all reference each other) is a genuine project requiring its own test plan, not five isolated small tasks — the interactions between rules are often where the real complexity lives, not any single rule in isolation.

Prioritization: Revenue First, Cosmetic Last

If your audit turns up multiple broken pieces of logic, prioritize by revenue impact: a broken discount or shipping rule affects every qualifying order; a broken payment-method filter is more of an edge case unless it was blocking a specific high-volume payment type. Don't let five small issues get equal priority — fix the ones touching every transaction first, and treat anything affecting checkout completion (as opposed to a minor merchandising rule) as the top of the list regardless of how simple or complex it is to fix.

A Second Worked Example: Rebuilding Payment Method Filtering

Not every rebuild is a discount or shipping rule. Here's the same process applied to a payment-filtering pattern:

  1. Identify the old behavior. The Script hid “buy now, pay later” as a payment option whenever the cart contained a specific category of high-value item, to avoid fraud risk on that product line.
  2. Classify the Function type. This is a Payment customization Function — it evaluates cart contents before payment methods render and can hide or reorder available options.
  3. Define the logic precisely. Which specific product tags or collections triggered the hide? Was it based on individual item value or cart total? These details, again, were implicit in the old Script and need to be re-specified explicitly.
  4. Build and deploy. Payment customization Functions have their own review and deployment process through Shopify — budget time for this step specifically, since payment-related changes sometimes go through additional platform-level review compared to discount or shipping Functions.
  5. Test against the trigger condition directly — a cart with and without the flagged product category, confirming the payment method correctly shows or hides.
  6. Test the fallback experience. If a customer's only preferred payment method gets hidden by this logic, confirm the remaining checkout experience is still coherent rather than leaving them in a dead end.

Month free if we miss a bug

What else stopped working quietly?

Continuous end-to-end testing, month-to-month.

Setting Up a Testing Environment for Functions

Because Functions require actual deployment rather than a live-editable Script, testing benefits from a proper staging setup rather than testing changes directly against production. A workable approach:

  • Use a development store or staging environment that mirrors production theme and app configuration as closely as possible
  • Test each rebuilt Function in isolation first, using test carts built specifically to hit edge cases (exact threshold boundaries, empty carts, carts with unusual combinations of products)
  • Only after each Function passes isolated testing, test the full checkout flow with multiple Functions active simultaneously, since interaction effects between discount, shipping, and payment Functions are a common source of bugs that isolated testing alone won't catch
  • Keep a written record of every test scenario and its expected outcome — this becomes valuable regression-testing documentation for any future changes to the same logic

What Happens to Reporting and Analytics

A detail easy to overlook: if your old Scripts fed any custom reporting (a dashboard tracking how often a specific discount was used, for instance), that reporting stopped updating on June 30 right along with the Script itself. Rebuilding the underlying logic as a Function doesn't automatically restore reporting that was built against the old Script's specific implementation — if discount usage reporting matters to the business, it needs to be explicitly rebuilt against the new Function-based implementation, not assumed to resume automatically.

Coordinating with Your Development Team or Agency

Because this work requires actual development rather than admin configuration, the coordination overhead is real. If multiple pieces of Script-based logic are being rebuilt simultaneously, assign clear ownership per Function category (discount, shipping, payment, validation) rather than treating the whole audit as one undifferentiated backlog item — this makes it easier to track what's been tested and signed off versus what's still in progress, and avoids the scenario where “the Scripts migration” sits as one large, ambiguous ticket for weeks with no clear sense of partial progress.

What We're Seeing Across Audits

A pattern worth naming: stores that ran a single, simple Script often assume they have nothing to worry about, while stores that built several interacting Scripts over years often don't remember everything that was in place. The second group's audit routinely turns up at least one broken rule nobody expected — usually a shipping-rate rule or a legacy discount that predates the current marketing team, no longer documented anywhere except in the now-nonfunctional Script itself. If your Script history goes back more than a year or two, budget extra time for the inventory step specifically, since the audit itself often becomes an archaeology project before it becomes a rebuild project.

A second pattern: stores that outsourced their original Script development to an agency that's no longer engaged sometimes have no internal documentation of the logic at all. In these cases, the most reliable audit method is evidentiary: pull a sample of orders from before June 30 and read the logic off the outcomes, then compare against orders placed since to see what's gone missing. Testing the current site tells you nothing here, since none of the logic is running to begin with. Talking to whoever ran promotions and marketing campaigns over the Script's lifetime is often more productive than searching for old technical documentation, since promotional logic tends to be remembered in terms of “what deal we ran,” not in terms of the underlying Script implementation.

Budgeting Realistic Timelines

For a store with a small number of simple, independent Script rules, expect the full audit-to-rebuild-to-test cycle to run one to two weeks. For a store with five or more interacting rules across discount, shipping, and payment categories, expect four to six weeks, largely driven by the interaction-testing phase rather than any single rule's rebuild. Stores in the second category that treat this as a one-to-two week project consistently under-scope it, since the complexity is concentrated in how rules interact with each other, not in any single rule's individual rebuild. Functions run server-side and don't touch the storefront theme, so a Shopify Horizon theme migration is a separate project that doesn't change this scope.

The Mistake We See Most Often Here

Teams that rebuild the logic correctly but don't load-test it against realistic volume. A discount Function that works correctly for a single test cart can behave differently under real concurrent checkout volume, particularly around Black Friday/Cyber Monday-scale traffic, where many carts are evaluating the same Function simultaneously. Test rebuilt logic under volume, not just for correctness — a Function that's logically correct but slow under load can itself become a checkout bottleneck, trading one problem for another.

Frequently Asked Questions

How do I know if my Shopify Scripts stopped working?

They all stopped, on June 30, 2026, with no exceptions. There's no version of this where some Scripts kept running, so the useful question isn't whether they broke but what you lost when they did. Answering that means reconstructing the logic: export the Script source if it's still visible in your admin, pull orders from before the deadline to see what discounts, rates, and payment methods were actually applied, and talk to whoever ran the promotions. The rule configuration sitting in your admin tells you a rule existed, not what it did.

What replaces Shopify Scripts?

Shopify Functions, organized by category: Discount Functions, Delivery customization Functions, Payment customization Functions, and Cart/checkout validation Functions. Each Script pattern maps to one of these categories.

Can I still edit Scripts in my admin?

The configuration may still be visible, but Scripts stopped executing on June 30, 2026 — editing a non-functional Script doesn't restore functionality. That logic needs to be rebuilt as a Function.

Is rebuilding a Script as a Function a simple configuration change?

No — Functions are built and deployed through development work, not edited live in an admin panel the way Scripts were. Budget real development time, scaled to how many distinct pieces of logic you had and how much they interacted with each other.

What happens if I had multiple Scripts that interacted with each other?

This is where audits typically find the most complexity. Rebuild and test each piece individually, but also test the combinations — a discount and a shipping rule that used to interact correctly under the old Script model need to be verified together under Functions, not just separately.

How urgent is this compared to the other 2026 deadlines?

Arguably the most urgent in practice, since it's the only one that fails silently. The checkout.liquid and customer accounts deadlines are visible when missed; broken Script logic can sit unnoticed and costing revenue for months.

Does rebuilding a Script as a Function also restore any custom reporting I had built around it?

No — reporting built against the old Script's specific implementation stopped updating when the Script did, and rebuilding the underlying logic as a Function doesn't automatically restore it. If usage reporting matters, it needs to be rebuilt explicitly against the new implementation.

Do payment customization Functions go through additional review compared to discount or shipping Functions?

Sometimes — payment-related changes can involve additional platform-level review as part of deployment. Budget for this in your timeline rather than assuming identical turnaround across every Function type.

Month free if we miss a bug

The bugs that cost you do not throw errors.

Continuous end-to-end testing of every flow on your store, from $2,000 a month, published. Month-to-month, and the month is free if a customer finds a bug first.