Qu'est-ce que les « Shopify Functions » ?

What are "Shopify Functions"?

Introduced in 2022, Shopify Functions offer a new technological approach to customizing the business logics of a Shopify store, by allowing developers to inject custom code into the Shopify backend.

With Shopify Functions, developers can create a wide variety of rules applied to the cart page or in the checkout tunnel: payment validation conditions, product bundles, specific discounts (e.g. volume discounts), custom delivery rules (e.g. to hide or reorder options),...

Shopify Functions are deployed as public or custom Apps. If the developer chooses to make a public App, it may be marketed in the App Store and it will be available to all Shopify merchants. If it's a custom App, then it can only be installed on Shopify Plus stores.

Concretely, Functions are WebAssembly module that contains custom business logic. Functions can be written in any language that supports WebAssembly. And to make it even easier to create Functions, it will soon be possible to write them in JavaScript!

The different Shopify Functions APIs currently available are:

  • Delivery Customization API : rename, rearrange and sort the delivery options available to clients in the checkout tunnel.
  • Order Discount API : create a discount that applies in the cart to all products of an order.
  • Product Discount API : create a discount that applies to a particular product in the cart.
  • Payment Customization API : rename, rearrange and sort the payment options available to clients.
  • Cart and Checkout Validation API : apply a specific rule to validate a cart and a payment.
  • Order Routing Location Rule API : decide for each item which inventory location to use for fulfillment.
  • Shipping Discount API : create a discount that applies to one or more shipping rates in the checkout tunnel.
  • Cart Transform API : expand or condense the display of items (products, product bundles) in the cart.

Shopify maintains a Shopify Functions technical documentation, including the exact availability of each API (some are currently in "developer preview" or "early access").

To discuss Shopify Functions and their different use cases, feel free to contact us.

Back to blog
  • Bienvenue en 2024 !

    Welcome 2024!

    2024, here we are! 👋 To all Shopify Partners and Merchants, we wish you the best! And particularly many successful projects around Shopify, Shopify Plus and Shopify POS! 🛒 🚀...

    Welcome 2024!

    2024, here we are! 👋 To all Shopify Partners and Merchants, we wish you the best! And particularly many successful projects around Shopify, Shopify Plus and Shopify POS! 🛒 🚀...

  • Le Top 5 des Apps Émergentes 2024 sélectionnées par ShopiShopa Consulting

    2024 Top 5 Promising Apps selection by ShopiSho...

    Along with its Top 5 Apps published for the fifth consecutive year, ShopiShopa Consulting, a Shopify Plus & Shopify POS Technology Consulting boutique for mid-sized and major corporations, is announcing...

    2024 Top 5 Promising Apps selection by ShopiSho...

    Along with its Top 5 Apps published for the fifth consecutive year, ShopiShopa Consulting, a Shopify Plus & Shopify POS Technology Consulting boutique for mid-sized and major corporations, is announcing...

  • Le Top 5 des Apps 2024 sélectionnées par ShopiShopa Consulting

    2024 Top 5 Apps selection by ShopiShopa Consulting

    For the fifth consecutive year, ShopiShopa Consulting, a Shopify Plus & Shopify POS Technology Consulting boutique for mid-sized and major corporations, is announcing its Top 5 Apps selection. The Shopify...

    2024 Top 5 Apps selection by ShopiShopa Consulting

    For the fifth consecutive year, ShopiShopa Consulting, a Shopify Plus & Shopify POS Technology Consulting boutique for mid-sized and major corporations, is announcing its Top 5 Apps selection. The Shopify...

  • Que peut-on faire avec le B2B sur Shopify Plus ?

    What is currently possible with B2B on Shopify ...

    Online sales are not only for individuals, and wholesale eCommerce has experienced an extremely strong growth in recent years. As a sign of the times, many players, brands and distributors,...

    What is currently possible with B2B on Shopify ...

    Online sales are not only for individuals, and wholesale eCommerce has experienced an extremely strong growth in recent years. As a sign of the times, many players, brands and distributors,...

1 of 4