Change the design of your Search Pages
Purpose: This is the template that appears when a search is performed on the site. It will provide a listing of results based on the keyword(s) used during the search.
Notes: The template contains certain blocks that are dependent on whether the store is set to enable search results for additional pages and categories. More information on this will be contained in the Variables listing of this page.
Note: It is important to preserve the commented tags to ensure the software performs correctly.
For example:
<!--START: BODY_HEADER--> [frame_breadcrumb-home] [keyword] [keyword] <!--END: BODY_HEADER--> <!--START: CATEGORY_HEADER--> [CONTENT] <!--END: CATEGORY_HEADER--> <!--START: SEARCH_PAGES--> [Search_Header-pages] <!--START: SEARCH_PAGES_FORMAT--> [page_link] [page_name] [page_content] <!--END: SEARCH_PAGES_FORMAT--> <!--START: SEARCH_PAGES_MORERESULTS--> [keyword_search] [Search_pages-moreresults] <!--END: SEARCH_PAGES_MORERESULTS--> <!--END: SEARCH_PAGES--> <!--START: SEARCH_CATEGORIES--> [Search_Header-categories] <!--START: SEARCH_CATEGORIES_FORMAT--> [keyword_search] [sortby] [thiscatid] [cat_name] [cat_items] <!--END: SEARCH_CATEGORIES_FORMAT--> <!--END: SEARCH_CATEGORIES--> <!--START: SEARCH_BAR--> [keyword_search] [catid] [Search_header] [productnumber] [CATEGORY_FULLLINE] <!--START: sortbylist--> [sortbylist] <!--END: sortbylist--> <!--END: SEARCH_BAR--> <!--START: NO_RESULTS--> [Search_no-results] <!--END: NO_RESULTS--> <!--START: PAGING--> [category_moreresults] <!--START: PREV--> [keyword_search] [sortby] [prev] [catid] [category_previouspage] <!--END: PREV--> <!--START: PAGES--> <!--START: FIRST_PAGE--> [keyword_search] [catid] [PAGE] <!--END: FIRST_PAGE--> <!--START: PAGES_SELECTED--> [PAGE] <!--END: PAGES_SELECTED--> <!--START: PAGES_NOTSELECTED--> [keyword_search] [sortby] [catid] <!--END: PAGES_NOTSELECTED--> <!--START: LAST_PAGE--> [keyword_search] [sortby] [catid] [PAGE] <!--END: LAST_PAGE--> <!--END: PAGES--> <!--START: NEXT--> [keyword_search] [sortby] [next] [catid] [category_nextpage] <!--END: NEXT--> <!--END: PAGING--> <!--START: CATEGORY_ITEMS--> <!--START: ITEM_TEMPLATE--> [catalogid] [THUMBNAIL] [name] <!--start right col--> [catalogid] [name] <!--START: categories--> [catid] [categories] <!--END: categories--> [description] <!--START: product_availability--> [product_Header-availability] [availability] <!--END: product_availability--> <!--START: freeshippingblock--> [freeshipping] <!--END: freeshippingblock--> <!--START: price2--> [product_retailprice] [price2] <!--START: SAVINGS--> [product_savings] [savings] <!--END: SAVINGS--> <!--END: price2--> <!--START: ITEMPRICE--> [product_yourprice] [ITEMPRICE] <!--END: ITEMPRICE--> <!--START: SALEPRICE--> [product_onsale] [ITEMSALEPRICE] <!--END: SALEPRICE--> <!--START: product_review--> <!--START: product_review_average--> [review_average] [review_count] <!--END: product_review_average--> <!--END: product_review--> <!--START: addtocart--> [catalogid] [product_addtocart] <!--END: addtocart--> <!--end right col--> <!--END: ITEM_TEMPLATE--> <!--END: CATEGORY_ITEMS--> <!--START: PAGING--> [category_moreresults] <!--START: PREV--> [keyword_search] [sortby] [prev] [catid] [category_previouspage] <!--END: PREV--> <!--START: PAGES--> <!--START: FIRST_PAGE--> [keyword_search] [catid] [PAGE] <!--END: FIRST_PAGE--> <!--START: PAGES_SELECTED--> [PAGE] <!--END: PAGES_SELECTED--> <!--START: PAGES_NOTSELECTED--> [keyword_search] [sortby] [catid] <!--END: PAGES_NOTSELECTED--> <!--START: LAST_PAGE--> [keyword_search] [sortby] [catid] [PAGE] <!--END: LAST_PAGE--> <!--END: PAGES--> <!--START: NEXT--> [keyword_search] [sortby] [next] [catid] [category_nextpage] <!--END: NEXT--> <!--END: PAGING--> <!--START: CATEGORY_FOOTER--> [CONTENT] <!--END: CATEGORY_FOOTER-->
Note: Code blocks and their respective variables will only work with specific template pages.
Note: Several of these variables are used in multiple places on the page, with their dynamic content controlled by the code block used in each instance.
The following Variables will come into play if store is set to allow Search Results to be made for regular Page content searches. This setting can be enabled in the store's Settings ->General ->Store Settings. The following Variables will be listed within the "SEARCH_PAGES" code blocks.
These next Variables will come into play if store is set to allow Search Results to be made for Category content searches. This setting can be enabled in the store's Settings ->General ->Store Settings. The following Variables will be listed within the "SEARCH_CATEGORIES" code blocks.