Community Add-Ons
| Maintainers: | acidvertigo |
Jquery UI Autocomplete search box
for osCommerce Online Merchant v2.3
With this easy mod, is possible to use the jquery UI autocomplete feature on the oscommerce search box in 3 easy steps
For info on Jquery UI autocomplete go to: http://jqueryui.com/demos/autocomplete/
Legend:
Download
Report
If this feature doesn't work when you type site address without www. then this fix should work for you.
Credits to Dge-06 for the code.
in catalog/include/configure.php
replace
define('HTTP_SERVER', 'http://yourdomain.com');
by
$site_url = $_SERVER['SERVER_NAME'];
switch($site_url) {
case "yourdomain.com":
define('HTTP_SERVER', 'http://yourdomain.com');
break;
case "www.yourdomain.com":
define('HTTP_SERVER', 'http://www.yourdomain.com');
break;
}
NOT a full package.
