AJAX Quick Search
for osCommerce Online Merchant v2.2
This contribution adds an AJAX Quick Search to your advanced search page. It could easily be adapted to any search box and any query in osCommerce.
This works basically the same way as Google Suggest. As you type, it guesses what you are typing and displays the product names below the search box. This works in real time, with no need to reload the page.
Legend: 
Download

Report
This need to be added in some cases to database.
ALTER TABLE `products` ADD `products_hide_from_groups` SMALLINT NOT NULL DEFAULT '0';
Only SQL in file.
Ajax search properties in OSC Configuration, Language intrudzuction & Hide Products from groups mod
The following things are in this *complete* package:
- Ajax properties can be defined in the OSC Configuration:
- Enable / Disable Ajax search
- Define Search Limit
- Hide Products from groups mod to return only allowed products
- All displayed texts are now from languagexadvanced_search.php
You have to execute
Ajax Config.sql
to add the configuration informations to OSC Config.
You probably have to merge some files; I pripose the
OpenSource Tool WinMerge:
SourceForge.net WinMerge,
http://sourceforge.net/projects/winmerge)
16.07.2006,
Thomas Schittli
better just add:
header('Content-type: text/html; charset='.CHARSET);
to cover any language you might have.
This is only a code and download of
This is the new code to show norwegian ÅØÆ and germany, this you can also put inside all ajax Contributions
Put this inside to fix the ÅØÆ problem, in quickfind.php or quickbox :
// output a response header
header('Content-type: text/html; charset=ISO-8859-1');
Test it here :
http://smartprodukter.com/advanced_search.php
Try also this new ajax attributes show in products_info.php box:)
http://smartprodukter.com/product_info.php?cPath=1_143&products_id=387
Regards,
Andre S.
www.smartprodukter.no
As instructed by team members, added the GPL license to the files. No other changes were made.
Add products_model in the query (search and out information with conditions), upgrade the code (a little clean) and ... nothing !
Thank to assembler for this great contrib !
N.B : Hum ... i wonder if we can use the tep_sanitize_string() function to clean $q and $osCsid ?!
Full Package with Bug Fix. Do not use previous version.
This contribution adds an AJAX Quick Search to your advanced search page. It could easily be adapted to any search box and any query in osCommerce.
This works basically the same way as Google Suggest. As you type, it guesses what you are typing and displays the product names below the search box. This works in real time, with no need to reload the page.