Shopify Scripts Stopped Working? How to Fix It with Shopify Functions

By Eoin Villarin, 2026-11-15

Shopify retired Scripts on June 30, 2026, so tiered discounts, shipping and payment rules switched off. How to find what broke and rebuild it with Shopify Functions.

Why did my Shopify Scripts stop working?

Shopify retired Shopify Scripts and the Script Editor app on June 30, 2026, so scripts no longer run on any store. Discounts, shipping and payment rules built with scripts must be rebuilt as Shopify Functions, through a Functions-powered app (any plan) or a custom app (Shopify Plus).

Key takeaways

  • Shopify Scripts stopped running on every store on June 30, 2026; editing ended on April 15, 2026.
  • Line item scripts map to the Discount Function API and Cart Transform API.
  • Shipping scripts map to the Delivery Customization API, payment scripts to the Payment Customization API.
  • Public Functions apps work on any plan; custom apps with Functions need Shopify Plus.
  • Cover simple rules with an app first, then rebuild complex rules as a custom Function you own.

Shopify Scripts stopped working because Shopify retired them on June 30, 2026. Since that date, scripts no longer run on any store, so tiered discounts, free gifts, hidden shipping rates and payment rules built with the Script Editor have silently switched off. The fix is to rebuild each script as a Shopify Function, either through a Functions-powered app from the Shopify App Store or as a custom app (custom apps with Functions need Shopify Plus). This guide shows how to find what broke, which Function replaces each script type, and how to ship the fix without breaking checkout again.

What happened to Shopify Scripts

DateWhat changed
April 9, 2026Shopify announced the final Scripts retirement dates in its developer changelog
April 15, 2026Editing and publishing Shopify Scripts was no longer possible
June 30, 2026Shopify Scripts and the Script Editor app were retired and stopped running on every store

Scripts were Ruby code that ran on Shopify Plus checkouts. Shopify Functions replace them with compiled WebAssembly modules that run inside Shopify's infrastructure, are faster, and work with Checkout Extensibility. If your store relied on scripts and nobody migrated them, the logic is simply gone. Customers see full prices, every shipping rate and every payment method.

Shopify sign on an office building directory board
Shopify replaced Ruby Scripts with Shopify Functions for discounts, shipping and payments. Photo: Raysonho @ Open Grid Scheduler / Grid Engine, CC0, via Wikimedia Commons

Signs your store was hit

  • Tiered or volume discounts (buy 3, save 15%) no longer apply in the cart or checkout.
  • Buy X get Y, free gift with purchase or bundle pricing stopped working.
  • Wholesale or VIP customer-tag pricing shows retail prices.
  • Shipping rates you used to hide or rename (for example, express for PO boxes) are visible again.
  • Payment methods you hid for certain countries, order values or B2B customers now show for everyone.
  • Average order value or margin dropped around July 2026 with no other change.

Step 1: List every script you had

Before the Script Editor was retired, Shopify offered a Scripts customizations report to show which customizations could move to Functions or public apps. If you exported it, start there. If not, rebuild the list from:

  1. Your theme or developer repository, where many teams kept a copy of their Ruby script code.
  2. Old marketing calendars and promo pages that mention automatic discounts.
  3. Your shipping and payment settings: anything that only worked because a script hid or renamed it.
  4. Customer service tickets since July 2026 about missing discounts or wrong shipping options.

Write each script as a plain business rule, for example: "Customers tagged wholesale get 30% off all products," or "Hide cash on delivery for orders over $500."

Step 2: Match each script type to its Function

Old script typeWhat it didShopify Function replacement
Line item scriptsTiered discounts, BOGO, customer-tag pricing, free giftsDiscount Function API (product and order discounts), Cart Transform API for bundles
Shipping scriptsHide, rename or reorder shipping rates, shipping discountsDelivery Customization API, plus shipping discounts in the Discount Function API
Payment scriptsHide, rename or reorder payment methodsPayment Customization API
Checkout rules (often done in scripts or checkout.liquid)Block orders that break business rulesCart and Checkout Validation Function API

Step 3: App or custom Function?

You have two ways to bring the logic back:

ApproachWorks onBest forTrade-off
Functions-powered app from the Shopify App StoreAny Shopify plan (some capabilities are Plus only)Common rules: tiered discounts, free gifts, hiding payment or shipping methodsMonthly fee, limited to the app's settings
Custom app with your own FunctionsShopify PlusUnique logic, B2B pricing, complex combinationsDevelopment cost, you own and maintain the code

For a worked example with code, see my guide to Shopify tiered discounts with a Discount Function.

My rule of thumb: cover the simple rules with a well-reviewed app first so revenue stops leaking this week, then rebuild the complex or business-critical rules as a custom Function you control.

Person shopping online with a laptop and a credit card in hand
Every checkout without the expected discount or payment option is a customer who might not finish the order. Photo: Shixart1985, CC BY 2.0, via Wikimedia Commons

Step 4: Build and test the Function

  1. Create an app with Shopify CLI and generate a Function extension from the template for the API you need (discount, delivery customization, payment customization or validation).
  2. Pick the language. Functions compile to WebAssembly. Shopify provides templates for Rust and JavaScript and strongly recommends Rust for performance, because functions in other languages may fail on very large carts.
  3. Write the input query. Each Function declares the cart, customer and product data it needs through a GraphQL input query. Ask only for what you use.
  4. Move settings into metafields so marketing can change the discount percentage or customer tag without a code deploy.
  5. Test on a development store with real cart scenarios: single item, mixed cart, discount codes stacked with the automatic discount, different countries and customer tags.
  6. Deploy and activate the discount or customization in the Shopify admin, then place real test orders on mobile and desktop.

Step 5: Check the rest of your checkout

If your scripts were never migrated, other legacy parts of the checkout may also be out of date. Check these while you are in there:

  • Thank you and order status page customizations, which now need Checkout UI extensions. My Shopify Checkout Extensibility guide covers the full migration.
  • Tracking codes added through script tags or additional scripts. See my guide to moving script tags to Web Pixels.
  • Discount combinations: Functions follow Shopify's discount combination settings, which may behave differently from your old script logic.

How much does a Scripts to Functions migration cost?

ScopeTypical approachRough cost
1 to 3 simple rules (tiered discount, hide a payment method)Functions-powered appApp fee, often US$10 to US$50 a month
Several custom rules on Shopify PlusCustom app with FunctionsFrom about US$1,500 fixed price for a full audit, build and test
Complex B2B pricing, bundles and validationCustom app plus Cart Transform and Validation FunctionsQuoted after an audit of the rules

Published freelance offers for a full migration (audit, build on a duplicate store, cutover with a rollback plan, verification) start around US$1,500. Compare that with the margin you lose each week the rules stay off.

Need it fixed?

I build Shopify Functions and Checkout UI extensions for Shopify and Shopify Plus stores. If your discounts, shipping or payment rules stopped in July 2026, send me the list of rules and I will tell you which ones an app can cover and which need a custom Function. See my Shopify development services or request a free store audit.

Frequently asked questions

Why did my Shopify Scripts stop working?

Shopify retired Shopify Scripts and the Script Editor app on June 30, 2026. Since then, scripts no longer run on any store, so any discount, shipping or payment logic they handled is switched off.

Can I turn Shopify Scripts back on?

No. Editing and publishing scripts stopped on April 15, 2026 and execution ended on June 30, 2026. The logic has to be rebuilt with Shopify Functions or a Functions-powered app.

What replaced Shopify Scripts?

Shopify Functions. Line item scripts map to the Discount Function API and Cart Transform API, shipping scripts to the Delivery Customization API, and payment scripts to the Payment Customization API.

Do I need Shopify Plus to use Shopify Functions?

Not for public apps. Public apps from the Shopify App Store that use Functions work on any plan, though some capabilities are Plus only. Custom apps that contain Function APIs require Shopify Plus.

What language are Shopify Functions written in?

Any language that compiles to WebAssembly and meets Shopify's function requirements. Shopify provides Rust and JavaScript templates and recommends Rust for the best performance.

How long does a Scripts to Functions migration take?

Simple rules covered by an app can be live the same day. A custom app with several Functions usually takes one to three weeks including testing on a development store.

Sources

Related reading