GithubHelp home page GithubHelp logo

mageworx / search-suite-autocomplete Goto Github PK

View Code? Open in Web Editor NEW
27.0 10.0 14.0 203 KB

Fast and accurate autocomplete search results for better user experience.

Home Page: https://www.mageworx.com/magento-2-search-atocomplete-free.html

License: GNU General Public License v3.0

PHP 58.93% HTML 9.54% CSS 14.36% JavaScript 17.17%
magento2-extension-free magento2-extension magento2-module

search-suite-autocomplete's Introduction

Search Autocomplete for Magento 2

Autocomplete search suggestions are common nowadays. When designed well, this functionality helps shoppers to construct their search queries and get to the searched products faster. Search Autocomplete was designed to make searching simple and intuitive. It delivers quick and precise results, thus helping customers get more effective queries. Autocomplete functionality provides the intuitive search experience and instantly displays search suggestions based on the first-entered characters. This functionality helps customers move from the search box to the checkout as quickly as possible.

Features

Instant search results in a customizable AJAX pop-up
Suggested searches
Smart search queries caching
Adjustable search delay period
The ability to specify the # of displayed search results
Including product details (product image, SKU, price, reviews/ratings, etc.)
"Add to Cart" button right in the search results

How to install Search Suite Autocomplete for Magento 2

Install via composer (recommend)

Run the following command in Magento 2 root folder:

composer require mageworx/module-searchsuiteautocomplete
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Install ready-to-paste package (not recommend)

Changelog

Changelog

Authors, contributors and maintainers

Author:

Ideas, bugs, contributions, comments, feature suggestions?

Please get in touch with us via the issue tracker on GitHub

Compability

  • PHP:

    • 5.6.x
    • 7.0.x
    • 7.1.x
    • 7.2.x
  • Magento CE:

    • 2.0.x
    • 2.1.x
    • 2.2.x
    • 2.3.x
    • 2.4.x
  • Magento EE:

    • 2.0.x
    • 2.1.x
    • 2.2.x
    • 2.3.x
    • 2.4.x
  • Operating System: Linux

Documentation

  1. Module Configuration

License

GPL v3

Links

search-suite-autocomplete's People

Contributors

sergei-sss avatar siarheyuchukhlebau avatar sprankhub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

search-suite-autocomplete's Issues

Incompatibility with MagePlaza's Layered Navigation

Environment:

  • MageWorx SearchSuiteAutocomplete 2.1.11
  • Newest version of Porto theme which comes with LayeredNavigation
  • Magento 2.3.7
  • PHP 7.4
  • ElasticSearch 7.13.4

Error:

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Sorry, something went wrong. You can find out more in the error log.

Exception #0 (Magento\Framework\Exception\LocalizedException): Sorry, something went wrong. You can find out more in the error log.
<pre>#1 Magento\Framework\Data\Collection\AbstractDb->_renderFilters() called at [app/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection.php:519]
#2 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection->_renderFilters() called at [vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php:923]
#3 Magento\Eav\Model\Entity\Collection\AbstractCollection->load() called at [vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:832]
#4 Magento\Catalog\Model\ResourceModel\Product\Collection->load() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#5 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#6 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#7 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->___callPlugins() called at [generated/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection/Interceptor.php:429]
#8 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->load() called at [vendor/magento/framework/Data/Collection.php:838]
#9 Magento\Framework\Data\Collection->getIterator() called at [generated/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection/Interceptor.php:1948]
#10 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->getIterator() called at [app/code/MageWorx/SearchSuiteAutocomplete/Model/Search/Product.php:103]
#11 MageWorx\SearchSuiteAutocomplete\Model\Search\Product->getResponseData() called at [app/code/MageWorx/SearchSuiteAutocomplete/Model/Search.php:48]
#12 MageWorx\SearchSuiteAutocomplete\Model\Search->getData() called at [app/code/MageWorx/SearchSuiteAutocomplete/Controller/Ajax/Index.php:76]
#13 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index->execute() called at [generated/code/MageWorx/SearchSuiteAutocomplete/Controller/Ajax/Index/Interceptor.php:24]
#14 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:108]
#15 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#16 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#17 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#18 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->___callPlugins() called at [generated/code/MageWorx/SearchSuiteAutocomplete/Controller/Ajax/Index/Interceptor.php:39]
#19 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:186]
#20 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:118]
#21 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#22 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#23 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99]
#24 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#25 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:69]
#26 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#27 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#28 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26]
#29 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#30 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:24]
#31 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:261]
#32 Magento\Framework\App\Bootstrap->run() called at [index.php:39]
</pre>

Search result not in relevant order

Thank you guys for the great module!
Could you please help me. Quick search returned me the product list not in the same order if i click "enter" and see the search result page. How can i fix it?
I want to see in quick search products sorted by "relevance".
I use Magento 2.3.4, MySQL search engine.

magento 2.3

Hi,

is this module compatibile with Magento 2.3.0?

Conflict with Mageplaza Layered navigation

When used with this extension there is error as below
https://www.mageplaza.com/magento-2-layered-navigation-extension/

{"0":"Sorry, something went wrong. You can find out more in the error log.","1":"#1 Magento\Framework\Data\Collection\AbstractDb->_renderFilters() called at [app/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection.php:519]\n#2 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection->_renderFilters() called at [vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php:923]\n#3 Magento\Eav\Model\Entity\Collection\AbstractCollection->load() called at [vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:832]\n#4 Magento\Catalog\Model\ResourceModel\Product\Collection->load() called at [vendor/magento/framework/Interception/Interceptor.php:58]\n#5 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]\n#6 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]\n#7 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->___callPlugins() called at [generated/code/Mageplaza/LayeredNavigation/Model/ResourceModel/Fulltext/Collection/Interceptor.php:39]\n#8 Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor->load() called at [vendor/magento/framework/Data/Collection.php:839]\n#9 Magento\Framework\Data\Collection->getIterator() called at [app/code/MageWorx/SearchSuiteAutocomplete/Model/Search/Product.php:85]\n#10 MageWorx\SearchSuiteAutocomplete\Model\Search\Product->getResponseData() called at [app/code/MageWorx/SearchSuiteAutocomplete/Model/Search.php:48]\n#11 MageWorx\SearchSuiteAutocomplete\Model\Search->getData() called at [app/code/MageWorx/SearchSuiteAutocomplete/Controller/Ajax/Index.php:76]\n#12 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]\n#13 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]\n#14 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php:51]\n#15 Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute() called at [vendor/magento/framework/Interception/Interceptor.php:135]\n#16 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]\n#17 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->___callPlugins() called at [generated/code/MageWorx/SearchSuiteAutocomplete/Controller/Ajax/Index/Interceptor.php:26]\n#18 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111]\n#19 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]\n#20 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]\n#21 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]\n#22 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->___callPlugins() called at [generated/code/MageWorx/SearchSuiteAutocomplete/Controller/Ajax/Index/Interceptor.php:39]\n#23 MageWorx\SearchSuiteAutocomplete\Controller\Ajax\Index\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:186]\n#24 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:118]\n#25 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]\n#26 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]\n#27 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99]\n#28 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]\n#29 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:71]\n#30 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]\n#31 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]\n#32 Magento\Framework\App\FrontController\Interceptor->__callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26]\n#33 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]\n#34 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:263]\n#35 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:40]\n","url":"/MageWorx_searchsuiteautocomplete/ajax/index/?q=salad&=1604926251278","script_name":"/index.php","report_id":"445cc10879d3788a24b408b758c480dcbddd11c4659fd3e6e4d5b9682d6856fa"}

Accessibility / keyboard navigation

Hi,

I was wondering why the search component is not made accessible? Once the autocomplete results pop up, there is no way to navigate them by keyboard which is the expected behavior of a dropdown list.

Was this a conscious decision or an oversight?

Not working on Magento CE 2.2.2

Hi,
I have tried to install this extension - it installed correctly but when I tried to use it the popup search autocomplete is not working.

When I inspect code the tag for autocomplete search is in the code, so I do not know what the problem is.
Any ideas on how to solve this problem?

image

Anyway to force AND instead of OR query

Hi, when I search for "bird food" the results that shows up would display all products with the keyword bird OR food so that fish food would also show up. My question is: is there anyway to force the search to use AND instead of OR? thanks!

Not working on M2 v2.1.18

For me it's not working on M2 v2.1.18.

*Please note I use a search from a block.
{{block class="Magento\Search\Block\Term" template="Magento_Search::form.mini.phtml"}}

Thank you.

Not working with ES7 and MC2.4.4

Hello,

Not working with Magento 2.4.4 and Elastic Search 7. While autocomplete works however not using Elastic Search starting to show results from the first 2 strings only and it's slow.

Loading Gif

Hi Mageworx,
This is a useful extension.
Is there a way to add a loading gif while the search loads the product window?
Thank you.

Problem in displaying HTML Character Entities

There appears to a problem displaying HTML special characters or entities in the suggestion results. See attached.

special-chars

I also found that these types of characters are being converted to the special codes for display, even if the product name/description data has the actual characters and not the entity codes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.