Knowledgebase: Products

Can I add my product's extra fields to Search Results?

 

By default, the store's search results page will display the product thumbnail, name, price, and availability. The search page's HTML template can also be edited to include the Fields 1 through 13 in the search results.

Important
Editing the HTML templates requires knowledge of HTML and is not within the scope of technical support. This article assumes you are familiar with HTML and willing to make these changes yourself.

If you are not able or willing to make edits to your search page on your own, please click here to order the design change from our special myWebMaster services.

To include your products extra fields in the search results page, you will need to edit the search.html template. This template can be found in the template editor.

Tip
To get to the template editor, go to Settings >Design >Themes & Styles, click on the "More" button at the top right and select "Edit Template (HTML)" from the selection.

If search.html is not listed in your theme folder, then click on the "Go to folder:" drop-down menu and select your store's common folder to locate and edit search.html.

Once you are able to edit the search.html template, add the following code where you would like the extra fields to display:

<!-START: extra_field_x>
<div class="extra_field">
<h4>[product_extrafieldx]</h4>
<div class="info">[extra_field_x]</div>
<div class="clear"></div>
</div>
<!-END: extra_field_x>

Be sure to change x in the above coding to reflect which field you would like to display on the page. For example, if you would like to display extra field 1 on the search results, the coding will need to look like this:

<!-START: extra_field_1>
<div class="extra_field">
<h4>[product_extrafield1]</h4>
<div class="info">[extra_field_1]</div>
<div class="clear"></div>
</div>
<!-END: extra_field_1>

As mentioned, you may use the above to display your content from extra fields 1 through 13.


Help Desk Software by Kayako fusion