{extends file="layout.tpl"} {block name="body-class"}page-search{/block} {* Breadcrumb *} {block name='no-return-functions' append} {$breadcrumbs = [ ['title' => {intl l="Search"}, 'url'=>{url path="/search"}] ]} {/block} {block name="main-content"}
{$limit={$smarty.get.limit|default:8}} {$product_page={$smarty.get.page|default:1}} {$product_order={$smarty.get.order|default:'alpha'}}

# {intl l="Search Result for"} {$smarty.get.q}

{assign var="amount" value={count type="product" title={$smarty.get.q}}} {include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order amount={$amount}}
{ifloop rel="product_list"}

{loop type="product" name="product_list" title={$smarty.get.q} limit=$limit page=$product_page order=$product_order} {include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="369" height="247"} {/loop}

{/ifloop} {elseloop rel="product_list"}

## {intl l="No results found"}

{/elseloop}
{ifloop rel="product_list"} {include file="includes/toolbar.html" toolbar="bottom" amount={$amount}} {/ifloop}
{/block} {block name="stylesheet"} {hook name="search.stylesheet"} {/block} {block name="after-javascript-include"} {hook name="search.after-javascript-include"} {/block} {block name="javascript-initialization"} {hook name="search.javascript-initialization"} {/block}