osCommerce AJAX Search Suggest

The following is the install instructions for the osCommerce AJAX Search Suggest info box contrib. This code was written by me, Ryan Smith, based on a tutorial that I wrote at Dynamic AJAX. This contribution will add "Google Suggest" like functionality to the generic osCommerce search box. As users type in their search query, they will be provided with suggestions from the the product names in the system.

You should have recieved this file in a package containing:
InstallInstructions.html (this file)
SearchSuggest.php
search.php
AddTheseStyles.txt

If you didn't recieve these files, you can download them from: http://www.oscommerce-ssl.com/en/AJAX_Search_Suggest.html
All code is provided AS-IS. This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Installation is pretty simple. I mainly consists of replacing the search info box file, adding the search suggest backend file, and adding three styles to the style sheet. Even though it is a real simple install, there is always the possibility of skrewing something up, so I must remind you to BACK UP YOUR FILES BEFORE YOU INSTALL THIS CONTRIB!. If you skrew up your store, I cannot be held responsible.

Instructions:

Step one: Add the following styles to "StyleSheet.css". You can add these styles anywhere in the file. I just placed them at the bottom.

/*----------------------------Suggest Styles--------------------------*/
.suggest_link {
background-color: #FFFFFF;
padding: 2px 6px 2px 6px;
}
.suggest_link_over {
background-color: #3366CC;
padding: 2px 6px 2px 6px;
}
#search_suggest {
position: absolute;
background-color: #FFFFFF;
text-align: left;
border: 1px solid #000000;
}
/*----------------------------End Suggest Styles------------------------*/

Step two: Add the file "SearchSuggest.php" to the root of your site.

Step three: Replace "search.php" located at "/includes/boxes/search.php" with the "search.php" file provided.

That's it, you should be ready to go with the search suggest on your site. If you have any problems, write me at: ryan@oscommerce-ssl.com and I will try and get back to you as time permits.

Enjoy!