Shopify Scripts have ended. Here is what replaces each script type

Updated · SMART Functions Creator (E-TRADE PARTNER)

Shopify Scripts stopped executing on 2026-06-30. Their replacement is Shopify Functions: discount functions replace line item scripts, delivery customizations replace shipping scripts, and payment customizations replace payment scripts. Functions run on every Shopify plan through apps, not only on Plus. SMART Functions Creator lets you rebuild the same logic in a rule builder without code, or rewrite it in JavaScript in its script editor.

SMART Functions Creator builds this as a Shopify Function, with rules or in JavaScript.

Start free trial
On this page
  1. What changed and when
  2. Script type to Function type
  3. Replacing a line item script
  4. Replacing a shipping script
  5. Replacing a payment script
  6. Rewrite a script in JavaScript instead
  7. What Functions can do that Scripts could not
  8. A migration checklist
  9. What we will not promise
  10. Frequently asked questions

If your store used the Script Editor, some part of checkout has been behaving differently since the end of June: a wholesale discount that no longer appears, a shipping rate that is no longer hidden for certain products, a payment method that reappeared for the wrong customers. None of that is a bug in your store. The Ruby scripts simply no longer run.

This guide maps each of the three script types to its Functions equivalent, shows what changes in how you think about the logic, and lists the things Functions can do that Scripts never could.

What changed and when

  • Shopify stopped Script editing and publishing on April 15, 2026, and stopped running Scripts on 2026-06-30 (Shopify changelog). Existing scripts were not converted automatically.
  • Shopify Functions are the replacement. A Function is a small program that Shopify runs at a fixed point in checkout, such as when discounts are calculated or when delivery options are listed.
  • Scripts were a Shopify Plus feature. Functions are available on every plan through public apps, so stores that never had access to Scripts can now use the same kind of logic.
  • With an app like SMART Functions Creator you don't deploy code to Shopify yourself. You describe the rule in a builder, or write the logic in the app's script editor, and the app runs it as a Function.

Script type to Function type

Old script typeWhat it didFunctions replacementIn SMART Functions Creator
Line item scriptChanged line prices: tiered pricing, wholesale by customer tag, BOGO, bundle pricing, gift with purchaseDiscount function (product, order, or shipping discount)Discount rule with Line groups and conditions; volume tiers, BXGY, bundle, and fixed price per unit are templates
Shipping scriptHid, renamed, or reordered shipping rates; discounted shippingDelivery customization (hide, move, rename) and shipping discount functionDelivery customization rule for visibility and order; Discount rule of type shipping for the price
Payment scriptHid, renamed, or reordered payment gatewaysPayment customization (hide, move, rename)Payment customization rule matched on Shopify's internal payment method name

Each row can also be written in JavaScript in the script editor: a discount script for line item logic, a delivery customization script plus a discount script's shipping tab for shipping logic, and a payment customization script for payment logic.

Replacing a line item script

Most line item scripts did one of five things. Each has a direct equivalent in a discount rule.

  • Percentage or fixed discount for a customer group: a Product discount with a customer tag condition can implement a wholesale price reduction for that group.
  • Quantity tiers: a Volume discount with tiers. See tiered and volume discounts for how tiers, grouping, and fixed unit prices behave.
  • Buy X get Y or free gift: the Buy X, get Y action, with Customer buys and Customer gets groups. Complete deals repeat automatically, and Maximum deals per order caps them. The gift must already be in the cart. See buy X get Y and free gifts.
  • Bundle pricing: the Fixed price bundle action (Items per set, Price per set) for a set price such as 3 for 24, or a percentage bundle template.
  • Exclusions: any of the above with Line groups that exclude products, collections, tags, or subscription lines.

One behavior that differs from Scripts

A script could see the cart after other discounts had applied. A discount function receives the original cart values, so a Cart total condition tests the pre-discount total. Rules that chained off another discount's result need to be expressed as one rule, or as separate rules with exclusive conditions. Details in combining discounts.

Replacing a shipping script

Shipping scripts mixed two jobs that Functions keep separate. Visibility and order are a Delivery customization. Price is a shipping discount.

  1. For each rate the script hid or renamed, create a Delivery customization rule. Match the rate by its displayed name (exact, case-insensitive, or a contains match), add the conditions (products in cart, cart total, customer tag, country, postal code, weight), and choose hide, move, or rename.
  2. For each shipping price change, create a Discount rule of type shipping targeting the same rate name, with a percentage or fixed amount.
  3. Remember that a shipping discount can only reduce a rate. It cannot raise one or force every rate to a flat price. If a script added a surcharge, the surcharge now belongs in Shopify shipping settings or in a rates app.

Replacing a payment script

Payment customizations hide, move, or rename payment methods by condition. The one thing that trips up almost every migration is the method name. Rules match Shopify's internal gateway name, not the label the customer sees. The card option that shows number, expiry, and CVV fields is usually Shopify Payments or the provider name such as Stripe or Adyen, not "Credit card". Wallets such as Shop Pay, PayPal, Apple Pay, and Google Pay are separate names. The docs page on payment method names shows how to find the right value.

Platform limit to know before you start

On stores in the United States and Canada that are not on Shopify Plus, Shopify ignores hide, rename, and move operations on the main credit card option. This is a Shopify rule, not an app limitation, and no Functions app can work around it. Every other method, and every store elsewhere, can be customized.

Rewrite a script in JavaScript instead

If your scripts were formulas or loops rather than simple rules, the script editor is the closer match. You write the logic in JavaScript: your code receives the cart as input and returns the operations, such as hiding a payment method or adding a discount. It runs on Lite and Pro, starts from 32 templates, and has a Test button that runs the code on a sample cart before you save.

  • Nothing converts Ruby to JavaScript. Rewrite each script, starting from the template closest to what it did.
  • Scripts read the cart through Shopify's Ruby API; a script function reads the fields of its Function input (Standard or Advanced), which you pick when you create it.
  • Code and the values it checks must fit in 10KB per function.
  • Full details, limits and an example in the Script Editor alternative guide.

What Functions can do that Scripts could not

  • Cart and checkout validation: block checkout with a message when a rule matches, for minimum quantities, quantity multiples, mixed carts, PO box addresses, or missing customer tags. Scripts could only change prices and options; they could not stop a checkout.
  • Cart transform: merge lines into a bundle, expand a line into components, or update line presentation. Line updates are limited to Plus and development stores by Shopify.
  • Every plan: Basic, Grow, and Advanced stores can now run the logic that used to require Plus.
  • Available conditions: line item properties, product and variant metafields, subscription selling plans, customer order count and total spent, cart attributes, and address fields. Availability depends on Function type and input; these are current app options, not a claim that every condition is new compared with Scripts.

A migration checklist

  1. Open the admin Scripts area or your old Script Editor export and list every script with what it did and who it applied to.
  2. Sort each one into discount, delivery, or payment. Split scripts that did two jobs.
  3. Install SMART Functions Creator and create one function per script, starting with the highest-revenue one. Use the rule-builder template that matches (volume, BXGY, bundle, wholesale) and adjust, or the script editor when the logic is a formula.
  4. Set combinations on every discount rule deliberately. Scripts stacked implicitly; Functions stack only when both discounts allow it.
  5. Keep each rule inactive while you build it, then activate and test with a real cart. Check the checkout, not only the cart page, because the theme decides what the cart displays.
  6. Where a rule is not obvious, ask support in the app chat or by email and share the intended behavior and example carts.

Rebuild your Scripts logic as Functions

SMART Functions Creator plans start at $19.99/month, with every feature on both plans.

Start free trial

What we will not promise

There is no button in this app that pastes Ruby and produces a Function. You rebuild each script as rules or rewrite it in JavaScript. Almost every script we have seen maps onto one or two rules. Formula-driven scripts, for example a fee that is a percentage of the subtotal rounded to a quantity, and position-based logic such as discounting only the third unit, don't fit the rule builder; those belong in the script editor. Support in the app chat or by email will tell you which route fits before you spend time on it.

Frequently asked questions

›Do Shopify Scripts still work?

No. Shopify Scripts stopped executing on 2026-06-30. Existing scripts were not migrated automatically; the logic has to be rebuilt as Shopify Functions.

›Do I need Shopify Plus to use Shopify Functions?

No. Discount, delivery customization, payment customization, and cart and checkout validation Functions are available on every Shopify plan through public apps such as SMART Functions Creator. A few operations remain Plus-only, such as cart transform line updates and hiding the main credit card option on US and Canadian stores.

›Can Functions Creator import my Ruby script?

Not automatically. Recreate the rule in the builder, which usually takes a few minutes per script, or rewrite it in JavaScript in the script editor, starting from the closest of 32 templates. Support helps with the mapping when a script is not obvious.

›Is there a replacement for the Script Editor where I can still write code?

Yes. SMART Functions Creator's script editor lets you write payment, delivery, validation, discount and cart transform functions in JavaScript, on both plans. It does not run Ruby, so each script is rewritten.

›Which Function type replaces a shipping script?

Two types share the job. A Delivery customization hides, moves, or renames rates. A shipping discount changes the price. Scripts did both in one place.

›What does SMART Functions Creator cost?

Lite is $19.99/month for up to 2 active functions and Pro is $39.99/month for unlimited active functions, with every feature on both plans and a 7-day free trial. Stores that installed before October 7, 2026 use the app free for now; we email at least 7 days before that changes for a store. Shopify's active-function, configuration, and execution limits still apply on every plan. Rules inside the same function share its configuration budget.

Related articles