Skip to content

By Nathan MatthewsMay 20, 2026 · 10 min read

Shopify Functions explained — custom discount, shipping, and payment logic without fragile apps

Shopify Functions run custom discount, delivery, and payment logic at Shopify extension points — build them for finance-defensible stacking rules, not novelty, and prefer Plus for custom Functions.

Shopify Functions run custom business logic at discount, delivery, and payment customization points. High-ticket brands use them for stacking rules finance will defend — not for novelty. Here is what they are, when to build, and when an app is enough.

Shopify Plus architecture representing Functions and checkout logic

When brands outgrow “code soup,” they search “Shopify Functions.” Functions are Shopify’s way to run custom logic at defined commerce extension points — notably discounts (cart lines, order, shipping), delivery customizations, and payment customizations — with a performance model Shopify hosts.

They matter for premium operators because margin lives in stacking rules. A VIP code that silently combines with an automatic 20% is not a growth hack; it is a P&L incident. Propeller implements Functions inside Shopify Plus programmes when native tools cannot express the rule cleanly.

Concrete Function jobs worth paying for

  • Tiered product + order + shipping discounts in one coherent policy.
  • Rejecting invalid or non-stackable discount codes with a checkout message shoppers understand.
  • Market-aware shipping discounts that respect Shopify Markets.
  • Payment method visibility rules for high-risk or high-AOV orders.
  • Replacing brittle scripty discount apps that break under BFCM load.
Diagram of discount stacking rules enforced at checkout
Functions earn their keep when finance can point at a rule and checkout obeys it under load.

Functions vs apps vs checkout UI extensions

Use a public app when the problem is common and the vendor is trustworthy. Use a Function when the logic must run in Shopify’s discount/delivery/payment pipeline with your rules. Use Checkout UI extensions (Plus) when you need shopper-facing fields or content in checkout — not for silent price math. Mixing those layers without an owner is how Plus stores become un-debugable.

Budget Functions as part of a Plus build or a senior Shopify development retainer — not as a weekend experiment the week of Black Friday.

10 min read · 3 parts

Share

Questions

What are Shopify Functions?

Shopify Functions let developers run custom business logic at Shopify-defined extension points such as discounts, delivery customizations, and payment customizations — instead of relying only on brittle theme scripts or limited native discount types.

Do I need Shopify Plus for Functions?

Public-app Functions can be available more broadly; custom Functions for your own logic are a Plus-oriented path. Confirm current plan limits with Shopify before you scope a build.

When should I build a custom discount Function?

When stacking, rejection, or market-specific rules cannot be expressed safely with native discounts or a vetted public app — and when finance needs deterministic behavior at peak traffic.