Shopify Glossary Terms

Shopify Functions

Shopify Functions (which replaced Shopify Scripts) let developers write custom backend logic that runs within Shopify's infrastructure. They're used for discount logic, payment method customisation, shipping rate calculation, and cart/checkout validation.

Unlike apps that run on external servers, Functions execute directly on Shopify's servers at the point of need - during checkout, cart calculation, or order processing. This means they're fast and don't add external dependencies to critical commerce paths.

Common use cases include tiered discounts based on cart value or customer tags, hiding payment methods based on product type, custom shipping rates based on order weight or destination, and automatic bundle pricing. Functions work alongside Checkout Extensibility - Functions handle the logic, UI Extensions handle the presentation.

For Shopify Plus merchants, Functions replace a lot of the custom middleware that used to sit between Shopify and checkout. Less infrastructure to maintain, fewer points of failure.


Think: custom commerce logic that runs inside Shopify, not around it.

A Shopify Plus Agency for Strategic Design & Advanced Engineering

Building something ambitious?

Chosen by Shopify Plus brands worldwide.

{"@context":"https://schema.org","@graph":[{"@type":"Article","headline":"Shopify Functions","description":"Shopify Functions run custom backend logic within Shopify's infrastructure. Discounts, payments, shipping, and checkout validation for Shopify Plus.","author":{"@type":"Organization","name":"Flux Agency","url":"https://flux.agency"},"publisher":{"@type":"Organization","name":"Flux Agency","url":"https://flux.agency","logo":{"@type":"ImageObject","url":"https://cdn.prod.website-files.com/69ac35019ce8f68774055c5e/69ad8912209a3b56e3865820_FLUXw.svg"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://flux.agency/glossary/shopify-functions"},"datePublished":"2026-03-26","dateModified":"2026-04-10"},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://flux.agency"},{"@type":"ListItem","position":2,"name":"Glossary","item":"https://flux.agency/glossary"},{"@type":"ListItem","position":3,"name":"Shopify Functions","item":"https://flux.agency/glossary/shopify-functions"}]},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What are Shopify Functions?","acceptedAnswer":{"@type":"Answer","text":"Shopify Functions let developers write custom backend logic that runs directly on Shopify's servers. They handle discount calculations, payment method filtering, shipping rate customisation, and cart validation. They replaced Shopify Scripts and run as WebAssembly modules rather than Ruby code."}},{"@type":"Question","name":"What is the difference between Shopify Functions and Shopify Scripts?","acceptedAnswer":{"@type":"Answer","text":"Scripts were Ruby-based and edited through a separate Script Editor app. Functions are WebAssembly modules that support version control, integrate with Shopify's app framework, and run in a more modern architecture. Shopify has deprecated Scripts with a migration deadline of June 30, 2026."}},{"@type":"Question","name":"What can Shopify Functions do?","acceptedAnswer":{"@type":"Answer","text":"Functions handle tiered discounts based on cart value or customer tags, hiding or reordering payment methods based on product type, custom shipping rates based on weight or destination, automatic bundle pricing, and cart validation rules. They run at the point of need during checkout without external server dependencies."}}]}]}