Jump to content

Recommended Posts

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) :rolleyes:

 

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  ? :blink:

 

Thanks Devil

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...