|
The SearchResult store block determines the design for displaying the list of products that are found as search results.
By editing the corresponding templates you can create the design you need for a list of products. All templates for the SearchResult block are located in the folder avactis-templates/catalog/search/search-result/default/.
The SearchResult block includes four types of templates: a container, an empty container, single-product templates, and the "No matches found" template.
| • | The container template (search-result-container.tpl.html) is required for defining the design of the overall SearchResult block in case one or more products matching the search criteria were found. For example, this template is used to define the width and color of the block frame, to place a title at the top of the block, and so on. |
| • | The template called "No matches found" (search-result-container-nomatch.tpl.html) is used to display the block in case no products matching the search criteria were found. The template may contain some text such as "Your request produced no matching results." |
| • | A single-product template (search-result-item-general.tpl.html) is used to define the display of a single product in the block. There may be several such templates: for each type of product you can define a corresponding single-product template. |
| • | An empty template (search-result-container-empty.tpl.html) is used in case no search was run, for instance, when rendering a visitor's first-time visit to the search page. |
The image below is a flow-chart of all templates for the SearchResult block that come packaged with the standard edition of Avactis Shopping Cart.


|