Skip to main content
Algolia Recommend lets you display recommendations from your product catalog on your website. Users can jump to similar or complementary items if an item isn’t what they’re looking for.

Before you begin

Before using Algolia Recommend with Magento, check the following requirements:
  • Algolia extension for Magento Open Source and Adobe Commerce version 3.8 or later.
  • You’re sending click and conversion events. Algolia Recommend relies on click and conversion events to keep improving its recommendations. You can also upload events from a CSV file.
  • You have trained Recommend models. You can check the status of your models on the Algolia Recommend page in the dashboard, in the Existing models section. Screenshot of the 'Models' section in Algolia Recommend, listing trained models like 'Frequently bought together' with timestamps and 'View' links.
For more information, see:

Configure Algolia Recommend for Magento

In your Magento dashboard, go to Stores > Configuration > Algolia Search > Recommend Products Settings. You can enable these recommendation models:

Frequently bought together

Configure the Frequently bought together recommendations in the Magento dashboard
  • Set Enable on PDP to Yes to show recommendations from this model on product detail pages below the main product information. If you use recommendations from Algolia’s Frequently bought together model, remove the default upsell products from the interface.
  • Set Enable on Cart Page to Yes to show Frequently bought together recommendations on the shopping cart page below the More choices section.

Remove the Magento upsell products block

To hide Magento’s default upsell products, set Remove The Magento Upsell Products Block to Yes. Configure the Related items recommendations in the Magento dashboard
  • Set Enable on PDP to Yes to show recommendations from this model on product detail pages. The recommendations appear below the main product information after the Frequently bought together recommendations (if active). If you use recommendations from Algolia’s Related items model, remove the default related items from the interface.
  • Set Enable on Cart Page to Yes to show Related items recommendations on the shopping cart page.
You can configure content-based filtering in the Algolia dashboard.
To hide Magento’s default related items, set Remove The Magento Related Items Block to Yes. Configure the Trending items recommendations in the Magento dashboard Display a list of trending items using the Trending items model from Algolia Recommend on product detail, shopping cart, and other pages.
  • Set Enable on PDP to Yes to show the recommendations from the Trending items model on product detail pages. The recommendations appear below the main product information after the Frequently bought together and Related items recommendations (if active).
  • Set Enable On Cart Page to Yes to show the Trending items recommendations on the shopping cart page.
  • Set Enable Trending Items Widgets to Yes to show the Trending items recommendations on CMS pages that have the Trending items widget.
Add a Trending items widget with the Algolia Recommend Trending Items widget. Configure options for the trending items recommendations To configure this widget, add these details:
  • Number of Trending Items. Select the number of recommendations you want to show in the widget.
  • Facet name. Select a facet for filtering the recommendations. For example, color.
  • Facet value. Select a value that matches the facet name. For example, if you select color as the facet name, selecting blue shows only blue products in your recommendations.

Looking similar

Configure the Looking similar recommendations in the Magento dashboard Display a list of similar-looking items using the Looking similar model from Algolia Recommend on the product detail, shopping cart, and other pages.
  • Set Enable on PDP to Yes to show similar-looking items at the bottom of the product detail page.
  • Set Enable On Cart Page to Yes to show similar-looking items on the cart page.
  • Set Enable Looking Similar Widgets to Yes to show similar-looking items on the CMS or other pages that support widgets.

Configure Looking similar widgets

Create a widget with the Algolia Looking Similar Items widget. Configure options for the trending items recommendations To configure this widget, add these details:
  • Number of Looking Similar Items. Select the number of similar-looking items you want to show in the widget. Default is 6.
  • Product IDs (required). Enter product IDs (separated by commas).

Change the layout of Algolia Recommend models

Override the file view/frontend/web/js/template/recommend/products.js from the original extension.

Add fallback recommendation

Fallback recommendations appear when the Algolia Recommend model doesn’t return any recommendations. This can happen when a product doesn’t have enough events. You can show fallback recommendations with fallbackParameters and fallbackComponent. To add fallback recommendations, override the file view/frontend/web/js/recommend.js from the original extension. The fallbackParameters for each model’s requests object has search parameters. Use these as an alternative when no recommendations are available. Add fallbackParameters to the following files as needed: For example:
JavaScript
Use fallbackComponent for rendering when the model doesn’t return any recommendations. Add fallbackComponent to the following files as needed: For example:
JavaScript

Customize styles

To customize the style of the recommendations, update view/frontend/web/css/recommend.css.
Last modified on September 16, 2026