Options
All
  • Public
  • Public/Protected
  • All
Menu

Recommendation implementation

Documentation of Recommendation module is in interface description RecommendationInterface

Hierarchy

  • Recommendation

Implements

Index

Constructors

Methods

Constructors

  • Parameters

    • config: Config

      Customer configuration

    Returns Recommendation

Methods

  • 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)
    })

    Parameters

    Returns Promise<Product[]>

Generated using TypeDoc