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. |
integrationClientId |
Yes | Client ID of the integration application. |
integrationClientSecret |
Yes | Client secret, encrypted through the Storyblok encryption service. |
salesChannelClientId |
No | Client ID of the sales channel application. |
salesChannelDefaultMarketNumber |
No | Market the sales channel reads from by default. |
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.
Get in touch with the Storyblok community