Thread: Advanced Searh

Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    help question Advanced Searh

    I'm testing my advanced search, just to discover it is giving results that don't belong to my query. Just finding out the advanced search includes not only the title and description of the product but also the meta-tags of the category. Is there a way to narrow the search to only look into the description and title of the products?? in other words, how could I deactivate the advanced search for looking into the metatags.

    My page www.manuelavalenti.com/store

    Thank you.
    M.Valenti
    Contemporary Artist - Entrepreneur
    http://www.manuelavalenti.com - http://www.byvalenti.com

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Advanced Searh

    If you want to break that, you'll have to customize the code in a core file: /includes/modules/pages/advanced_search_result/header_php.php
    There is no override for that file.
    .

    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.

  3. #3
    Join Date
    Apr 2008
    Posts
    446
    Plugin Contributions
    1

    Default Re: Advanced Searh

    Thank you Dr. Byte, that's what I thought... any idea what should I look for? not to savvy on php.

    Thank you for the help.
    M.Valenti
    Contemporary Artist - Entrepreneur
    http://www.manuelavalenti.com - http://www.byvalenti.com

  4. #4
    Join Date
    May 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Advanced Searh

    Any update on this? We are having the samy problem. Search is looking at the meta tags.

  5. #5
    Join Date
    Jan 2008
    Location
    Roswell, Ga USA
    Posts
    144
    Plugin Contributions
    0

    Default Re: Advanced Searh

    I tried this....

    In includes\modules\pages\advanced_search_results\header_php.php I removed the following in red.

    $where_str = $db->bindVars($where_str, ':keywords', $search_keywords[$i], 'noquotestring');
    // search meta tags
    $where_str .= " OR (mtpd.metatags_keywords
    LIKE '%:keywords%'
    AND mtpd.metatags_keywords !='')";

    $where_str = $db->bindVars($where_str, ':keywords', $search_keywords[$i], 'noquotestring');

    $where_str .= " OR (mtpd.metatags_description
    LIKE '%:keywords%'
    AND mtpd.metatags_description !='')";

    $where_str = $db->bindVars($where_str, ':keywords', $search_keywords[$i], 'noquotestring');

 

 

Similar Threads

  1. advanced search
    By weirdorecords in forum General Questions
    Replies: 16
    Last Post: 23 Sep 2010, 11:32 PM
  2. Could there be a way to break the searh in 1.3.9e?
    By bumba000 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 25 Aug 2010, 12:29 AM
  3. Replies: 5
    Last Post: 20 Apr 2010, 12:54 PM
  4. problem with searh ID:XX or model
    By giuly in forum Customization from the Admin
    Replies: 0
    Last Post: 22 Oct 2009, 10:30 PM

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