Skip to content

CommerceLayer

The CommerceLayer app adds a field type for selecting products and categories from a connected Commerce Layer instance and referencing them in Storyblok content. The selection is part of the API response.

Read more about connecting a store in the e-commerce concept.

  • Select Commerce Layer products and categories in the Visual Editor.
  • Limit how many items an editor can select.
  • Restrict the field to products only or categories only.
  • Read from a specific sales channel market.
  1. In Commerce Layer, create the API credentials for the integration.
  2. In the Storyblok Block Library, add a field to a block, set its field type to Plugin, and set the custom type to sb-commerce-layer.

The field takes the following options:

Option Required Description
apiUrl Yes Commerce Layer API endpoint. For example, https://<your-organization>.commercelayer.io.
integrationClientId Yes client_id from the integration API credentials.
integrationClientSecret Yes client_secret from the integration API credentials, encrypted with the Storyblok Encryption Service.
salesChannelClientId No client_id from the sales channel API credentials.
salesChannelDefaultMarketNumber No Default market number for the sales channel, for example 10460. Requires salesChannelClientId.
limit No Maximum number of items an editor can select.
selectOnly No Restricts the field to product or category.

Was this page helpful?

What went wrong?

This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.