Sylius
Seamlessly integrate your Sylius e-commerce platform with Storyblok
Sylius is a fully open-source and flexible e-commerce framework designed for the dynamic growth of your innovative business.
This app enables content editors to select products and categories from a connected Sylius instance and reference them in Storyblok.
Setup
- Once installed, navigate to the block library and create a new field of the type plugin (in either a new or an existing block). Set the custom type to
sb-sylius. - In the field configuration, define the following values:
endpoint(required): The URL of the API endpoint associated with your Sylius instance (for example,https://v2.demo.sylius.com/api/v2/shop).token(required): The JWT token generated from the /api/v2/shop/authentication-token endpoint.language(optional): The language key to display the name and description in a specific language (for example,en_US).selectOnly(optional): If left empty, editors can choose products and categories. If set toproduct, only products can be selected. If set tocategory, only categories can be selected.
- Use the block containing the field in the Visual Editor, select one or multiple products or categories, save the story, and check the API response.
Refer to the e-commerce concept for a detailed introduction to the topic.