marco-pm / zencart_instantsearch

Instant Search plugin for Zen Cart
GNU General Public License v3.0
2 stars 4 forks source link

Instant Search plugin 4.0 for Zen Cart 1.5.7 and 1.5.8

Show autocomplete search results while the user is typing. Show relevant search results in a listing page with infinite scroll.

Features

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.

Prerequisites

Installation, use and FAQs

See the readme.html.

Troubleshooting

Zen Cart Forum Support Thread

See also the FAQS & troubleshooting section in the readme.html.

Development

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

Testing

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