EKM Tag: [ekm:searchbox]
This tag is used to output a search box on your shop. It can be used to output either a basic name search or advanced search.
- Tag Information
[ekm:searchbox][/ekm:searchbox]
[ekm:searchbox]
show_search_term='yes';
search_field_placeholder='Search for products...';
output_start='<div class="search-box">';
layout='[search-field][search-button]';
output_end='</div>';
[/ekm:searchbox]
show_search_term='yes';
Specify whether, when a search is performed, you'd like this search box to display the search term in the text box.
search_parameters='productname, productdescriptions';
Specify which parameters you would like to be included in the search. By default, only the product name is searched for matches that contain all the words within the search term. If you use any other parameters, the search will look for matches that contain any of the words within the search term. This can be a comma separated list of the available values.
search_field_placeholder='Search for products...';
Allows you to define your own placeholder text to be output in the search box text field.
search_field_attributes=' style="color: red;" ';
Specify HTML <input />
tag attributes to be placed on the search field.
additional_field_class='new-class';
Specify any additional classes to be added to the search field.
search_button_value='Search';
Specify the text to be used on the search button.
search_button_attributes=' style="background-color: red;" ';
Specify HTML <input />
tag attributes to be placed on the search button.
additional_button_class='new-class';
Specify any additional classes to be added to the search button.
button_src='';
Specify an image path to be used as the search button
output_start='<div class="search-box">';
Specify any HTML you want to be output before the search field and button.
layout='[search-field][search-button]';
Specify the layout of the search box content. Use this to output any HTML you want to wrap the text box and button.
output_end='</div>';
Specify any HTML you want to be output after the search field and button.