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.
Features
Section titled “Features”- 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.
- In Commerce Layer, create the API credentials for the integration.
- 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. |
Further resources
Section titled “Further resources”Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.
- Need help?Contact support (opens in a new window)
- Something isn’t right?Check system status (opens in a new window)
Get in touch with the Storyblok community