Skip to content

JanPetr/one-result-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redict To One Product Result plugin for Algolia for Magento 2

Magento 2 module to redirect to the product, when there is only one product in a results.

How it works

This extension adds a Plugin class (How Plugins work) to Algolia's back-end search Adapter class, which checks the number of results returned by Algolia.

If there is only one product returned from Algolia, the extension redirects a user to this returned product.

Installation

Install the extension with Composer:

$ composer require janpetr/algoliasearch-magento2-one-result-redirect
$ php bin/magento module:enable JanPetr_OneResultRedirect