Download the PHP package thelia/product-search-module without Composer
On this page you can find all versions of the php package thelia/product-search-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package product-search-module
IndexEngine module for Thelia
Summary
This module provides a search pop-in for the front office based on IndexEngine module.
This is an integration example of the "products" index, provided by default with IndexEngine module.
You can install this module with composer:
This module requires IndexEngine module to work.
Go to your backOffice and activate the module. A search button should have appeared in your front navbar.
This module provides an overlay to index engine's search for products, using its default configuration.
You can require it this way:
You can improve your search with the following constructor parameters:
Name | Default value | Definition |
---|---|---|
locale | en_US | The current site locale |
currency | USD | The current site currency code |
currencySymbol | $ | The current site currency symbol |
templateItem | $('#item-template').html() | The item template to use |
noResultTemplate | The template to display if no product is found | |
listResult | document.getElementById('list-result') | The
|
searchButton | search-button | The search button ID |
closeButton | close-search | The search overlay close button ID |
submitSearch | search-query-form | The search |
inputSubmitSearch | search-query | The search tag ID |
searchBlock | search-block | The search overlay container ID |
pageWrapper | page | The page container class |
apiUrl | /api/public/search | Relative search API url |
indexCode | products | The index configuration code |
params | {} | The filter parameters. Example: {"ref":["LIKE", '']} |