November 16, 2009

BUG: Warning: call_user_func(tep_cfg_select_option(array('true', 'false'),)

Update: One Day since SimpleSuggest - Ajax Search for OsCommerce is released, there is a first bug to fix, thx to cezar99. In the first package there was an error in the sql script.
If you have a warning like this:

Warning:
call_user_func(tep_cfg_select_option(array('true',
'false'),)[function.call-user-func]: First argument
is expected to be a valid callback in /admin/includes/functions/general.php on line 1284

Warning: call_user_func(tep_cfg_select_option(array('true',
'false'),)[function.call-user-func]: First argument
is expected to be a valid callback in
/admin/includes/functions/general.php on line 1284

In your OsCommerce Admin section, use this to correct the error:
UPDATE `configuration` SET `use_function` = '', `set_function` = 'tep_cfg_select_option(array(''true'', ''false''),' WHERE `configuration`.`configuration_key` like 'SIMPLESUGGEST_MARK_SEARCH_CHAR' LIMIT 1;
UPDATE `configuration` SET `use_function` = '', `set_function` = 'tep_cfg_select_option(array(''true'', ''false''),' WHERE `configuration`.`configuration_key` like 'SIMPLESUGGEST_ACTIVE' LIMIT 1;

November 15, 2009

SimpleSuggest - Ajax Search Suggestion for OsCommerce

SimpleSuggest - Ajax search suggest for
OsCommerce 2.2 RC2a

Thist contribution adds a simple Ajax search suggestion box to your OsCommerce search box.
You can add the search suggestion easy to every other search box within your OsCommerce. You can activated/deactivated it in the admin section, change the number of results and some other planned.

Users of a fresh install can copie the catalog folder, by keep the structure, note STS users
have to watch where they place the ajax_search.js script file which later is included in the head.

Well have fun and see if it is useful for us and report bugs and ideas on:
http://forums.oscommerce.com/user/226804-straka/

http://addons.oscommerce.com/info/7114