Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Feb 2010
    Posts
    63
    Plugin Contributions
    0

    Default Search Is not displaying all results/Search with Dash (-)

    Hello,
    My company sells parts which are often searched/sold by part number. Such as part # Q2425-69017 or RM1-0013. When we search for these with complete number we get no results. If we search by the portion after the - such as 0013 or 69017 we do get some results. This will not work for us...at all. Is there any suggestions as to what i can do to make this work?

    http://www.azcomputing.biz/

    Thanks in advance for your help!

  2. #2
    Join Date
    Feb 2010
    Posts
    63
    Plugin Contributions
    0

    Default Re: Search Is not displaying all results/Search with Dash (-)

    I am really at a loss here. Is there any search alternative?
    Thanks

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Search Is not displaying all results/Search with Dash (-)

    This should not be a problem if you have updated the:
    /includes/modules/pages/advanced_search_results/header_php.php

    correctly with the new field(s) you want included on the search ...

    You should have added something on the where_str for the code:
    Code:
            $where_str .= "(pd.products_name LIKE '%:keywords%'
                                             OR p.products_model
                                             LIKE '%:keywords%'
                                             OR m.manufacturers_name
                                             LIKE '%:keywords%'";
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Feb 2010
    Posts
    63
    Plugin Contributions
    0

    Default Re: Search Is not displaying all results/Search with Dash (-)

    Quote Originally Posted by Ajeh View Post
    This should not be a problem if you have updated the:
    /includes/modules/pages/advanced_search_results/header_php.php

    correctly with the new field(s) you want included on the search ...

    You should have added something on the where_str for the code:
    Code:
            $where_str .= "(pd.products_name LIKE '%:keywords%'
                                             OR p.products_model
                                             LIKE '%:keywords%'
                                             OR m.manufacturers_name
                                             LIKE '%:keywords%'";

    I have to be honest I have no idea what you mean here...Should I put this in there? I am poor with php programming so I dont know if this is something I add in or should change. Further advise welcomed. I just want to be able to search for part #'s with - in the middle (not all part #'s have a - in middle but many do) like RM1-0013

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Search Is not displaying all results/Search with Dash (-)

    You have added new fields to "some table" in your database or you have added new table(s) to your database ...

    Where are these fields added?

    How are they currently added to the search to be included in the search?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Feb 2010
    Posts
    63
    Plugin Contributions
    0

    Default Re: Search Is not displaying all results/Search with Dash (-)

    This is on an out of the box install (or was when the search problem was not working. Search works it just does not factor in the -

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Search Is not displaying all results/Search with Dash (-)

    You said ...
    Such as part # Q2425-69017 or RM1-0013
    What field in the products table are you using for the Part # ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Feb 2010
    Posts
    63
    Plugin Contributions
    0

    Default Re: Search Is not displaying all results/Search with Dash (-)

    The part # is in the item title or item description. I havnt added any fields/tables for this.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Search Is not displaying all results/Search with Dash (-)

    So far I cannot reproduce the problem ...

    I add the same things to my product descriptions and have no problem on the search ...

    I did find your search doesn't appear to work for anything ...

    What happens if you switch to the Classic Template?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Feb 2010
    Posts
    63
    Plugin Contributions
    0

    Default Re: Search Is not displaying all results/Search with Dash (-)

    The advanced search is not working right now as I am trying some things. The default template does the same thing. When I search for just 0013 I get results. When I search for rm1-0013 no results found.
    Thanks!

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Search/Advanced Search not returning results
    By scottfr in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 6 Apr 2011, 06:08 AM
  2. Search and Advanced search not returning results
    By paisore in forum General Questions
    Replies: 6
    Last Post: 4 Nov 2010, 03:43 PM
  3. Displaying Top Two Categories in Search Results
    By ECAutoSound in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Oct 2009, 10:37 PM
  4. Search function not displaying results for me now after upgrading
    By brianpat in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 14 Jan 2008, 09:27 PM
  5. Replies: 8
    Last Post: 5 Dec 2006, 10:52 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