Shopify Scripts to Shopify Functions migration diagram showing custom discount, shipping, and payment logic on Shopify Plus by CodeVibez.

Shopify Scripts Are Gone: Rebuilding Discount, Shipping and Payment Logic with Functions

If your "Buy 2, get 1 free" deal quietly stopped working this summer, or your free shipping rule started showing up for the wrong customers, you're not alone.

On June 30, 2026, Shopify switched off Shopify Scripts for good. Any Script still published on a store was deactivated, and the checkout went back to Shopify's default behavior. For some stores that meant nothing. For others, it meant lost discounts, wrong shipping options, and payment methods appearing where they shouldn't.

The good news is that everything Scripts used to do can be rebuilt, usually in a cleaner and faster way, with Shopify Functions. This guide explains what changed, how to find out what your store lost, and how to rebuild it without guesswork.

The Short Answer

Shopify Scripts stopped running on June 30, 2026. Their replacement is Shopify Functions. To rebuild your old logic, open the Shopify Scripts customizations report in your admin, decide which rules you still need, then recreate each one using an app built on Functions or a custom Function written for your store. Custom Functions require Shopify Plus.

What Happened to Shopify Scripts?

Shopify Scripts were small pieces of Ruby code that Plus stores used to change how the cart and checkout behaved. They powered things like tiered discounts, hidden shipping methods, and payment rules for certain customers.

Shopify retired them in two steps, according to its developer changelog:

  • April 15, 2026: Stores could no longer edit Scripts or publish new ones.

  • June 30, 2026: All Scripts stopped running entirely.

Since June 30, any Script that was still live has been deactivated. There's no grace period and no switch to turn them back on.

What Stopped Working

Scripts handled three main areas, and losing them shows up in different ways:

  • Product discounts: Bundle deals, tiered pricing, "buy X get Y" offers, and VIP or wholesale pricing stop applying, or apply differently.

  • Shipping rules: Shipping methods that used to be hidden, renamed, or reordered all show up in their default state.

  • Payment rules: Payment options you used to hide for certain customers, countries, or order values appear for everyone again.

If your team noticed odd checkout behavior in early July, this is the most likely reason.

What Are Shopify Functions?

Shopify Functions are small programs that customize Shopify's backend logic during cart and checkout. They handle the same kinds of jobs Scripts did, such as discounts, shipping options, and payment methods, plus a few more like cart validation and order routing.

The biggest practical difference is how they're delivered. A Script was code pasted into one store. A Function is packaged inside an app, so once it's installed, your team can usually manage the rules from the Shopify admin without touching code.

How Functions Differ from Scripts


Shopify Scripts (retired)

Shopify Functions

Status

Stopped running June 30, 2026

Active and expanding

Language

Ruby

Any language that compiles to WebAssembly (Shopify recommends Rust; JavaScript is also supported)

Where the code lives

Pasted into the Script Editor in one store

Packaged inside an app

Who manages the rules

A developer editing code

Usually your team, through settings in the admin

Speed

More prone to timeout and memory limit issues

Shopify says Functions run in under 5 milliseconds

Plan

Shopify Plus only

Public apps on any plan, custom Functions on Plus

Shopify's Help Center notes that this speed is what lets Functions hold up during flash sales and other big traffic spikes.

Which Function Replaces Which Script?

Each type of Script has a matching Function API. Here's where your old logic now lives, based on Shopify's Function APIs reference.

What your Script used to do

Function API that replaces it

Example rules you can rebuild

Product and cart discounts

Discount

Tiered pricing, buy X get Y, bundle pricing, VIP or wholesale discounts

Shipping discounts

Discount (delivery discounts)

Free or reduced shipping for certain customers or cart values

Hiding, renaming, or reordering shipping methods

Delivery Customization

Hide express shipping for heavy items, rename a method, push a preferred option to the top

Hiding, renaming, or reordering payment methods

Payment Customization

Hide cash on delivery above an order value, show net terms only to approved B2B buyers

Changing how items appear or are priced in the cart

Cart Transform

Combine items into a bundle, expand a bundle into its parts

Functions also cover jobs Scripts never could, such as blocking a checkout that breaks your rules (Cart and Checkout Validation) or choosing which warehouse fulfills an order (Order Routing). If you've been handling those with workarounds, now's a good time to clean them up.

How to Rebuild Your Logic, Step by Step

You don't need to rebuild everything at once. Start with what affects revenue the most, then work down the list.

Step 1: Open Your Scripts Customizations Report

Shopify created a personalized report for every store that used Scripts. To find it, go to Apps > Script Editor in your Shopify admin and click Replace Shopify Scripts.

The report lists the Scripts that were active before June 30, grouped into Product discounts, Shipping, and Payment gateways. For each one, it shows the original code, suggested apps built on Functions, and links to the right Function API guide. You can also export it as a CSV, which is handy for sharing with your developer.

Step 2: Decide What You Actually Still Need

This is the step most stores rush, and it's worth slowing down. Many Scripts were written years ago for a promotion, a customer group, or a shipping partner that no longer exists.

For each Script, ask:

  • Is this rule still part of how we sell today?

  • Has it been patched with exceptions over time that nobody fully understands?

  • Could a simpler rule do the same job?

If a rule is no longer used, you don't need to rebuild it. If it has grown messy, rebuild the version you need now, not the one you had.

Step 3: Choose an App or a Custom Function

For each rule you're keeping, there are two routes.

Use an existing app when your rule is fairly common, such as tiered discounts, standard bundles, or hiding a payment method by country. Shopify's report links to apps that match your Scripts, and there are many apps built on Shopify Functions in the App Store. This is usually the fastest and lowest-cost option.

Build a custom Function when your rule is specific to your business and no app handles it properly. Think of pricing tied to your own customer tiers, shipping logic tied to your warehouse setup, or B2B rules that depend on data from your ERP. A custom Function is built once, tested, and then managed from your admin.

Step 4: Build and Test Before You Go Live

Whichever route you choose, test it properly. Run real-world carts through checkout: small and large orders, different customer types, different countries, and every discount combination you actually offer.

Pay special attention to how discounts stack. Rules that used to live in one Script may now be split across several Functions or apps, and the way they combine can change.

Step 5: Document Your Rules

Write down what each Function or app does, who owns it, and why it exists. It sounds basic, but it's exactly what was missing for many stores when Scripts ended. A one-page record saves hours the next time someone asks why a discount behaves the way it does.

Do You Need Shopify Plus to Use Functions?

It depends on which route you take. Shopify's API availability rules are clear on this:

  • Public apps from the Shopify App Store that contain Functions work on any plan, unless an individual API says otherwise.

  • Custom apps that contain Functions, meaning apps built only for your store, need Shopify Plus.

This matters because Scripts were a Plus-only feature, so any store that had them was already on Plus. If you're still on Plus, you have both options. If you've moved to a standard plan since, you'll be limited to public apps.

One technical note for your developer: Shopify says custom Functions-based apps must be created through the Shopify Dev Dashboard and then connected to your store. Custom apps created directly in the Shopify admin don't support them.

If you're weighing whether Plus is still worth it now that Scripts are gone, our guide on [Shopify vs Shopify Plus in 2026](BLOG #1 URL) walks through the decision.

Common Problems After the Cutoff (and Where to Look)

If something feels off at checkout, these are the usual suspects.

"Our discount isn't applying anymore." The rule probably lived in a product discount Script. Check the Product discounts section of your customizations report, then rebuild it with a discount app or a custom Discount Function.

"Discounts are stacking in ways they shouldn't." Once rules are split across different apps or Functions, they can combine in ways the old Script prevented. Review the combination settings on each discount in your admin.

"Customers are seeing shipping options they shouldn't." A shipping Script used to hide or rename those methods. Rebuild it with a Delivery Customization app or Function.

"The wrong payment methods are showing." A payment gateway Script used to control them. Rebuild it with a Payment Customization app or Function.

"Wholesale buyers are seeing retail prices." If your B2B pricing ran through a Script, look at Shopify's native B2B catalogs first. They may cover what you need without custom code, and they're also available on standard plans with some limits.

"We replaced our Scripts with a pile of apps and it's hard to manage." Several overlapping apps each doing one small job adds monthly cost and makes it harder to see which rule does what. Sometimes one well-built custom Function can replace a few of them and give you a single place to manage the logic.

Frequently Asked Questions

Can I turn my old Shopify Scripts back on?

No. Shopify deactivated all published Scripts on June 30, 2026, and they can't be reactivated. Any logic you still need has to be rebuilt with Shopify Functions or an app built on them.

Where can I find the Scripts my store used to run?

In your Shopify admin, go to Apps > Script Editor and click Replace Shopify Scripts. The customizations report lists the Scripts that were active before June 30 and lets you view the original code or export everything as a CSV.

Do I need a developer to move to Shopify Functions?

Not always. If an app in the Shopify App Store already handles your rule, you can install and configure it yourself. You'll need a developer for custom Functions built around your own business rules.

What programming language do Shopify Functions use?

Functions can be written in any language that compiles to WebAssembly. Shopify strongly recommends Rust for performance, and JavaScript is also supported.

Are Shopify Functions faster than Scripts?

Yes. Shopify states that Functions run in under 5 milliseconds, which helps checkout stay stable during big sales events.

Need a Hand Rebuilding Your Checkout Logic?

CodeVibez is a Shopify Plus Preferred Partner. If your Scripts customizations report looks longer than you expected, or you're not sure which rules are still worth keeping, we can help you sort it out.

We'll go through your old Scripts with you, recommend an app wherever one does the job well, and build custom Functions only where your business truly needs them. Learn more about our Shopify Plus development work, or schedule a free call and bring your report along.

 

Back to blog