Tuesday, 29 January 2013

How to create search in any file.

<form id="search_mini_form" action="<?php echo $this->helper('catalogsearch')->getResultUrl() ?>" method="get">
<div class="form-search">       
<input id="search" class="input-text" name="<?php echo $this->helper('catalogsearch')->getQueryParamName() ?>" value="<?php echo $this->helper('catalogsearch')->getEscapedQueryText() ?>" type="text">
        <button class="button" title="<?php echo $this->__('Search') ?>">
        <span>Search</span></button>

        <script type="text/javascript"><!--mce:2--></script></div>
</form>

No comments:

Post a Comment