Hi Warwick!
Please, edit the
<xcart_dir>/include/search.php script and replace:
PHP Code:
if (!$_inner_search)
$smarty->assign("search_prefilled", $search_data["products"]);
with
PHP Code:
if (!$_inner_search)
$smarty->assign("search_prefilled", $search_data["products"]);
if (!empty($search_data["products"]["substring"])) {
$keywords = explode(" ",$search_data["products"]["substring"]);
$keywords = func_array_map("trim", $keywords);
if (is_array($keywords)) {
foreach($keywords as $i=>$k)
if (empty($k))
unset($keywords[$i]);
$keywords = array_values($keywords);
}
$smarty->assign("keywords", $keywords);
}
After that you'll be able to use the
{$keywords} Smarty variable in your templates.
__________________
Eugene Kaznacheev,
Evangelist/Product Manager at Ecwid:
http://www.ecwid.com/ (since Sept 2009)
ex-Head of X-Cart Tech Support Department
ex- X-Cart Hosting Manager -
X-Cart hosting
ex-X-Cart Technical Support Engineer
Note: For the official guaranteed tech support services please turn to the
Customers HelpDesk.