ozstar Posted December 9, 2005 Posted December 9, 2005 I found a contrib - Search Enhancement Search Box v1.3b but it also gave option price from and to and showed the Catalog drop option both of which I didn't want. I hacked those out and now it is the exact orig Search but it also searches in Descriptions. The search.php file below is from /catalog/boxes/ <?php/* $Id: search.php,v 1.22 2003/02/10 22:31:05 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License*/?> <!-- hacked Search Box v1.3b - took out cat drop and priceto/fro Dec10-05--!> <!-- search //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SEARCH); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), 'align' => 'center', 'text' => BOX_SEARCH_TEXT . '<br>' . tep_draw_hidden_field('search_in_description','1') . tep_draw_hidden_field('inc_subcat', '1', true) . tep_draw_input_field('keywords','','size="10" maxlength="30" class="searchForm" style="width: ' . (BOX_WIDTH-30) . 'px"') . '<br>' . tep_hide_session_id() . '<br>' . tep_image_submit('button_quick_find.gif', IMAGE_BUTTON_SEARCH)); new infoBox($info_box_contents); ?> </td> </tr> <!-- search_eof //--> and a change had to be made in /languages/english.php look for this.. define('BOX_SEARCH_ADVANCED_SEARCH', 'Advanced Search'); leave a space then add this //Search Enhancement added next 4 linesdefine('TEXT_ALL_CATEGORIES', 'All Categories '); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); // define('ENTRY_PRICE_FROM', 'Price From?'); // define('ENTRY_PRICE_TO', 'Price To?'); Works for me, however gurus may advise otherwise. Good luck, It realy does improve the shops searching capabilities. Oz :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.