HI,
Is there a way I can have Quick Seacch also automatically search in Descriptions as well as where it does as default?
I know it can be done in Advanced, but I need it to do it as a matter of fact.
Thanks
Oz
![]()
This is a discussion on How to have Quick Search also search in Descriptions within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; HI, Is there a way I can have Quick Seacch also automatically search in Descriptions as well as where it ...
HI,
Is there a way I can have Quick Seacch also automatically search in Descriptions as well as where it does as default?
I know it can be done in Advanced, but I need it to do it as a matter of fact.
Thanks
Oz
![]()
I found a contrib - Search Enhancement but it also gave option price from and to and showed the Catalog drop option both of which I didn't want. I hacekd those out and now it ius the exact orig Search but it also searches in Descriptions.
The search.php file below is from /catalog/boxes/
and a change had to be made in /languages/english.php<?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 (c) 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 //-->
look for this..
leave a space then add thisdefine('BOX_SEARCH_ADVANCED_SEARCH', 'Advanced Search');
Works for me, however gurus may advise otherwise.//Search Enhancement added next 4 lines
define('TEXT_ALL_CATEGORIES', 'All Categories ');
define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
// define('ENTRY_PRICE_FROM', 'Price From?');
// define('ENTRY_PRICE_TO', 'Price To?');
Good luck, It realy does improve the shops searching capabilities.
Oz![]()
Bookmarks