osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

How to have Quick Search also search in Descriptions

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-09-2005, 01:52 AM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 124
Thanks: 10
Thanked 0 Times in 0 Posts
Rep Power: 6
ozstar is on a distinguished road
Default How to have Quick Search also search in Descriptions

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 12-09-2005, 12:45 PM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 124
Thanks: 10
Thanked 0 Times in 0 Posts
Rep Power: 6
ozstar is on a distinguished road
Default RE: How to have Quick Search also search in Descriptions

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/

Quote:
<?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 //-->
and a change had to be made in /languages/english.php

look for this..

Quote:
define('BOX_SEARCH_ADVANCED_SEARCH', 'Advanced Search');
leave a space then add this

Quote:
//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?');
Works for me, however gurus may advise otherwise.

Good luck, It realy does improve the shops searching capabilities.

Oz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Article Search? jbanda osCMax v2 Customization/Mods 0 05-09-2006 02:41 PM
Full text search in advanced search Anonymous osCMax v1.7 Discussion 0 04-15-2004 02:00 PM
Issue w/Search Bar auntie22 osCMax v1.7 Discussion 0 03-31-2004 05:54 PM
Can Quick Find search product descriptions??? midwestwebsites osCMax v1.7 Discussion 2 11-20-2003 08:54 AM
How to make search box also search descriptions marco6090 osCommerce 2.2 Modification Help 0 01-06-2003 05:31 AM


All times are GMT -8. The time now is 06:44 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax