Kryptronic Software Wiki : MiniOnlineSearchAllWords

Kryptronic Internet Software Solutions
Most recent edit on 2009-07-14 07:58:17 by KryptronicWebmaster

Additions:

Mini Online Search All Words



Deletions:

Mini Online Search – Force Using All Words





Edited on 2008-03-22 14:22:19 by KryptronicWebmaster

Additions:

Mini Online Search – Force Using All Words

This change will cause the quick search feature to use all of the words that are entered to be searched for.
In admin under:
(UK Version) Home > ClickCartPro (GBU) > Displays: Skins, Menus, XHTML Includes and Messages > Manage XHTML Includes
(US Version) Home > ClickCartPro > Displays: Skins, Menus, XHTML Includes and Messages > Manage XHTML Includes
Select Update next to the Mini Search Display. Replace the contents of the Include File Contents field with the code shown below.
$typeid = $app . '--prodsearch--type';
ClickCartPro - Administration


Deletions:

Mini Online Search – All Words

Change the XHTML Include Mini Search Display:
1. In the admin go to Home > ClickCartPro (GBU) > Displays: Skins, Menus, XHTML Includes and Messages > Manage XHTML Includes
2. Update Mini Search Display:
3. Post this code into the Include File Contents
$typeid = $app . '--prodsearch--type';
print '<p class="hidden"><label for="' . $app . '--minisearch--' . $typeid . '"';
Wiki: Pending Inclusion




Oldest known version of this page was edited on 2008-02-07 04:34:48 by KryptronicWebmaster []
Page view:

Mini Online Search – All Words


Change the XHTML Include Mini Search Display:
1. In the admin go to Home > ClickCartPro (GBU) > Displays: Skins, Menus, XHTML Includes and Messages > Manage XHTML Includes
2. Update Mini Search Display:
3. Post this code into the Include File Contents

<?php 

$app       = $this->globals('khxc_display.app');
$eol       = $this->globals('khxc.eol');
$formid    = $app . '--minisearch';
$strid     = $app . '--prodsearch--string';
$typeid     = $app . '--prodsearch--type';
$link      = $this->link_namespace($app,'prodsearch',array());
$cgi_value = '';

$this->xhtml_quickform_header($formid,$app,'prodsearchp',array());

print '<p class="hidden"><label for="' . $app . '--minisearch--' . $strid . '"';
print '>Search Term</label></p>' . $eol;

print '<p class="inline"><input class="khxc_quickfield" type="text" name="' . $strid;
print '" id="' . $app . '--minisearch--' . $strid . '" value="';
print $cgi_value . '" size="22" maxlength="100" /></p>' . $eol;

print '<p class="hidden"><label for="' . $app . '--minisearch--' . $typeid . '"';
print '>Search Term</label></p>' . $eol;

print '<p class="hidden"><input class="khxc_quickfield" type="text" name="' . $typeid;
print '" id="' . $app . '--minisearch--' . $typeid . '" value="ALL" /></p>' . $eol;

$this->xhtml_quickform_footer($formid,'Online Store Search',1);

print '<a class="unfancy" href="' . $link . '" title="Advanced Search">Advanced Search</a>' . $eol;

?>


Wiki: Pending Inclusion