← All notes
E-commerce Development7 min

A checkout UI extension is not a Shopify Function

Shopify Scripts stopped executing on 30 June 2026. For a decade a Plus Script could discount a line, hide a payment method, and inject a banner from the same Ruby file. The replacement is not one tool — it is a split. Shopify Functions change what the platform decides: discounts, delivery and payment options, cart transforms, validations. Checkout UI extensions change what the shopper sees at defined targets. On Al's Flowers and Provale Cup we still find migration tickets that treat "move the Script to an extension" as a single surface. That is how pricing rules end up in React that Shop Pay never runs, and how teams try to render UI from a Wasm module that has no DOM.

One Script job, two replacement surfaces

A Script answered three questions at once: what should the price be, which options should appear, and what should the shopper read. Checkout Extensibility answers those with different APIs. Functions take a GraphQL input query, run as WebAssembly on Shopify's servers, and return operations — adjust a discount, hide a payment method, transform a line, reject a cart. They do not render components.

Checkout UI extensions mount at block, static, or runnable targets and draw Polaris web components into the checkout, Thank you, and Order status surfaces. They can write cart attributes and metafields, call an app backend when network access is granted, and explain a decision the shopper can see. They are not the place to own the decision that must hold on every purchase path.

If your migration plan still says "port the Script" without naming which half is Function and which half is UI, you have not scoped the work. You have renamed it.

Functions decide; extensions present

Put platform facts in Functions: wholesale tiers, bundle transforms, payment method gates, delivery reordering, cart validation. Those rules must hold when the shopper never visits a step your extension mounts on — including express wallets and agent-built carts. Shopify invokes Functions inside its own checkout logic; nothing in the browser has to cooperate.

Put presentation in UI extensions: gift message fields, upsell blocks, policy banners, delivery window pickers that write a metafield the Function later reads. The extension collects and explains. The Function enforces. That pairing is intentional — cart attributes and metafields are the handshake, not a shared React tree.

We already wrote about buyer-journey intercepts versus validation Functions. That note is the special case of a UI hook pretending to be a cart rule. This note is the broader seam: after Scripts, every customization has to declare whether it is a decision or a presentation. Mixing them is how you get two sources of truth again.

What each surface cannot do for you

Functions cannot paint UI and they do not make casual network calls. Live ERP credit, courier tables, or fraud scores have to be pre-staged into metafields or other cart-visible inputs before evaluation — the same constraint we hit when moving intercepts server-side. Designing a Function around a fetch you used to make from Additional Scripts is a scope miss, not a Wasm bug.

UI extensions cannot replace discount, payment, or delivery Functions. Hiding a payment button in the long checkout does not hide it for Shop Pay. Showing a "case pack" warning does not stop a wallet from completing an invalid quantity. If the Script used to change money or options, the Function owns that change; the extension at most narrates it.

Also separate Web Pixels and Customer Events from both. Tracking that lived in Additional Scripts is not a Function and not a checkout UI target. Collapsing analytics into the same "extensibility" ticket is how conversion pixels and pricing migrations block each other.

How we split a Script inventory

List every surviving Script and Additional Script behavior in plain language. Tag each line: decides money or options, presents UI, tracks an event, or is dead. Delete the dead. Route decides → Function APIs (discount, payment customization, delivery customization, cart transform, validation). Route presents → UI extension targets. Route tracks → Web Pixels.

For each Function, write the input fields you need before you scaffold. Confirm Plus vs non-Plus capability limits early — custom Function apps and some checkout UI targets are Plus-gated even when public App Store Functions are not. For each UI extension, name the target and what metafield or attribute the Function will read. Deploy them as a pair when the rule needs explanation and enforcement.

Test on the long checkout and on every express wallet you accept. Place an order that should get the discount, one that should not, and one that should fail validation. If only the long path behaves, you still have presentation without a decision — the Script shape in new clothes.

What we check before calling the migration done

No live pricing, payment, delivery, or cart-validity rule exists only in a UI extension. No Function is expected to render a banner. Web Pixels own former Additional Scripts tracking. Deprecated intercept / block_progress paths are removed from deployed extensions when the rule moved to validation Functions.

Merchants can name which Function owns each former Script behavior and which extension presents it. Steering docs list both, with the metafield or attribute that connects them. Overlapping Wasm modules without owners count as unfinished migration, not coverage.

The milestone is simple: after Scripts stopped, every customization has a declared surface — Function, UI extension, or pixel — and decisions hold on wallets as well as the long path. Until that split is explicit, "we moved to Extensibility" is still one Ruby box wearing two logos.

Questions

Can a checkout UI extension replace a Shopify Script?
Only the presentation half. Anything that changed prices, options, transforms, or cart validity needs a Function. The extension can collect input and explain the result; it should not be the only place the rule runs.
How is this different from buyer-journey intercept vs validation?
That note covers one deprecated UI hook versus Cart and Checkout Validation Functions. This one is the full post-Scripts split: Functions decide across APIs; UI extensions present at targets; pixels track. Intercepts are one failure mode inside that split.
Where do Additional Scripts / tracking go?
Neither Functions nor checkout UI extensions. Move conversion and analytics to Web Pixels via Customer Events so pricing and presentation migrations stay unblocked.

Sources

  1. Shopify — About Shopify Functions — Backend logic via Wasm; input query → operations; no UI surface.
  2. Shopify — Checkout UI extensions — Targets, components, cart attribute/metafield updates for presentation.
  3. Related: A buyer journey intercept is not checkout validation — Special case — UI intercept vs validation Function on wallets.
  4. Related: Don't rebuild the cart

Have something to build?

Tell us what you're working on and we'll tell you honestly whether we're the right fit.

Work with us