I have similar problem. I am using utf-8_general_ci in zencart database, Instant search works fine for me, but when i enter special character like (čćđ) if wont display anything.
Here is a two picture below. Please help! :cry:
Printable View
Hi
It's very good contrib!
It's working perfect to me on 1.39h, but there is 1 point to update!
I discovered that if you have multiple products with the same keywords but in a different order, only the results with the words in the same order as the research emerge. I need all the products with the same keywords in any order can emerge!
thanks for you help!
Esto me ayudo a solventar el problema. Efectivamente, si no se muestra correctamente el slider de tu tienda zencart, entonces esta es la solución que debes aplicar, incluyendo el .js correspondiente al slider en el archivo jscript_instantSearch.php ubicado en la contribución Instant Search.
Al creador de esta contribución, lo saludo y agradezco por ella, es muy útil y causa una mejor experiencia al cliente cuando visita tu tienda zencart.
Saludos a todo y perdón por el idioma.
The addon does not generate full cPath for categories, for example.. if the product is in subcategory
index.php?main_page=index&cPath=35_37_43
search script only generates
index.php?main_page=index&cPath=43
How can I make the script to generate full cpath?
I've added a function in searches.php that generates full cpaths
function getcPath($catid)
{
global $db;
$retstr=0;
if($catid!=0)
{
$sqlcPath = "SELECT parent_id from ".TABLE_CATEGORIES." where categories_id=".mysql_real_escape_string($catid);
//echo "<br>".$sqlcPath."<br>";
$dbcPath = $db->Execute($sqlcPath);
if ($dbcPath->RecordCount() > 0) {
$retstr = $dbcPath->fields['parent_id'];
}
}else
{
$retstr = 0;
}
return $retstr;
}
function calccPath($catid)
{
$sep = "_";
$retstr = $catid;
do
{
$currpath = getcPath($catid);
$catid=$currpath;
if($catid!=0)
{
$retstr = $catid.$sep.$retstr;
}
}while($currpath!=0);
return $retstr;
}
then below:
$prodResult = strip_tags($dbCategories->fields['categories_name']);
added:
$dbCategories->fields['categories_id'] = calccPath($dbCategories->fields['categories_id']);
I only want to use this mod on a particular new page to conduct a search of a particular new DB table.
From the readme.htm, I am wondering if it would be better to change the following file placements from
searches.php
includes/templates/MYTEMPLATE/css/instantSearch.css
includes/templates/MYTEMPLATE/jscript/instantSearch.js
includes/templates/MYTEMPLATE/jscript/jquery.js
includes/templates/MYTEMPLATE/jscript/jscript_instantSearch.php
to
searches.php
includes/templates/MYTEMPLATE/css/instantSearch.css
includes/modules/mypage/instantSearch.js
includes/templates/MYTEMPLATE/jscript/jquery.js
includes/modules/mypage/jscript_instantSearch.php
OR
to follow the original readme instructions and just add the highlighted line to instantSearch.js after Line 36
//var inputBox = $('#navMainSearch > form[name="quick_find_header"] > input[name="keyword"]');
//var inputBox = $('#navColumnTwoWrapper > form[name="quick_find_header"] > input[name="keyword"]');
//var inputBox = $('#searchContent > form[name="quick_find"] > input[name="keyword"]');
var inputBox = $('#mypage > form[name="mysearch"] > input[name="keyword"]');
Thanks
Line 145 of searches.php has
Could someone please confirm whether the ampersand & is a typo or whatever, and that line should readCode:foreach ($resultsAddAfter as &$value) {
thanks in advanceCode:foreach ($resultsAddAfter as $value) {
Further to above, the offending code can be seen in this post.
http://www.zen-cart.com/showthread.p...31#post1107931
Ctrl_F &$
Solved. &$var refers to the variable reference rather than a variable value.