Jump to content

Error in Search.tpl


hpolak

Recommended Posts

I get an error message when searching the store with a keyword.

 

The error is "Please enter a search keyword" which is strange as the keyword is provided.

 

{if !$nbProducts}
    <p class="alert alert-warning">
        {if isset($search_query) && $search_query}
            {l s='No results were found for your search'} "{if isset($search_query)}{$search_query|escape:'html':'UTF-8'}{/if}"
        {elseif isset($search_tag) && $search_tag}
            {l s='No results were found for your search'} "{$search_tag|escape:'html':'UTF-8'}"
        {else}
            {l s='Please enter a search keyword'}
        {/if}
    </p>
 

For some reason, quite unexpectedly, search_query seems to be empty.

 

For instance: http://carnes-online.com/buscar?controller=search&orderby=position&orderway=desc&search_query=pollo&submit_search=

 

Prestashop version 1.6.1.12

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...