Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Posts
    19
    Plugin Contributions
    0

    Default Multiple keywords at once in advanced search?

    Has anyone ever modified the advanced search to accept 3 (or more) keyword searches at once instead of one?

    For example, adding two more keyword text fields so the advanced search returns products that match any of the three keywords (rather than customers having to open three windows or run three separate searches).

    From what i can see you would need to modify the advanced_search module and template file to display the extra two fields but the code in the advanced_search_result module file seems very complex and I have no idea what I would need to edit and how.

    Any experts out there who have done this or anyone who could help would be much appreciated...

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

    Default Re: Multiple keywords at once in advanced search?

    From the popup help text on the search screen:
    Keywords may be separated by AND and/or OR statements for greater control of the search results.

    For example, Microsoft AND mouse would generate a result set that contain both words. However, for mouse OR keyboard, the result set returned would contain both or either words.

    Exact matches can be searched for by enclosing keywords in double-quotes.

    For example, "notebook computer" would generate a result set which match the exact string.

    Brackets can be used for further control on the result set.

    For example, Microsoft and (keyboard or mouse or "visual basic").
    .

    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
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: Multiple keywords at once in advanced search?

    Quote Originally Posted by DrByte View Post
    From the popup help text on the search screen:
    Also, there is an option in the admin to determine whether the search queries automatical use the AND or the OR logic.

    Configuration -> My Store -> Default Search Operator -> AND or OR

  4. #4
    Join Date
    Oct 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Multiple keywords at once in advanced search?

    Thanks!!

 

 

Similar Threads

  1. Can you put -negative keywords into the advanced search?
    By dgent in forum Basic Configuration
    Replies: 0
    Last Post: 14 Nov 2011, 02:53 PM
  2. Super-duper Advanced Search?? (ie: multiple attribute criteria)
    By sewbox in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Jul 2009, 12:00 AM
  3. Advanced Search In Multiple database tables
    By Doddsey_65 in forum General Questions
    Replies: 1
    Last Post: 21 May 2009, 07:37 AM
  4. Advanced search - search manufacturers without keywords
    By etrader in forum General Questions
    Replies: 4
    Last Post: 19 Sep 2006, 06:16 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