Quick product search

Provides rapid product search functionality. Returns matching products based on search criteria, or popular products when no search term is provided.

The response includes both a count and pre-formatted HTML display content.

Templates:
- quicksearch/index-ajax.tpl.html

Available Smarty Variables

When working within the 'quicksearch/index-ajax.tpl.html' template, the following variables are available for you to use.

Main Variables

ParameterValuesDescription
itemsArrayContains all the items found for given result type
items_countintCount of all returned items


Result Types

All result types can be enabled via the aurora back-end. To enable the desired type result, or to reorder them, you need to visit Merchandising > Search Settings > Quick Search > Result Block.

Closest Content/Blog Pages

ParameterValuesDescription
itemsArrayContains all the items which are found from the search
item.idintIdentifier of the item
item.namestringName of the item
item.typestringName of the result type
item.urlstringURL of the item
item.objectlogical
item.datastringPlanned for additional fields. Not in use.


Closest Products

ParameterValuesDescription
itemsArrayContains all the items which are found from the search
item.idintIdentifier of the item
item.namestringName of the item
item.typestringName of the result type
item.urlstringURL of the item
item.objectlogical
item.dataArrayProduct with extended fields. More information here.


Closest Product Categories

ParameterValuesDescription
itemsArrayContains all the items which are found from the search
item.idintIdentifier of the item
item.namestringName of the item
item.typestringName of the result type
item.urlstringURL of the item
item.objectlogical
item.dataArrayPlanned for additional fields.
item.data.product_countintNumber of the products under that category.
item.data.complete_category_stringstringThe complete path of the category and its parent categories, returned in the form of the names of all said categories, separated by the pipe character |.


Closest Popular Search Terms

ParameterValuesDescription
itemsArrayContains all the items which are found from the search
item.idintIdentifier of the item
item.namestringName of the item
item.typestringName of the result type
item.urlstringURL of the item
item.objectlogical
item.dataArrayContains all categories, which match the Popular Search Term
item.data.idintIdentifier of the category.
item.data.category_complete_urlstringComplete URL of the category.
item.data.category_namestringName of the category.
item.data.category_parentintCategory parent ID. It will contain 0 if this is only one level.

Language
Click Try It! to start a request and see the response here!