ReturnSift

Pairing ยท 2026-12-04

Can you combine Shopify Functions with subscription selling plans? Rules, timing and conflicts

Short answer: yes, Shopify Functions and subscription selling plans can run on the same store, and most stores in this niche run both. The work is in the overlap: selling plans carry their own discount, the subscribe-and-save percentage, and discount functions see the subscription line as a cart line with a plan attached.

How Shopify Functions works

Functions are Shopify's server-side logic layer: code an app ships that Shopify runs when a cart or checkout is evaluated, covering discounts, bundle building through cart transforms, payment and delivery customisation, and validation rules that can block a checkout outright.

How subscription selling plans works

Selling plans turn a product into a schedule: the buyer picks a delivery interval at purchase, Shopify bills the payment method on file each cycle, and the customer manages pause, skip and cancel from their account. Shopify's native Subscriptions app covers the basics free; the paid apps sell depth around it.

What the evidence says about Shopify Functions

Discount functions follow the combination rules set in the admin: whether two discounts can combine is a store setting, not something the function decides on its own.

A function takes a GraphQL input query describing the cart and returns JSON instructions. It never touches the page, which is why it is upgrade-safe where script tags were not.

Shopify Scripts stopped running on June 30, 2026, so discount and shipping logic that lived in a store's Ruby scripts had to be re-expressed as functions, usually one function per app rather than one file per store.

And about subscription selling plans

Failed payment recovery, the dunning sequence of retries and emails, decides subscription churn more than the signup discount does. Most plans lose more subscribers to expired cards than to decisions.

Because subscriptions check out through Shopify checkout, accelerated checkouts work on the first order, which is why subscription offers pair naturally with express buttons.

The customer account is where subscriptions live or die: pause, skip and cancel have to be reachable there, and burying them converts a retention problem into a chargeback problem.

Where they collide

Selling plans carry their own discount, the subscribe-and-save percentage, and discount functions see the subscription line as a cart line with a plan attached. A function that discounts by product or collection will happily discount the subscription's first order and, depending on how it is written, imply a discount the recurring charges will not honour.

Where Shopify Functions goes wrong on its own

The other failure is subtler: writing a function that is technically correct and commercially wrong, because it applies a discount the marketing calendar retired, at a scale the old Script never reached. Functions run on every cart. Errors do too.

Where subscription selling plans goes wrong on its own

The other failure is a management portal that makes cancelling harder than pausing. Buyers who cannot find the cancel button do not stay; they dispute the charge, and the store pays for the lesson in chargeback fees.

The order practitioners run them in

Scope discount functions to exclude selling-plan lines unless the discount is deliberately a first-order subscription incentive, and say so in the offer copy if it is.

A check you can run this week

Inventory every active Script-era rule and map each one to a function type, discount, cart transform, payment or delivery. Rules nobody can explain get deleted in the move, not migrated.

Related reading: Does Shopify Functions help with reverse logistics cost? What the evidence and practitioners say and Does subscription selling plans help with reverse logistics cost? What the evidence and practitioners say.

Frequently asked questions

Can you combine Shopify Functions with subscription selling plans?

Yes, with the overlap managed. Selling plans carry their own discount, the subscribe-and-save percentage, and discount functions see the subscription line as a cart line with a plan attached. A function that discounts by product or collection will happily discount the subscription's first order and, depending on how it is written, imply a discount the recurring charges will not honour.

What breaks first when Shopify Functions and subscription selling plans run together?

Selling plans carry their own discount, the subscribe-and-save percentage, and discount functions see the subscription line as a cart line with a plan attached. Scope discount functions to exclude selling-plan lines unless the discount is deliberately a first-order subscription incentive, and say so in the offer copy if it is.

Which do you set up first, Shopify Functions or subscription selling plans?

Scope discount functions to exclude selling-plan lines unless the discount is deliberately a first-order subscription incentive, and say so in the offer copy if it is.

What is the most common mistake with Shopify Functions in this pairing?

The other failure is subtler: writing a function that is technically correct and commercially wrong, because it applies a discount the marketing calendar retired, at a scale the old Script never reached. Functions run on every cart. Errors do too.