Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    9
    Plugin Contributions
    0

    Default Search functions help..

    I added quite a few product description categories for my client. They have a rug store and needed an easier way to add product info than through attributes.
    You can see the new descriptions here:
    http://www.artforthemasses.us/FineDe...roducts_id=192

    Anyway, the thing I am looking to do is get the search functions to look at these new description items in the database. I can't seem to get what I need to change. I added this to the header_php.php under the advance search module and have found how to add the search parameters to the advanced search template, but that is where I have gotten stuck..
    PHP Code:
      $sData['products_origin'] = (isset($_GET['products_origin']) ? zen_output_string($_GET['products_origin']) : 0);
      
    $sData['products_make'] = (isset($_GET['products_make']) ? zen_output_string($_GET['products_make']) : 0);
      
    $sData['products_design'] = (isset($_GET['products_design']) ? zen_output_string($_GET['products_design']) : 0); 
    What do I need to alter to search the DB in the new columns.


    Any help would be greatly appreciated..

    Thanks,
    Alli

  2. #2
    Join Date
    Nov 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Search functions help..

    Does it have something to do with the advanced search result module?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Search functions help..

    You'll have to rewrite the logic in the /includes/index_filters files.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Nov 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Search functions help..

    Thank You Much, I am burying my nose in it as you are reading this..

  5. #5
    Join Date
    Nov 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Search functions help..

    OK, I've been adding the new columns to the queries I found in default_filter.php, for example:
    PHP Code:
    // We are asked to show only a specific category
          
    $listing_sql "select " $select_column_list " p.products_id, p.products_type, p.manufacturers_id, p.products_origin, p.products_make, p.products_design, p.products_price, p.products_tax_class_id, pd.products_description, if(s.status = 1, s.specials_new_products_price, NULL) AS specials_new_products_price, IF(s.status = 1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status
           from " 
    TABLE_PRODUCTS " p left join " TABLE_SPECIALS " s on p.products_id = s.products_id , " .
           
    TABLE_PRODUCTS_DESCRIPTION " pd, " .
           
    TABLE_MANUFACTURERS " m, " .
           
    TABLE_PRODUCTS_TO_CATEGORIES " p2c
           where p.products_status = 1
             and p.manufacturers_id = m.manufacturers_id
             and m.manufacturers_id = '" 
    . (int)$_GET['manufacturers_id'] . "'
             and p.products_id = p2c.products_id
             and pd.products_id = p2c.products_id
             and pd.language_id = '" 
    . (int)$_SESSION['languages_id'] . "'
             and p2c.categories_id = '" 
    . (int)$_GET['filter_id'] . "'" .
             
    $alpha_sort
    To no avail.

    I can't get it to look in those columns and spit out results.
    I think maybe I need some guidance on this one.

    What needs to be rewritten and how would it be rewritten?

    Please help..

    Thanks in advance,
    Alli

  6. #6
    Join Date
    Nov 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Search functions help..

    Are you sure it isn't in the Advanced search results module?

    As I look at it, it seems to be the only page running comparisons of keywords.

 

 

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