Shopify Functions vs B2B on Shopify: the differences that actually decide it
Comparing Shopify Functions with B2B as if they were two brands of the same thing is how stores end up owning both and using neither well. They solve different problems, they bill different teams, and they fail in different months. The useful comparison is narrower: which problem is in front of you, what each option does at the exact layer where that problem lives, and what each one quietly costs to run.
They are not the same job
Functions are small programs, compiled to WebAssembly, that Shopify runs on its own backend at defined points: discount calculation, payment customization, delivery options, checkout validation and more. The developer writes a GraphQL input query, Shopify hands the function the resulting JSON, and the function returns operations for Shopify to apply.
B2B on Shopify sells to companies rather than people: a company record with locations and contacts, catalogs that set which products and prices each company sees, payment terms, and draft orders for the quote-and-approve flow most wholesale buyers expect.
Where Shopify Functions wins
Discounts come in three classes, product, order and shipping, and which classes combine is a platform rule set on each discount, not something a function can override.
A store can have at most 25 active automatic discounts, and a customer can apply at most five product or order discount codes plus one shipping code to one order.
The honest cost on this side is the operational one: building the discount logic first and discovering the combination rules afterward, when the promotion design itself was the part that broke the platform rules. Price that in before the demo impresses you.
Where B2B wins
Catalogs are the core object: one catalog can carry company-specific pricing, fixed prices or percentage adjustments, and a company location sees the catalogs assigned to it.
Payment terms like net 30 are set per company location and change what 'paid' means for the order: the order is placed now and the invoice is due on the terms clock.
And its own bill arrives as this: giving every wholesale account the same catalog because it was faster, then handling the promised special pricing by hand in draft orders forever. Neither side is free. They just send the invoice to different teams.
The deciding question
Ask which problem is actually costing money this quarter. If it is the problem Shopify Functions solves, the comparison is over and the rest is preference. If it is the one B2B solves, the same. Stores get in trouble buying the first for the second's job and then reporting, accurately and uselessly, that it changed nothing.
Functions run under published resource budgets, and Shopify recommends Rust for heavy logic because JavaScript builds reach the instruction limit sooner on large carts.
Related reading on this site
Operators working on the same layer usually read shopify functions what it is how it works and where it falls short 2026 12 01 how to choose shopify functions the checks that matter before you commit 2026 12 01 does shopify functions help with reverse logistics cost what the evidence and 2026 12 02 next. Each covers a neighbouring decision with its own evidence and its own failure modes.
Frequently asked questions
What is the real difference between Shopify Functions and B2B?
The layer they work at. Shopify Functions and B2B on Shopify touch different parts of the order and the page, so they are substitutes only in a budget meeting, not in the stack.
Which should a store choose first?
The one aimed at the problem that is costing money now, measured against a baseline. Choosing by feature lists buys the longer list. Choosing by the constraint buys the fix.
Can a store run both?
Usually yes, and many do once each has a defined job. Running both with overlapping jobs is where the conflicts and the duplicate costs appear.
What mistake do stores repeat in this comparison?
Judging both on blended conversion rate over a launch weekend. The two options affect different segments, so the split read, by device and shopper type, is the only honest one.