If your Shopify Plus store still runs on checkout.liquid, you are working on borrowed time. Shopify deprecated that file in August 2024, and the old Ruby Scripts that went with it followed in August 2025. Every platform update since then has been a risk: one change can break a custom banner, a delivery-date picker, or the tracking your ads depend on. Checkout Extensibility is the replacement — checkout UI extensions built in React, business logic in Shopify Functions, and tracking through the sandboxed Web Pixels API. This guide walks through that move, step by step, using the migration checklist and code patterns our team uses on real Plus stores.
This is now the site’s single guide to Checkout Extensibility, combining the migration checklists from our earlier October and September guides with the sales and upsell examples below. Four pieces do the work: checkout UI extensions for what shoppers see, Shopify Functions for discounts, shipping and payment rules, Web Pixels for tracking, and the Branding API for fonts, colours and button shapes. Start in the CLI with shopify app generate extension –template checkout_ui, target a real placement such as purchase.checkout.shipping-option-list.render-before, and build with the Polaris components Shopify provides — a Checkbox for a gift option, a Banner for a delivery notice — rather than injecting custom CSS or DOM scripts.
Why This Migration Cannot Wait
Checkout Extensibility gives you custom UI components that live natively inside the unified Shop Pay checkout — not pasted on top of it. The old way was fragile by design: every platform update could break a hand-edited template or a payment workflow, and the third-party JavaScript snippets injected straight into the document object model slowed the page and created compliance risk. The new way removes the template from the equation entirely.
Unlike legacy architectures, Shopify Checkout Extensibility runs inside isolated Web Worker sandboxes. Customizations are built as modular extensions that render seamlessly across web, mobile, and dynamic one-click checkout flows. According to official developer documentation on the Shopify Developer Portal, replacing arbitrary script execution with native extensibility components yields significantly higher conversion rates due to sub-second UI updates and standardized design systems.
The Architecture, Side by Side
The table below is the whole migration in one view: how each layer worked in checkout.liquid, and what replaces it now.
| Architectural Layer | Legacy checkout.liquid | Shopify Checkout Extensibility |
|---|---|---|
| Rendering Engine | Server-Side Liquid Template Markup | Client-Side React UI Extensions (Web Workers) |
| Backend Logic | Ruby Script Tags & Storefront JS Hooks | Shopify Functions (Compiled to WebAssembly) |
| Analytics Tracking | Inline JavaScript Tags (Direct DOM Access) | Web Pixels API (Sandboxed Event Bus) |
| Performance Impact | High latency; main-thread blocking | No main-thread blocking; predictable FPS |
| Upgrade Path | Manual code updates required per platform release | Automatic, non-breaking platform updates |
Moving from synchronous Liquid evaluation to asynchronous client extensions is what makes the new checkout faster and more resilient. Extensions run on an isolated thread using standardized APIs, so a slow third-party script cannot freeze the checkout — and a bad deploy cannot take the payment flow down with it.

5 Easy Steps to Implement Shopify Checkout Extensibility
Transitioning an enterprise codebase requires a methodical execution path. Below is the battle-tested roadmap engineered to help developers refactor legacy checkouts with zero downtime and total risk mitigation.
Step 1: Audit Existing Scripts and Custom Liquid Modifications
Before making the shift to Shopify Checkout Extensibility, audit every custom script, CSS override, and third-party tracking snippet residing inside your legacy checkout.liquid file. Group these custom elements into four primary technical categories:
- Visual UI Modifications: Custom banners, upsell widgets, delivery date pickers, or TRUST badges.
- Business Logic Rules: Dynamic shipping discounts, payment method hiding, or restricted zip codes.
- Analytics & Pixel Tracking: Google Tag Manager, Meta Pixel, TikTok tracking, or custom data pipelines.
- Form Validations: Custom field validation for tax IDs, PO Boxes, or age verification requirements.
Step 2: Replace Script Tags with the Web Pixels API
Directly injecting third-party tracking scripts into the document header poses massive security risks and slows down render times. Under the modern architecture, tracking code must be refactored to use the Web Pixels API. Pixels execute inside an isolated sandbox environment and subscribe to standardized e-commerce events published by the checkout core.
// Example Web Pixel event subscription for checkout completion
shopify.sub('checkout_completed', (event) => {
const checkout = event.data.checkout;
const orderId = checkout.order.id;
const totalValue = checkout.totalPrice.amount;
// Send payload safely to third-party analytics endpoint
fetch('https://analytics.example.com/collect', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
orderId: orderId,
revenue: totalValue,
currency: checkout.totalPrice.currencyCode,
timestamp: event.timestamp
}),
keepalive: true
});
});Step 3: Building UI Extensions with Shopify Checkout Extensibility
Building custom checkout components requires a solid understanding of how Shopify Checkout Extensibility renders UI elements. UI Extensions rely on a structured React framework provided by Shopify. Direct HTML injection is blocked; instead, developers utilize strongly typed primitives that automatically match the merchant’s theme styling and accessibility settings.
Consider this real-world example of an upsell component built with React and the Checkout UI Extension library:
import {
render,
BlockStack,
Heading,
Text,
Button,
InlineLayout,
Image,
useApplyAttributeChange,
useApi
} from '@shopify/ui-extensions-react/checkout';
render('Purchase.Checkout.Block.Render', () => <CheckoutUpsellWidget />);
function CheckoutUpsellWidget() {
const { extension } = useApi();
const applyAttributeChange = useApplyAttributeChange();
const handleAddGiftWrap = async () => {
const result = await applyAttributeChange({
type: 'updateAttribute',
key: 'GiftWrappingOption',
value: 'Selected-Premium-Packaging'
});
console.log('Attribute update status:', result.type);
};
return (
<BlockStack spacing="medium" border="base" padding="base" borderRadius="medium">
<Heading level={3}>Upgrade Your Packaging</Heading>
<InlineLayout columns={['20%', 'fill', 'auto']} blockAlignment="center" spacing="small">
<Image source="https://cdn.shopify.com/s/files/1/0000/gift-icon.png" description="Gift Box" />
<Text size="medium" appearance="subdued">Add sustainable luxury gift packaging for $5.00</Text>
<Button kind="secondary" onPress={handleAddGiftWrap}>
Add Packaging
</Button>
</InlineLayout>
</BlockStack>
);
}Step 4: Refactor Backend Business Logic Using Shopify Functions
Ready to Build, Fix, or Scale Your Website?
One Code Stream engineers high-speed, conversion-focused websites, custom web applications, and e-commerce solutions for global businesses. Let’s turn your vision into measurable digital growth.
When configuring custom discounts or shipping options in Shopify Checkout Extensibility, Shopify Functions serve as the backend replacement for legacy Ruby Script Editor scripts. Functions are compiled to WebAssembly (Wasm) and execute ultra-fast directly on Shopify’s infrastructure (typically sub-5 milliseconds latency).
For example, if you need to calculate volume discounts or restrict shipping methods based on customer tags, write a WebAssembly function targeting the GraphQL schema:
# GraphQL Input Query for Shipping Customization Function
query RunInput {
cart {
lines {
quantity
merchandise {
... on ProductVariant {
id
title
}
}
}
deliveryGroups {
deliveryOptions {
handle
title
}
}
}
}Step 5: Test, Validate, and Deploy via App Blocks
Unlike old Liquid files edited live on production stores, extensions are packaged inside custom Shopify Apps. This introduces modern software engineering practices, including local development via Shopify CLI, staging environments, CI/CD pipeline integration, and automated regression testing. Once published, non-technical team members can place visual extension components directly onto the checkout page using the point-and-click Checkout Editor tool.

Technical Best Practices for Performance & Security
Optimizing overall performance in Shopify Checkout Extensibility demands clean React components and disciplined state management. Because custom UI extensions run in sandbox environments off the main thread, DOM blocking is eliminated. However, poorly written API calls or unhandled promises can still introduce unwanted latency into the user interface.
Adhere strictly to modern frontend engineering standards, such as those recommended in the official React Documentation. Key best practices include:
- Minimize External REST Calls: Fetch supplementary data using the provided GraphQL hooks rather than triggering external
fetch()calls to third-party microservices whenever possible. - Leverage Built-In UI Primitives: Never attempt to load heavy CSS-in-JS libraries or custom DOM manipulations inside a checkout web worker. Stick strictly to standard Shopify UI components.
- Cache Microservice Payload Responses: When external server calls are mandatory, implement aggressive client-side caching strategies to ensure page transitions remain instantaneous.
- Implement Feature Flags: Use feature management strategies to gracefully degrade extensions during unexpected server outages or third-party API rate limiting.
Troubleshooting Common Migration Pitfalls
A frequent roadblock when moving to Shopify Checkout Extensibility involves third-party tracking scripts. Many legacy app vendors provided code snippets that relied on global variables (such as window.Shopify.checkout). These snippets will fail completely in modern sandboxed web workers. Engineering teams must push third-party vendors to support native App Blocks or rebuild their tracking logic using custom Web Pixel handlers.
Another common issue revolves around dynamic field mapping. If your store relies on cart attributes or line item property metadata to drive backend ERP syncs, verify that your modern Checkout UI Extension explicitly uses the useApplyAttributeChange hook. Failing to mutate cart attributes correctly through official extension APIs will lead to missing order metadata downstream in your fulfillment engine.
Conclusion
Adopting Shopify Checkout Extensibility empowers engineering teams to build blindingly fast, highly customizable, and robust e-commerce checkout pipelines. By refactoring legacy Liquid hacks into structured React components, WebAssembly functions, and sandboxed pixel listeners, you protect your infrastructure against platform updates while delivering an optimized checkout experience. Begin auditing your current legacy codebase today to unlock the full engineering capabilities of modern Shopify development.




