osCmax v2.5 User Manual
Results 1 to 2 of 2

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

      
  1. #1
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    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


  2. #2
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    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/

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

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

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

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •