The "connectif.product-recommendation" component is used to display product recommendations sent from Connectif in carousel format in VTEX IO integrations.
How to Use
The "connectif.product-recommendation" component is designed for integrations with VTEX IO, using native VTEX components such as Slider Layout and Product Summary to display product information and configure the carousel settings.
Requirements
To use the "connectif.product-recommendation" component, it is necessary to have the Connectif dependency in the theme, by adding the following code snippet in manifest.json:
"peerDependencies": { "connectif.connectif": "1.x" },
Example
The component will look like this:
"connectif.product-recommendation": { "props": { "id": "product-recommendation-home" }, "children": ["list-context.product-list-static#connectif-products"] }, "list-context.product-list-static#connectif-products": { "blocks": ["product-summary.shelf"], // VTEX Product Summary component "children": ["slider-layout#connectif-products"] // VTEX Slider Layout component }, "slider-layout#connectif-products": { "props": { "itemsPerPage": { "desktop": 3, "tablet": 3, "phone": 1 }, "infinite": true, "fullWidth": false, "blockClass": "shelf" } },
Example explanation:
- connectif.product-recommendation: receives an “id” in its props. This id is the identifier that you must configure in the "Share Data" node.
- list-context.product-list-static#connectif-products: wraps the product-summary.shelf block and contains the slider-layout#connectif-products component.
- product-summary.shelf: is the native VTEX component used to display product information.
- slider-layout#connectif-products is the customizable carousel settings component, which allows you to configure how many products are displayed on each device.
Keep learning!
To make the most of your Connectif account, we recommend continuing with the following articles:
- Guide to Integrate with VTEX IO, to learn how to integrate your VTEX IO store with Connectif.
- Insert an inline in VTEX, to insert Connectif content using an inline in your VTEX IO.
- Affiliate Configuration in VTEX, to learn how to sync affiliates in VTEX with Connectif and how that synchronization works.
- Custom Integration to Send Data, to send data from Connectif to external systems or applications.