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
  • Le programme « Shopify Plus Certified Apps »

    The "Shopify Plus Certified Apps" program

    Launched four years ago, the “Shopify Plus Certified Apps” program aims to promote an ecosystem of Apps capable of contributing to the growth of Shopify Plus customers. As we know,...

    The "Shopify Plus Certified Apps" program

    Launched four years ago, the “Shopify Plus Certified Apps” program aims to promote an ecosystem of Apps capable of contributing to the growth of Shopify Plus customers. As we know,...

  • Tout sur « Checkout Extensibility » !

    Checkout Extensibility explained!

    Shopify's checkout tunnel is renowned for its uniqueness and its efficiency. Recently, one of the three largest strategy and management consulting firms in the world published a report proving that...

    Checkout Extensibility explained!

    Shopify's checkout tunnel is renowned for its uniqueness and its efficiency. Recently, one of the three largest strategy and management consulting firms in the world published a report proving that...

  • Le programme « Built for Shopify »

    The "Built for Shopify" program

    With around 10,000 Apps available in the App Store, Shopify merchants have an extremely wide choice of solutions to customize their stores and develop their businesses. And because Apps are...

    The "Built for Shopify" program

    With around 10,000 Apps available in the App Store, Shopify merchants have an extremely wide choice of solutions to customize their stores and develop their businesses. And because Apps are...

1 of 3