Hi Prestashop Community,
i need your help
I want to modify my module blocksearch as the following.
Want to use 2 search input fields instead only one1.
(My Example Search for Location & for Product)
In the browser http search query it should look like this if i click on the search button:
....?controller=search&orderby=position&search_query=input1+input2
This is the code in my blocksearch-top.tpl for the input field
<form method="get" action="{$link->getPageLink('search', true)|escape:'html'}" id="searchbox"><p>
<label for="search_query_top"><!-- image on background --></label>
<input type="hidden" name="controller" value="search" />
<input type="hidden" name="orderby" value="position" />
<input type="hidden" name="orderway" value="desc" />
<input class="search_query" type="text" id="search_query_top" name="search_query" value="{$search_query|escape:'html':'UTF-8'|stripslashes}" />
<input type="submit" name="submit_search" value="{l s='Search' mod='blocksearch'}" class="button" />
</p>
</form>
Can anyone help what i have to change in the blocksearch-top.tpl and in the classes/search.php file ?
Thanks Devil