In the product catalog, you can see the list of products that a vendor offers. When the customer selects a product, you can display the list of recommended products on the same page. This section lists the scenarios using which the recommended products appear. To configure recommendations for a product use the following APIs:
Scenario 1 After a customer searches a product, the customer selects a product by clicking the product name or image in the result view. The recommendations for that product along with product details should appear.
Scenario 2 After a customer searches a product, the customer adds the product to the cart using the Add to Cart button. On the Cart Details page, the recommendations for that product along with product details should appear along with the cart line items.
For each recommended product, display the product image, name, description, and price.