Shopify Plus

Shopify Scripts Have Ended: How to Move to Shopify Functions

Shopify Scripts Have Ended: How to Move to Shopify Functions

Shopify Scripts stopped running on June 30, 2026. Here is how Shopify Functions replace them for discounts, shipping and payment customizations.

For years, Shopify Plus merchants used Shopify Scripts, small Ruby programs, to customise checkout: tiered discounts, “buy X get Y” deals, hiding shipping methods or reordering payment options. Shopify stopped allowing new Scripts to be edited or published in April 2026, and Scripts stopped running on June 30, 2026.

The replacement is Shopify Functions. If your store still relies on behaviour that used to come from Scripts, it is worth checking that everything has been rebuilt correctly.

What are Shopify Functions?

Shopify Functions let developers inject custom logic into Shopify’s backend. They run on Shopify’s own infrastructure, are fast and reliable at high traffic, and are packaged inside apps. Many public apps in the Shopify App Store are built on Functions, so you may not need custom code at all.

What Functions can customise

  • Discounts: product, order and shipping discounts, tiered pricing and bundles.
  • Delivery customisation: hide, rename or reorder shipping methods.
  • Payment customisation: hide, rename or reorder payment methods.
  • Cart and checkout validation: block checkout when rules aren’t met, such as order limits.
  • Cart transforms: create bundles and expand or merge cart lines.
  • Fulfilment and order routing rules for more complex setups.

A simple migration plan

  1. List every Script you used and write down, in plain words, what it did.
  2. Check the App Store first. Many common Script use cases now have a ready-made Functions-based app.
  3. Build custom Functions for anything unique to your business.
  4. Test in a development store with real product and customer scenarios.
  5. Monitor after launch: compare discount usage and conversion rates with the old setup.

Why this is a good change

Common Script use cases and their replacements

  • Tiered discounts (spend more, save more): discount Functions or discount apps.
  • Buy X get Y and bundles: discount Functions or cart transform Functions.
  • Hiding shipping options for certain products or addresses: delivery customisation Functions.
  • Hiding cash on delivery for high-value orders: payment customisation Functions.
  • Wholesale or VIP pricing: B2B price lists, customer-tag discounts or custom Functions.

Frequently asked questions

Do I need Shopify Plus to use Shopify Functions?

Not always. Merchants on any plan can use public apps built with Functions. Custom apps that contain Functions, built just for your store, are generally a Shopify Plus feature.

What happened to stores that didn’t migrate?

Their Scripts stopped running after June 30, 2026, so the discounts, shipping rules or payment rules they controlled no longer apply. Rebuilding them with Functions or apps restores that behaviour.

How long does a migration take?

Simple discount rules can often be replaced with an app in a day. Complex, business-specific logic may take a few weeks to rebuild and test properly.

Functions are faster, work across checkout, cart and Shopify’s newer features, and are not limited to Plus in every case. Rebuilding is also a chance to clean up years of old rules. Perfictus builds custom Shopify Functions and offers a free Shopify Scripts check if anything isn’t behaving as expected.

Missing discounts or shipping rules since Scripts ended?

We rebuild Shopify Scripts as Shopify Functions and test every rule before it goes live. Start with a free Shopify Scripts check: we reply within 48 hours with what is missing and a fixed price.

Get a Free Scripts Check