ReturnSift

Comparison ยท 2026-12-04

Shopify Functions vs B2B on Shopify: the differences that actually decide it

Short answer: these two are not the same kind of spend, and the choice is rarely either-or for long. The decider is who the work serves.

Shopify Functions in practice

Functions are small programs that run on Shopify's own servers at the moment a cart or checkout is evaluated. They power discount rules, cart transforms that build bundles, payment customisation that hides or reorders gateways, delivery customisation and checkout validation, and they replaced Shopify Scripts.

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.

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.

B2B on Shopify in practice

B2B on Shopify gives business buyers their own lane inside the same store: company profiles, catalogs with contract pricing, quantity rules and payment terms such as net 30, while retail shoppers keep the normal storefront.

Payment terms are set per company location, and orders placed on terms generate an invoice with a due date rather than a card charge at checkout.

Shopify limits active B2B catalogs by plan, with Plus stores getting far more headroom than the three active catalogs on lower plans, which decides how granular a wholesale pricing structure can get.

The difference that actually decides it

The decider is who the work serves. Functions are infrastructure: they change what any cart can be charged, bundled or blocked from doing. B2B is a channel: it changes who is buying and on what terms. A store with wholesale demand and a broken discount stack needs the channel first and will feel the infrastructure gap later, at exactly the moment a catalog price meets a retail promotion.

Where each one wastes money

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.

The other failure is pricing leakage: retail discount codes and promotions that fire on company orders, quietly repricing negotiated contracts. The wholesale buyer who notices says nothing and pockets it; the one who mentions it is doing the store a favour.

A check you can run this week

Count how many B2B orders still arrive by email or phone a month after catalogs go live. That count, not the catalog's existence, is the adoption number.

Related reading: Does Shopify Functions help with reverse logistics cost? What the evidence and practitioners say and Does B2B on Shopify help with reverse logistics cost? What the evidence and practitioners say.

Frequently asked questions

What is the real difference between Shopify Functions and B2B on Shopify?

The decider is who the work serves. Functions are infrastructure: they change what any cart can be charged, bundled or blocked from doing. B2B is a channel: it changes who is buying and on what terms. A store with wholesale demand and a broken discount stack needs the channel first and will feel the infrastructure gap later, at exactly the moment a catalog price meets a retail promotion.

Which should a store pick first, Shopify Functions or B2B on Shopify?

The decider is who the work serves. Count how many B2B orders still arrive by email or phone a month after catalogs go live. That count, not the catalog's existence, is the adoption number.

What is the most common mistake with Shopify Functions?

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.

What is the most common mistake with B2B on Shopify?

The other failure is pricing leakage: retail discount codes and promotions that fire on company orders, quietly repricing negotiated contracts. The wholesale buyer who notices says nothing and pockets it; the one who mentions it is doing the store a favour.