Customer configuration
The purpose of the method is to indicate recommended products.
The method returns recommended products that meet the set criteria. Please note that some restrictions on the recommendation frame are configured in the panel.
const recommendationEngine = new Recommendation(customerConfig)
const categoryWidget: RecommendationParams = {
placementId: '_placement_Id_',
filters: [FilterApi.category('_product_category_id')],
}
await recommendationEngine.getRecommendation(categoryWidget)
.then(response => {
console.log(response.map(el => {return el.title + ' ' + el.price}))
})
.catch(reason => {
console.log(reason)
})
Generated using TypeDoc
Recommendation implementation
Documentation of Recommendation module is in interface description RecommendationInterface