marco-pm/zencart-instantsearch
Composer 安装命令:
composer require marco-pm/zencart-instantsearch
包简介
Instant Search plugin for Zen Cart
README 文档
README
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:
- Refactor of the search class to allow the use of different search engines (with automatic fallback to MySQL if the search engine is unavailable)
- Support for using Typesense as a search engine (with the Typesense add-on)
- Improved display of categories and brands in the dropdown
- Search in the product category and brand
- Complete rewrite of the JavaScript code of dropdown and results page with React and TypeScript
- Improved dropdown accessibility and keyboard navigation
- Various bug fixes and improvements
These add to the features and improvements of version 3.0:
- Faster and better searches, with MySQL Full-Text search and Query Expansion
- New, additional search results page with sortable product list and infinite scroll
- New admin settings, including control of which product fields to search and their order
- More robust dropdown auto-positioning
- Support for Zen Cart 1.5.8 language files and plugin upgrade functionality
- Integration with Search Log plugin
- Responsive Classic and Bootstrap template files included
- Code almost entirely rewritten, removed jQuery dependency, and many other improvements
There are no modifications to Zen Cart core files.
Prerequisites
- Zen Cart 1.5.7 or 1.5.8
- PHP 7.4 through 8.2
Installation, use and FAQs
See the readme.html.
Troubleshooting
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
marco-pm/zencart-instantsearch 适用场景与选型建议
marco-pm/zencart-instantsearch 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 2, 最近一次更新时间为 2023 年 02 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 marco-pm/zencart-instantsearch 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 marco-pm/zencart-instantsearch 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2023-02-24