Search the Community
Showing results for tags 'instant search'.
-
Hi everybody ! I have a difficulty to add an image on the instant search. I think i should modify anything in this file : blocksearch-instantsearch.tpl But i dont know how get the image for each product.. {if $instantsearch} <script type="text/javascript"> // <![CDATA[ function tryToCloseInstantSearch() { if ($('#old_center_column').length > 0) { $('#center_column').remove(); $('#old_center_column').attr('id', 'center_column'); $('#center_column').show(); return false; } } instantSearchQueries = new Array(); function stopInstantSearchQueries(){ for(i=0;i<instantSearchQueries.length;i++) { instantSearchQueries[i].abort(); } instantSearchQueries = new Array(); } $("#search_query_{$blocksearch_type}").keyup(function(){ if($(this).val().length > 0){ stopInstantSearchQueries(); instantSearchQuery = $.ajax({ url: '{if $search_ssl == 1}{$link->getPageLink('search', true)}{else}{$link->getPageLink('search')}{/if}', data: { instantSearch: 1, id_lang: {$cookie->id_lang}, q: $(this).val() }, dataType: 'html', type: 'POST', success: function(data){ if($("#search_query_{$blocksearch_type}").val().length > 0) { tryToCloseInstantSearch(); $('#center_column').attr('id', 'old_center_column'); $('#old_center_column').after('<div id="center_column" class="' + $('#old_center_column').attr('class') + '">'+data+'</div>'); $('#old_center_column').hide(); $("#instant_search_results a.close").click(function() { $("#search_query_{$blocksearch_type}").val(''); return tryToCloseInstantSearch(); }); return false; } else tryToCloseInstantSearch(); } }); instantSearchQueries.push(instantSearchQuery); } else tryToCloseInstantSearch(); }); // ]]> </script> {/if} {if $ajaxsearch} <script type="text/javascript"> // <![CDATA[ $('document').ready( function() { $("#search_query_{$blocksearch_type}") .autocomplete( '{if $search_ssl == 1}{$link->getPageLink('search', true)}{else}{$link->getPageLink('search')}{/if}', { minChars: 3, max: 10, width: 500, selectFirst: false, scroll: false, dataType: "json", formatItem: function(data, i, max, value, term) { return value; }, parse: function(data) { var mytab = new Array(); for (var i = 0; i < data.length; i++) mytab[mytab.length] = { data: data[i], value: data[i].cname + ' > ' + data[i].pname }; return mytab; }, extraParams: { ajaxSearch: 1, id_lang: {$cookie->id_lang} } } ) .result(function(event, data, formatted) { $('#search_query_{$blocksearch_type}').val(data.pname); document.location.href = data.product_link; }) }); // ]]> </script> {/if} mytab[mytab.length] = { data: data[i], value: data[i].cname + ' > ' + data[i].pname }; there is what we see in the search bar. But i dont know what i should add to get the image. If anyone can help me to find how i can do this.. thanks a lot.
-
Hi to all, I was accumulating many questions and concerns when it comes to native Prestashop search module and want to share them with the rest of the community. My thoughts are that some off these if not all are extremely important and need to be addressed immediately. Some are probably bugs, other on the other hand might be result of some other non Prestashop related stuff. First some basic info: My store is running Prestashop 1.5.4.1 It is running on a A2hosting SSD shared server located in their Iceland DC. My store URL is: www.dekom.co.rs (Serbia) Store, untill today, contains 3858 products. We are using instant search functionality. (we switched to regular search) We are using both back office and eMagicOne Manager for Prestashop to run our store and keep it up to date. These are some of the issues with the native search module that my colleagues and I came across for the last couple of months working with the PS: 1. Missing products in the search index. Products not showing in the results on the front office. This problem is quite serious. Reason why is more then obvious. If potential customers search for some spare part and don't find it, they wont buy it either. For example, I had 2 products in my store containing this phrase: "šarka BEKO". When my colleague accidentally searched for the items he only got one result in return. He found this strange because he knew we have 2 similar products both containing this phrase so he reported to me. I checked my BO and saw that Prestashop reports no missing products in the search index. I went to store Manager application, it was reporting the same thing. No items needed to be indexed. I tried deleting the cookies and browser cash. I tired searching from 3 other PCs off which 2 were totally in a different physical location. Even tried rebooting my PC Result was the same. I switched back to Store Manager application and rebuild search index just for that product which was not showing up when search was performed, and surprise that fixed the issue. So my question is: Who knows how many products are not shown in the search results but reported as indexed? And Is this Store Manager issue, Prestashop issue, bad index issue etc...? 2. Search module doesn't return product containing the string. word or a phrase that actual product name, description or some other product field contains. This is also interesting problem. I'm no expert, and I don't know how easy or hard would be to make perfect search, returning good results by all criteria but here I noticed that sometimes I got what I was looking for and sometimes I wont get product in the result list only because it contains letter or one number more then my search phrase contains. I will try to show this with the screenshots: Screenshot01: http://www.screencast.com/t/E8XRdNZQ0m Screenshot02: http://www.screencast.com/t/CncfTbvvdeX1 I hope these images will explain that the problem is. 3. Problem when I search for one item SKU and I got the right product but beside that I get one product which not only don't have that SKU, but don't have that number anywhere in all product fields. I have already opened a topic for this issue. Here is the link: http://www.prestashop.com/forums/topic/276047-strange-behavior-of-the-search-module/?do=findComment&comment=1408641 I will write about new issues if I come across any but these seem very serious and I really dont know how to deal with them. Hope you guys will help me. Thank you all in advance. Dean
- 31 replies
-
- search
- search module
-
(and 3 more)
Tagged with:
-
Hi Everyone! I just published a new video tutorial on how to enable ajax and instant search for the top menu search bar. Here it is: http://nemops.com/ajax-instant-search-prestashop-top-menu/#.UwR9evk7ur0
- 16 replies
-
- 1
-
-
- ajax search
- instant search
-
(and 3 more)
Tagged with:
-
Hi! I have a problem with my instant search results! The search is working and showing the results but the pagination is not showing. EX: Foram encontrados 163 resultados. In this case it found 163 results but only shows 15 ( the number of products per page defined by me), I scroll down and the pagination are not here. Can you help? I have already found some people with the same problem but none of the solution worked for me. My site: www.ondisc.pt
- 4 replies
-
- problem
- instant search
-
(and 1 more)
Tagged with:
-
Was trying to edit the footer information in the BlockCMS section under Localization > Translations and after I hit save, I was hit with a 403 Forbidden. I checked the permissions and .htaccess files to make sure everything was fine and it seemed like it was. It happens when I also try to modify Instant Search settings under Preferences > Search as well. Would someone please share some insight on what could be causing this issue? Maybe it is a .htaccess or permission problem and I just overlooked it. Not sure if it happens anywhere else but would like to get to the bottom of this issue as this platform has grown on me. Thank you.
- 1 reply
-
- blockcms
- preferences
- (and 8 more)
-
My top bar menu modul (blocktopmenu) is not comunicating with the instant and Ajax setup in prestashop. On defferent top bar (maofree) it's working fine. Any sugestion how to fix the problem?
- 7 replies
-
- Top Bar Menu
- instant search
-
(and 3 more)
Tagged with:
-
Hey guys i once enabled instant search the problem is when results appear if u click add to cart it wll take u to, order page with empty cart. so i disabled it but still its the same. when typed keywords results appear as instant search even its disabled. and i still cant enable Url rewriting mode. on godaddy server prseatshop 1.5.4
- 3 replies
-
- search
- instant search
-
(and 1 more)
Tagged with:
-
Just like to give a shout out to Mark Balmer for this beautiful solution to a problem I encountered using PS 1.4.7.0 See the original link here: http://forge.prestas...owse/PSCFI-3498 You can get pagination working by following the instructions below: 1. Create a new template page called pagination_instant.tpl in your theme folder. 2. Paste the following into it: {*[list] [*]2007-2011 PrestaShop * [*]NOTICE OF LICENSE * [*]This source file is subject to the Academic Free License (AFL 3.0) [*]that is bundled with this package in the file LICENSE.txt. [*]It is also available through the world-wide-web at this URL: [*][url="http://opensource.org/licenses/afl-3.0.php"]http://opensource.or...ses/afl-3.0.php[/url] [*]If you did not receive a copy of the license and are unable to [*]obtain it through the world-wide-web, please send an email [*]to [email protected] so we can send you a copy immediately. * [*]DISCLAIMER * [*]Do not edit or add to this file if you wish to upgrade PrestaShop to newer [*]versions in the future. If you wish to customize PrestaShop for your [*]needs please refer to [url="http://www.prestashop.com"]http://www.prestashop.com[/url] for more information. * [*]@author PrestaShop SA <[email protected]> [*]@copyright 2007-2011 PrestaShop SA [*]@version Release: $Revision: 6594 $ [*]@license [url="http://opensource.org/licenses/afl-3.0.php"]http://opensource.or...ses/afl-3.0.php[/url] Academic Free License (AFL 3.0) [*]International Registered Trademark & Property of PrestaShop SA *} [/list] {if isset($p) AND $p} {assign var='requestPage' value=$link->getPaginationLink(false, false, false, false, true, false)} {assign var='requestInstantPage' value=$requestPage|replace:'instantSearch=1&q':'search_query'} {assign var='requestNb' value=$link->getPaginationLink(false, false, true, false, false, true)} <!-- Pagination --> <div id="pagination" class="pagination"> {if $start!=$stop} <ul class="pagination"> {if $p != 1} {assign var='p_previous' value=$p-1} <li id="pagination_previous"><a href="{$link->goPage($requestInstantPage, $p_previous)}">« {l s='Previous'}</a></li> {else} <li id="pagination_previous" class="disabled"><span>« {l s='Previous'}</span></li> {/if} {if $start>3} <li><a href="{$link->goPage($requestInstantPage, 1)}">1</a></li> <li class="truncate">...</li> {/if} {section name=pagination start=$start loop=$stop+1 step=1} {if $p == $smarty.section.pagination.index} <li class="current"><span>{$p|escape:'htmlall':'UTF-8'}</span></li> {else} <li><a href="{$link->goPage($requestInstantPage, $smarty.section.pagination.index)}">{$smarty.section.pagination.index|escape:'htmlall':'UTF-8'}</a></li> {/if} {/section} {if $pages_nb>$stop+2} <li class="truncate">...</li> <li><a href="{$link->goPage($requestInstantPage, $pages_nb)}">{$pages_nb|intval}</a></li> {/if} {if $pages_nb > 1 AND $p != $pages_nb} {assign var='p_next' value=$p+1} <li id="pagination_next"><a href="{$link->goPage($requestInstantPage, $p_next)}">{l s='Next'} »</a></li> {else} <li id="pagination_next" class="disabled"><span>{l s='Next'} »</span></li> {/if} </ul> {/if} {if $nb_products > 10} <form action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl}{/if}" method="get" class="pagination"> <p> {if isset($search_query) AND $search_query}<input type="hidden" name="search_query" value="{$search_query|escape:'htmlall':'UTF-8'}" />{/if} {if isset($tag) AND $tag AND !is_array($tag)}<input type="hidden" name="tag" value="{$tag|escape:'htmlall':'UTF-8'}" />{/if} <input type="submit" class="button_mini" value="{l s='OK'}" /> <label for="nb_item">{l s='items:'}</label> <select name="n" id="nb_item"> {assign var="lastnValue" value="0"} {foreach from=$nArray item=nValue} {if $lastnValue <= $nb_products} <option value="{$nValue|escape:'htmlall':'UTF-8'}" {if $n == $nValue}selected="selected"{/if}>{$nValue|escape:'htmlall':'UTF-8'}</option> {/if} {assign var="lastnValue" value=$nValue} {/foreach} </select> {if is_array($requestNb)} {foreach from=$requestNb item=requestValue key=requestKey} {if $requestKey != 'requestUrl'} <input type="hidden" name="{$requestKey|escape:'htmlall':'UTF-8'}" value="{$requestValue|escape:'htmlall':'UTF-8'}" /> {/if} {/foreach} {/if} </p> </form> {/if} </div> <!-- /Pagination --> {/if} 3. Amend your theme's search.tpl (around line 50) from: {if !isset($instantSearch) || (isset($instantSearch) && !$instantSearch)}{include file="$tpl_dir./pagination.tpl"}{/if} to: {if !isset($instantSearch) || (isset($instantSearch) && !$instantSearch)}{include file="$tpl_dir./pagination.tpl"}{else}{include file="$tpl_dir./pagination_instant.tpl"}{/if}
-
Hola a todos. Me gustaría poder incorporar los filtros que ordenan los productos al momento de que el sistema me despliega los resultados de una búsqueda por instant Search. Actualmente sólo aparecen los filtros cuando doy click en el botón de buscar y me arroja el resultado, pero yo necesito que se muestren desde que salen los resultados rápidamente (instant-search). Agradezco su apoyo. Saludos, Sharly Prestashop v-1.4.8
-
- instant Search
- product-sort.tpl
-
(and 1 more)
Tagged with:
-
Instant search doesn't work properly!
Donia posted a topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Hello, I'm using prestashop 1.5 The instant search displays products in the reverse order from the ajax search (so the products are displayed without respecting the weight preferences in the instant search while the order is correct in the ajax one). How do I correct this behaviour? The problem was there in version 1.4.8.2 then disappeared in version 1.4.9 and now it's here again with the newest version!!! Unfortunately I cannot post the link of the shop at the moment but I discovered that all the shops that I found online behave the same! I'm thinking about downgrading but since the database is so different now I'm afraid I will destroy all the work that I've done This is so frustrating... Please help me Thank you Donia -
Hello, I'm using prestashop 1.4.8.2 The instant search displays products in the reverse order as the ajax search (so the products are displayed without respecting the weight preferences). How do I correct this behaviour? Thank you Donia
- 1 reply
-
- instant search
- search
-
(and 3 more)
Tagged with:
-
I have instant search set on 3 letters. The normal behaviour is that the instant search fire already at 1 or 2 letters ansd shows info text like Is there a way not to show anything until it actually the search reach 3 letters?