Community Add-Ons
| Maintainers: | ctr17163 |
Simple Search Box
for osCommerce Online Merchant v2.2
Ok I have been designing oscommerce for a while now and I have noticed a major problem with the search box and the search button lining up on with each other if you are wanting to add a search box to the header ect... So I wrote 1 that work with basic html. This allows you to add a search box anywhere on your site and it lines up!
If you have any questions feel free
Sorry for my bad english:(
For work and write in all the languages
1)Open includes/languages/english.php file and other lang. files
And add before ?>
This:
For english:
define('SEARCH_VALUE','Search...');
For french:
define('SEARCH_VALUE','Recherche...');
For dutch:
define('SEARCH_VALUE','Zoek...');
For german:
define('SEARCH_VALUE','Suche...');
..............
.........
2)Add new file(search2.php) into into catalog/includes/boxes path folder.
###Then take this code and add it anywhere you want your search box to show up at:
<?php include(DIR_WS_BOXES . 'search2.php'); ?>
3) And in the file:catalog/includesboxessearch2.php
reply LINE 31
<input type="text" name="keywords" maxlength="30" value="Search...." onFocus="clearDefault(this)" onBlur="Default(this)">
With this:
<input type="text" name="keywords" maxlength="30" value="<?php echo SEARCH_VALUE; ?>" onFocus="clearDefault(this)" onBlur="Default(this)">
Now it,s work and write in wich language you use.
No zip arhive
All the merit for faaliyet
Have a nice day!
