To integrate Recommendations follow these steps:
- General Information
- Integrating Recommendations on Product or Cart Pages
1. General Information
In order to integrate Recommendation widgets, please follow these guidelines.
Before you integrate a specific recommendation widget, please make sure to setup the corresponding widget in our <span class="cm-s-neo" style="box-sizing: border-box;">Merchant Dashboard</span>
-> <span class="cm-s-neo" style="box-sizing: border-box;">Recommendations section</span>
: https://developers.findify.io/docs/recommendations#how-do-i-use-findify-recommendations.
2. Integrating Recommendations on Product or Cart Pages
For Product or Cart Page type of Recommendations, it is required to provide the product ids of the currently viewed/added to the cart items.
Those ids will then need to be passed to our <span class="cm-s-neo" style="box-sizing: border-box;">useFindify</span>
hook like this:
const [container, isReady, hasError] = useFindify({ type: 'recommendation', options: { rules: [{ 'action': 'exclude', 'type': 'text', 'name': 'id', 'values': [{ value: ["item_id_1", "item_id_2", ...] //provide the list of ids to the value array }]}], item_ids: ["item_id_1", "item_id_2", ...] //provide the list of ids to the value array }, config: { slot: 'RECOMMENDATION_SLOT', } });