Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Posts
    133
    Plugin Contributions
    0

    Default Re: Search functions help..

    Allister,

    I only edited two files to get my search to go into my products table and scan the extra fields I added and return results. The instructions below may be too exacting, but they work. And I won't be bothering with cleaning up unnecessary codes for several weeks.

    Anyway, here is what I did:

    PART ONE
    1. OPEN includes\index_filters\default_filter.php
    2. SEARCH for $listing_sql = "select " . $select_column_list . "
    3. INSERT your new table fields [Note: I am not sure this is necessary or not either, but I inserted my fields in the same exact order as they appear in my products table. Since all my fields were tacked on at the end, I placed my fields AFTER `p.products_tax_class_id, ` and BEFORE `pd.products_description, if` (ignoring the `backticks` of course).]
    4. Repeat steps 2 and 3 three more times.

    PART TWO
    1. OPEN includes\modules\pages\advanced_search_result\header_php.php
    2. SEARCH twice for LIKE '%:keywords%'.
    3. INSERT AFTER OR details_model_name\nLIKE '%:keywords%' and BEFORE OR m.manufacturers_name\nLIKE '%:keywords%'"; your information in the same `OR p.yourfield`\n`LIKE '%:keywords%'`.

    Hope this helps!

  2. #2
    Join Date
    Apr 2008
    Location
    Athlone, Ireland
    Posts
    176
    Plugin Contributions
    5

    Default Re: Search functions help..

    Quote Originally Posted by molywerks View Post
    Allister,

    I only edited two files to get my search to go into my products table and scan the extra fields I added and return results. The instructions below may be too exacting, but they work. And I won't be bothering with cleaning up unnecessary codes for several weeks.

    Anyway, here is what I did:

    PART ONE
    1. OPEN includes\index_filters\default_filter.php
    2. SEARCH for $listing_sql = "select " . $select_column_list . "
    3. INSERT your new table fields [Note: I am not sure this is necessary or not either, but I inserted my fields in the same exact order as they appear in my products table. Since all my fields were tacked on at the end, I placed my fields AFTER `p.products_tax_class_id, ` and BEFORE `pd.products_description, if` (ignoring the `backticks` of course).]
    4. Repeat steps 2 and 3 three more times.

    PART TWO
    1. OPEN includes\modules\pages\advanced_search_result\header_php.php
    2. SEARCH twice for LIKE '%:keywords%'.
    3. INSERT AFTER OR details_model_name\nLIKE '%:keywords%' and BEFORE OR m.manufacturers_name\nLIKE '%:keywords%'"; your information in the same `OR p.yourfield`\n`LIKE '%:keywords%'`.

    Hope this helps!
    I know its an old tread, but I have been searching everywhere for a way to make my new fields searchable.

    Its spot on, works like a charm and very easy to do. I have just made all my new fields searchable.

    I have also seen many other people looking for the same fix, so I hope bumping this post will help other to find it quicker

 

 

Similar Threads

  1. Regarding Advanced search functions
    By zivsahar in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 30 Sep 2009, 10:30 AM
  2. Help removing search, currencies & language functions from header
    By isabella90 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Jul 2009, 11:46 PM
  3. Help with ZC Functions
    By itservices in forum General Questions
    Replies: 2
    Last Post: 6 May 2009, 03:04 PM
  4. help me with zen cart functions
    By anis_huq in forum General Questions
    Replies: 1
    Last Post: 2 Jun 2007, 10:53 AM

Posting Permissions

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