Jump to content

[Solved] Ajax search undefined


Recommended Posts

Hello.

In my shop version 1.3.2. the quick search tab working great with the default template. So when you type you got the ajax resulsts.

With my custom template when I typing I got

undefined > undefined

instead off the products.


Could somebody please help?

Link to comment
Share on other sites

Well, as you should know, the problem is related to your custom theme.

You can compare custom and original .tpl to fix your problem (I suppose this is something like "id=" missing somewhere in blocksearch-top.tpl or something like that

Link to comment
Share on other sites

Well, as you should know, the problem is related to your custom theme.

You can compare custom and original .tpl to fix your problem (I suppose this is something like "id=" missing somewhere in blocksearch-top.tpl or something like that


I find the solution.

The problem was in a bad template coding. I fixed it.

Thank you for your suggestion.

I really appreciate.

Have a great time!

Regards.
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...

Hi.

 

I've installed prestashop 1.4.3 and use custome theme.

 

and ajax search result is undefined.

 

I think you 've solved this problem.

 

Plz, help me.

 

Thanks.

 

<div id="search_block_top">

 

<form method="get" action="{$link->getPageLink('search.php')}" id="searchbox">

<p>

<label for="search_query_top"><!-- image on background --></label>

<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="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{/if}" />

<input type="submit" name="submit_search" value="{l s='Search' mod='blocksearch'}" class="button" />

</p>

</form>

</div>

 

This is which I'm using on custome blocksearch-top.tpl

 

Thanks.

Link to comment
Share on other sites

  • 7 months later...
  • 3 weeks later...
  • 4 years later...
  • 4 weeks later...

I find the solution.

 

The problem was in a bad template coding. I fixed it.

 

Thank you for your suggestion.

 

I really appreciate.

 

Have a great time!

 

Regards.

How you do it.. please

Link to comment
Share on other sites

×
×
  • Create New...