Show autocomplete search results while the user is typing. Show relevant search results in a listing page with infinite scroll.
This plugin uses a combination of MySQL Full-Text Search and LIKE/REGEXP queries to quickly find and sort products, brands, and categories based on their relevance to the user query.
With the Typesense add-on, Typesense can be used as a search engine in place of MySQL.
The results can be displayed in an autocomplete dropdown as the user types in a search box and/or as a search results page with a sortable product list and infinite scroll once the user submits the search form, providing an alternative to the classic Zen Cart search results page.
Version 4.0 of the plugin brings new and improved features:
These add to the features and improvements of version 3.0:
There are no modifications to Zen Cart core files.
See the readme.html.
See also the FAQS & troubleshooting section in the readme.html.
To build the .js
files from the .tsx
sources, install Node.js and NPM, then run:
npm install
# dropdown:
npm run build-instant_search_dropdown
# results page:
npm run build-instant_search_results
Unit and integration tests use the Test Framework of Zen Cart 1.5.8.
Place the content of the tests
directory of this repo under /not_for_release/testFramework
.
Run the tests with:
php phpunit --configuration phpunit_instantsearch.xml