janpetr / algoliasearch-magento2-one-result-redirect
Magento 2 module to redirect to the product, when there is only one in a results
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
Type:magento2-module
Requires
This package is auto-updated.
Last update: 2024-11-20 03:33:09 UTC
README
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