Shopify Scripts are gone: how to move checkout logic to Shopify Functions
Shopify Scripts stopped running on June 30, 2026. Here’s what changed, how each Script type maps to a Shopify Function, and the fastest way to rebuild what you lost.
Key takeaways
- Editing and publishing Shopify Scripts ended on April 15, 2026, and all Scripts stopped running on June 30, 2026.
- Shopify Functions replace Scripts for discount, shipping, payment and checkout validation logic.
- The Scripts customizations report in your Shopify admin lists what was active and points to replacements.
- Most Script rules can be rebuilt without code in a public Functions app; unusual logic may need a custom function.
What happened
Shopify announced the timeline in its changelog on March 12, 2026: editing and publishing new Shopify Scripts ended on April 15, 2026, and all Scripts stopped executing on June 30, 2026. Scripts were a Shopify Plus feature, written in Ruby in the Script Editor app, and powered line item, shipping and payment customizations at checkout.
If your store relied on Scripts and nothing replaced them, those customizations are no longer running. Tiered discounts, hidden shipping rates and hidden payment methods fall back to Shopify’s default behavior, which can quietly change margins, delivery costs and fraud exposure.
How Script types map to Shopify Functions
Shopify Functions are the replacement. Each kind of Script has one or more Function APIs that cover the same job:
- Line item scripts: the Discounts API for product and order discounts, the Cart Transform API for bundles and line item changes, and the Cart and Checkout Validation API to block checkout under specific conditions.
- Shipping scripts: the Delivery Customization API to hide, rename or reorder rates, and the Discounts API for shipping discounts.
- Payment scripts: the Payment Customization API to hide, rename or reorder payment methods.
A practical migration plan
- Open the Scripts customizations report from the “Replace Shopify Scripts” banner in the Script Editor, or in Settings → Checkout. It groups what was active into payment gateways, shipping and product discounts, and you can export it as a CSV.
- Write each rule down in plain language: the conditions, the result and an example cart. This becomes your test plan.
- Pick a home for each rule: a native Shopify discount for simple cases, a public Functions app for most conditional rules, or a custom function for unusual logic. Custom apps that contain Functions require Shopify Plus.
- Test against realistic carts before publishing: different customers, addresses, markets, currencies and cart sizes.
- Publish, then watch conversion, average order value and support tickets closely for the first week.
What Functions do differently
Functions run inside Shopify’s own infrastructure as WebAssembly modules, so they are fast and independent of your theme. Each function receives a defined input, such as the cart, customer and delivery address, and returns operations. Logic that relied on data a function cannot read, such as a customer’s full order history beyond fields like order count and amount spent, usually needs a different signal, for example a customer tag or metafield set by Shopify Flow or an app.
Functions from public apps work on every Shopify plan. That means many stores that never had Scripts can now run the same kind of checkout logic.
How FleekApps can help
FunctionFlow AI, our Shopify app, rebuilds most Script logic without code: discounts, shipping and payment rules and checkout validation, with a tester that runs the compiled function against a sample cart and a test mode for tagged customers. For logic that needs a custom function or a Shopify Plus custom app, our Custom Apps & Extensions team builds and tests it with you.
FAQ
When did Shopify Scripts stop working?
All Shopify Scripts stopped executing on June 30, 2026. Editing and publishing new Scripts had already ended on April 15, 2026.
What replaces Shopify Scripts?
Shopify Functions. Line item scripts map to the Discounts, Cart Transform and Cart and Checkout Validation APIs, shipping scripts to the Delivery Customization and Discounts APIs, and payment scripts to the Payment Customization API.
Do I need Shopify Plus to use Shopify Functions?
No. Functions delivered by public apps work on every Shopify plan. Only custom apps that contain Shopify Functions require Shopify Plus.