get https://demo.auroracommerce.com/ajax/Ajax_Frontend_QuickSearch/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
When working within the 'quicksearch/index-ajax.tpl.html' template, the following variables are available for you to use.
Parameter | Values | Description |
---|
items | Array | Contains all the items found for given result type |
items_count | int | Count of all returned items |
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.
Parameter | Values | Description |
---|
items | Array | Contains all the items which are found from the search |
item.id | int | Identifier of the item |
item.name | string | Name of the item |
item.type | string | Name of the result type |
item.url | string | URL of the item |
item.object | logical | |
item.data | string | Planned for additional fields. Not in use. |
Parameter | Values | Description |
---|
items | Array | Contains all the items which are found from the search |
item.id | int | Identifier of the item |
item.name | string | Name of the item |
item.type | string | Name of the result type |
item.url | string | URL of the item |
item.object | logical | |
item.data | Array | Product with extended fields. More information here. |
Parameter | Values | Description |
---|
items | Array | Contains all the items which are found from the search |
item.id | int | Identifier of the item |
item.name | string | Name of the item |
item.type | string | Name of the result type |
item.url | string | URL of the item |
item.object | logical | |
item.data | Array | Planned for additional fields. |
item.data.product_count | int | Number of the products under that category. |
item.data.complete_category_string | string | The 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 |. |
Parameter | Values | Description |
---|
items | Array | Contains all the items which are found from the search |
item.id | int | Identifier of the item |
item.name | string | Name of the item |
item.type | string | Name of the result type |
item.url | string | URL of the item |
item.object | logical | |
item.data | Array | Contains all categories, which match the Popular Search Term |
item.data.id | int | Identifier of the category. |
item.data.category_complete_url | string | Complete URL of the category. |
item.data.category_name | string | Name of the category. |
item.data.category_parent | int | Category parent ID. It will contain 0 if this is only one level. |