Shopify guide

Migrating Shopify Scripts to Shopify Functions: what Plus merchants need to check

Shopify Scripts have not executed since 30 June 2026. The job now is not translating Ruby into another language, but assigning each business rule to the right solution: native Shopify functionality, a public app or a custom Function. This guide covers the boundaries, common mistakes and a reliable migration process.

Last updated: · Kevin Metzdorf

In short

Shopify Scripts are no longer a working fallback. Editing and publishing ended on 15 April 2026, and execution ended on 30 June 2026. If you are planning a migration now, start by checking which discount, shipping and payment rules are actually missing from the live checkout. An existing script file does not prove that the rule still runs.

Functions replace business logic, not automatically every previous implementation. Start with native discounts, catalogues and payment settings. Use an existing app for standard cases it covers. Custom code makes sense when several rules and data sources interact and you can define the business boundaries clearly.

Technical reference: 29 October 2026, Function APIs 2026-10. Before implementation, recheck the specific API, supported surfaces and capabilities available to the store.

What happens to the three Script types?

The important distinction is the intended effect: a discount, the visibility of an option or additional UI. One shipping rule may therefore require two different APIs.

Previous Script type Destination in the current stack Important boundary
Line Item: product or cart discount Discount API, particularly cart.lines.discounts.generate.run Explicitly test discount combinations, calculation basis and exclusions
Shipping: hide, rename or sort options Delivery Customization API Changes existing options; does not create arbitrary new rates
Shipping: discount a shipping price Discount API, particularly cart.delivery-options.discounts.generate.run A shipping discount is not a new shipping-rate calculation
Payment: hide, rename or sort methods Payment Customization API Not a new payment provider or freely programmable payment processing

A Line Item Script that also changes cart lines cannot be ported merely by substituting a discount API. Separately check whether Cart Transform or another native feature supports that use case. API availability, bundles and subscriptions each need their own review.

Do not confuse Functions with UI

A Checkout UI Extension can add messages, selection fields or other supported UI. It does not replace a server-side discount or payment rule. A business decision must not rely solely on a particular UI block being rendered. The information, shipping and payment steps require Plus; other checkout surfaces have their own rules.

Checkout Blocks, a public app or a custom Function?

Compare the actual rules supported, not the number of apps. Stacking three tools that control the same payment method differently is rarely clean architecture.

Criterion Checkout Blocks Public app, such as Sovio Checkout & Pricing Custom Function app
Good fit Supported no-code rules and checkout content A clearly covered standard case; payment rules here Individual combinations and your own data models
Plan Discount, payment and delivery features here require Plus; limited content blocks on thank-you/status pages from Basic Supported regular plans; details depend on the app and Function API Functions in custom apps require Plus; additional API restrictions apply
Business scope Conditions provided by Shopify’s app Sovio: payment rules, BOGO and selected discount promotions; no new shipping-rate calculation or ERP logic Exactly the agreed scope, within supported APIs only
Data access Conditions exposed by Checkout Blocks Conditions exposed by the app provider Data available in the Function schema and prepared metafields
Maintenance Team configuration; Shopify maintains the app Provider handles configuration features and updates Versioned code, tests, releases and an accountable operator
Economics Useful when rules fit without extra logic Little internal development when the feature set fits Worthwhile when a defined benefit covers development and ongoing maintenance

Sovio Checkout & Pricing is an option for certain Payment and Discount Script cases, not a universal Scripts replacement. The app page and FAQ define the scope. New shipping rates, complex pricing logic or ERP processes require a different or additional component.

B2B and bundles: where apparently simple migrations fail

A rule saying “business customers get different terms” is not a specification. Establish whether company/location context, catalogue price, customer tag or payment terms drive the decision. A missing login is not the same as confirmed non-B2B status. Use native catalogues and terms where they cover the requirement instead of rebuilding them in discount code.

For bundles, the price basis, components and quantities must agree. A discount must not unintentionally apply both to a bundle and to components already accounted for. Also define how the rule interacts with vouchers, other discounts, currencies and partial quantities.

An example acceptance test: a signed-in company customer buys a bundle and a standalone item, already has a discount code and selects pickup. Record expected prices and visible payment methods before implementation. Then test the same cart as a guest and a case with missing metafields.

Performance limits are part of the architecture

Functions run in a constrained WebAssembly environment, not as an arbitrary Node.js server. The 2026-10 reference gives the following dynamic baseline limits for carts with up to 200 lines; above that, these values scale with line count. The calculated limits for the actual execution remain authoritative.

Resource Reference up to 200 cart lines Implementation consequence
Execution budget 11 million instructions Select and calculate deliberately; test representative large carts
Function input 128 kB Load only required fields and compact configuration
Function output 20 kB Avoid unnecessary operations for every possible combination
Units 1 kB = 1,000 bytes Measure test data in bytes, not apparent text length

The normal run target cannot make arbitrary ERP network calls. Prepare required rules and values in Shopify beforehand. Special fetch targets require separate enablement and are mainly restricted to enterprise custom apps. They are not a shortcut allowing every Plus store to put a slow ERP in the checkout path.

A reliable migration process

  1. Build an inventory: Save old Scripts and the available customisations report; record every active business rule, its owner and purpose.
  2. Check native options: Compare discounts, catalogues and payment/delivery settings against the rule. Deliberately retire obsolete exceptions.
  3. Map rule to API: Document required inputs, output, Plus/API requirements and dependencies.
  4. Define reference cases: Include guests, B2B, bundles, multiple discounts, large carts, missing data and accelerated checkout paths.
  5. Develop and accept separately: Test the Function, optional UI and data supply; do not activate overlapping pricing/payment controls together without review.
  6. Switch over deliberately: Document configuration and responsibilities, monitor errors and prepare a fallback to a previously tested native/app configuration — not discontinued Scripts.

Admin configuration, app installation and live-checkout approval require appropriate store permissions. A Git commit alone does not perform those steps.

When a custom app in two to four weeks makes sense

For a bounded set of rules, known data and clear tests, 2–4 weeks can be a useful planning range. It is not a guarantee for every Scripts migration. A new ERP data model, unresolved bundle logic or several additional checkout flows change the effort required.

A lean custom app is useful when it models a defined process better than working around several app boundaries. It remains software with testing, update and operational responsibilities. Start with custom apps and Functions; for an unclear existing setup, begin with a technical audit.

Frequently asked questions

Do old Shopify Scripts still run?

No. Editing and publishing ended on 15 April 2026; execution ended on 30 June 2026. Check which rules actually take effect in checkout rather than treating an existing script as proof that the logic still works.

Which API replaces Shipping Scripts?

There is no single one-to-one replacement API: Delivery Customization hides, renames or sorts existing delivery options. Shipping discounts belong to the Discount API. New calculated shipping rates need a suitable shipping solution, such as the Carrier Service API with its own plan requirements.

Do I need Shopify Plus for Functions?

Public Shopify App Store apps can provide Functions on supported regular plans. Custom apps containing Function APIs require Plus; individual APIs and capabilities have further restrictions. UI extensions on the information, shipping and payment steps also require Plus.

Can Sovio Checkout & Pricing replace all old Scripts?

No. Sovio covers payment rules plus BOGO, volume tiers, fixed-amount discounts and free shipping. It can replace certain Payment and Discount Script cases, but not arbitrary legacy logic, a new shipping-rate calculation or an ERP. Check each old rule against the supported scope.

Can a Function request a live price from an ERP?

Not in the normal run target. Prepare the required data in structured form within Shopify and select only supported fields in the Function input. Some APIs have fetch targets with separately enabled network access, mainly for enterprise custom apps; this is not a general Plus feature.

Is a custom solution in two to four weeks realistic?

That can be a realistic planning range for a clearly bounded, pre-checked set of rules with available data and defined acceptance tests. Unknown legacy logic, ERP dependencies, complex bundles or additional UI flows need their own estimate. The timeframe is not a blanket delivery promise.

Sources

  1. Shopify changelog: Scripts shutdown on 30 June 2026
  2. Shopify: Functions and app availability
  3. Shopify Functions API 2026-10: APIs and resource limits
  4. Shopify: network access for Functions
  5. Shopify: checkout extensions and plan requirements
  6. Shopify Help Center: Checkout Blocks
  7. Sovio Checkout & Pricing: existing product description