Skip to Content
Shopify logo
  • By business model
    • B2C for enterprise
    • B2B for enterprise
    • Retail for enterprise
    By ways to build
    • Platform overview
    • Modular commerce
    • Shop Component
    By outcome
    • Growth solutions
    • Shopify
      Platform for entrepreneurs & SMBs
    • Plus
      A commerce solution for growing digital brands
    • Enterprise
      Solutions for the world’s largest brands
  • Customer Stories
    • Everlane
      Shop Pay speeds up checkout and boosts conversions
    • Brooklinen
      Scales their wholesale business
    • ButcherBox
      Goes Headless
    • Arhaus
      Journey from a complex custom build to Shopify
    • Ruggable
      Customizes Headless ecommerce to scale with Shopify
    • Carrier
      Launches ecommerce sites 90% faster at 10% of the cost on Shopify
    • Dollar Shave Club
      Migrates from a homegrown platform and cuts tech spend by 40%
    • Lull
      25% Savings Story
    • Allbirds
      Omnichannel conversion soars
    • Shopify
      Platform for entrepreneurs & SMBs
    • Plus
      A commerce solution for growing digital brands
    • Enterprise
      Solutions for the world’s largest brands
  • Why trust us
    • Leader in the 2024 Forrester Wave™: Commerce Solutions for B2B
    • 2024 Gartner Magic Quadrant for Digital Commerce
    • Leader in the 2024 IDC B2C Commerce MarketScape vendor evaluation
    What we care about
    • Shop Component Guide
    • Principals of a Modern Commerce OS
    How we support you
    • Premium Support
    • Help Documentation
    • Professional Services
    • Technology Partners
    • Partner Solutions
    • Shopify
      Platform for entrepreneurs & SMBs
    • Plus
      A commerce solution for growing digital brands
    • Enterprise
      Solutions for the world’s largest brands
  • Latest Innovations
    • Editions - June 2024
    Tools & Integrations
    • Integrations
    • Hydrogen
    Support & Resources
    • Shopify Developers
    • Documentation
    • Help Center
    • Changelog
    • Shopify
      Platform for entrepreneurs & SMBs
    • Plus
      A commerce solution for growing digital brands
    • Enterprise
      Solutions for the world’s largest brands
  • Get in touch
  • Get in touch
Shopify logo
  • Blog
  • Enterprise ecommerce
  • Total cost of ownership (TCO)
  • Migrations
  • B2B Ecommerce
    • Headless commerce
    • Announcements
    • Unified Commerce
    • See All topics
Search
Type something you're looking for
Log in
Get in touch

Powering commerce at scale

Speak with our team on how to bring Shopify into your tech stack

Get in touch
blog|Announcements

Shopify Functions: The New Way to Extend and Customize Shopify

Shopify Functions is a powerful new way to extend and customize Shopify features to meet the unique business needs of all Shopify brands.

by Warren Pamukoff
Shopify Functions - hero image

The platform built for future-proofing

Get in touch

At Shopify, we’ve been powering commerce for over 16 years by building the features and functionality that the majority of merchants need. To truly make commerce better for everyone, we realized we needed to put the power of Shopify in the hands of our community. With that in mind, we’ve spent a great deal of time and effort thinking about how we could open up more of the backend logic behind our platform to make it more flexible for merchants.

That’s why we built Shopify Functions, a powerful new way to extend and customize Shopify features to meet the unique business needs of all Shopify brands. With Functions, developers can build powerful customizations that execute in under 5ms, and can scale up for the biggest sales events on the planet.

Since Functions are installed with an app, merchants can configure them directly in the admin, without having to touch a line of code. Although Functions are starting off with familiar backend customizations for discounts, shipping, and payment methods, our goal is to add support for shipping rates, checkout and cart validations, return validations, and order routing in the near future.

Click here to talk with sales about Shopify plans for enterprises

How do Shopify Functions work?

So exactly how do Shopify Functions work? Essentially, we’re unlocking the backend of Shopify to allow developers to extend or replace key parts of Shopify’s backend logic with custom code. This unique Functions architecture provides the flexibility of open source, without the hassle of hosting, security, and management of forked code. Also, since Functions run on Shopify infrastructure, they’ll stay on the upgrade path with everything else on Shopify, and be able to perform any critical tasks—even during internet-breaking flash sales. 

Shopify

For developers, you can write a Function in any language that compiles to WebAssembly, and then build a UI with AppBridge and React. Developers can write a Function in their own local environment and leverage the Shopify CLI to deploy it. When the Function is complete, it’s distributed in an app, so there’s no need to copy and paste code from store-to-store. 

For merchants, you simply need to install an app and the Function will be configurable in-context in the Shopify Admin. This means that discounts, shipping, and payment method Functions will show up alongside the out-of-the-box Shopify settings. 

Shopify

Why did we create Shopify Functions? 

We know how important it is to build powerful promotions and to offer unique buying experiences that help your brand stand out from the crowd. That’s why we introduced Shopify Scripts back in 2016—to help brands build the micro-customizations that they needed to boost conversions in the checkout. To this day, brands that leverage Shopify Scripts see their average order value increase by 20%. 

Functions are easier to use

With Functions, you don’t need to worry about modifying code to adjust your promotions anymore. Instead, Functions are installed like any other app and they’re configured directly in the Admin, alongside built-in Shopify features. 

Take discounts for example. With Discount Combinations, you’ll be able to create powerful promotions by combining custom discounts—built with Functions—with Shopify’s out-of-the-box product, order, and shipping discounts. For example, you could combine a custom spend $X get $Y volume discount—installed from an app—with the built-in free shipping discount in the discount settings. 

But that’s not all, any discount built with Functions will show up in Shopify Analytics sales reporting, including the Sales by Discount report. Meaning, you’ll have a single source of truth that you can use to review all your discounts. 

Shopify

Shopify Functions are more accessible

Another great thing about Functions is that they’re distributed in apps, making them available for purchase in the Shopify App Store. So even if you don’t work with a development team or agency, you can still gain access to the unique Shopify customization that your business needs. 

Shopify Plus plan-exclusive features

Saving the best for last, brands on the Shopify Plus plan get the exclusive ability to write their own Functions and distribute them to their store in a custom app. So, if a specific discount, shipping, or payment use case isn’t yet available in the Shopify App Store, or if the use case is too niche or advanced for the general public, Shopify brands can simply build the functionality that they need themselves. 

For example, if an appliance store wanted to run a spend $500 get $100 off promotion on a specific appliance brand and also run a spend $500 get $50 off promotion on a different appliance brand, they could build their own custom Function. By building their own Function, the furniture store can control the information that’s accessible for product discounts—in this case, the brand name data stored in a metafield.

Stay tuned for more customization options! 

Shopify Functions will give you the power and flexibility to build things that we haven’t even anticipated—and this is just the beginning. In the future, more of Shopify’s built-in logic will be extensible through Functions. 

If you’re ready to start building your own Shopify Function customization, be sure to check out our developer documentation today. Otherwise, you can start keeping an eye on the Shopify App Store for discount, shipping, and payment apps, and download the unique functionality that your business needs.

Stay on top of the latest ecommerce trends and insights with our biweekly newsletter

Sign me up

 

WP
by Warren Pamukoff
Updated on 22 Jun 2022
Share article
  • Facebook
  • Twitter
  • LinkedIn
by Warren Pamukoff
Updated on 22 Jun 2022

The latest in commerce

Get news, trends, and strategies for unlocking new growth.

By entering your email, you agree to receive marketing emails from Shopify.

popular posts

Enterprise commerceHow to Choose an Enterprise Ecommerce Platform for Your Scaling StoreTCOHow to Calculate Total Cost of Ownership for Enterprise SoftwareMigrationsEcommerce Replatforming: A Step-by-Step Guide To MigrationB2B EcommerceWhat Is B2B Ecommerce? Types + Examples
start-free-trial

Unified commerce for the world's most ambitious brands

Learn More

popular posts

Direct to consumer (DTC)The Complete Guide to Direct-to-Consumer (DTC) Marketing (2025)Tips and strategiesEcommerce Personalization: Benefits, Examples, and 7 Tactics for 2025Unified commerceHow To Sell on Multiple Channels Without the Logistical Headache (2025)Enterprise ecommerceComposable Commerce: What It Means and Is It Right for You?

popular posts

Enterprise commerce
How to Choose an Enterprise Ecommerce Platform for Your Scaling Store

TCO
How to Calculate Total Cost of Ownership for Enterprise Software

Migrations
Ecommerce Replatforming: A Step-by-Step Guide To Migration

B2B Ecommerce
What Is B2B Ecommerce? Types + Examples

Direct to consumer (DTC)
The Complete Guide to Direct-to-Consumer (DTC) Marketing (2025)

Tips and strategies
Ecommerce Personalization: Benefits, Examples, and 7 Tactics for 2025

Unified commerce
How To Sell on Multiple Channels Without the Logistical Headache (2025)

Enterprise ecommerce
Composable Commerce: What It Means and Is It Right for You?

subscription banner
The latest in commerce

Get news, trends, and strategies for unlocking unprecedented growth.

Unsubscribe anytime. By entering your email, you agree to receive marketing emails from Shopify.

Popular

Headless commerce
What Is Headless Commerce: A Complete Guide for 2025

29 Aug 2023

Growth strategies
How To Increase Conversion Rate: 14 Tactics for 2025

5 Oct 2023

Growth strategies
7 Effective Discount Pricing Strategies to Increase Sales (2025)

Ecommerce Operations Logistics
What Is a 3PL? How To Choose a Provider in 2025

Ecommerce Operations Logistics
Ecommerce Returns: Average Return Rate and How to Reduce It

Industry Insights and Trends
Global Ecommerce Statistics: Trends to Guide Your Store in 2025

Customer Experience
Fashion Brand Storytelling Examples to Inspire You

24 Mar 2023

Growth strategies
SEO Product Descriptions: 7 Tips To Optimize Your Product Pages

Powering commerce at scale

Speak with our team on how to bring Shopify into your tech stack.

Get in touch
Shopify logo

Shopify

  • About
  • Investors
  • Partners
  • Affiliates
  • Legal
  • Service status

Support

  • Merchant Support
  • Shopify Help Center
  • Hire a Partner
  • Shopify Academy
  • Shopify Community

Developers

  • Shopify.dev
  • API Documentation
  • Dev Degree

Products

  • Shop
  • Shop Pay
  • Shopify Plus
  • Linkpop
  • Shopify for Enterprise

Global Impact

  • Sustainability
  • Build Black

Solutions

  • Online Store Builder
  • Website Builder
  • Ecommerce Website
  • Australia
    English
  • Canada
    English
  • Hong Kong SAR
    English
  • Indonesia
    English
  • Ireland
    English
  • Malaysia
    English
  • New Zealand
    English
  • Nigeria
    English
  • Philippines
    English
  • Singapore
    English
  • South Africa
    English
  • UK
    English
  • USA
    English

Choose a region & language

  • Australia
    English
  • Canada
    English
  • Hong Kong SAR
    English
  • Indonesia
    English
  • Ireland
    English
  • Malaysia
    English
  • New Zealand
    English
  • Nigeria
    English
  • Philippines
    English
  • Singapore
    English
  • South Africa
    English
  • UK
    English
  • USA
    English
  • Terms of service
  • Privacy policy
  • Sitemap
  • Privacy Choices