Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2010
    Posts
    11
    Plugin Contributions
    0

    customer issue Search function not working properly (collation problem)

    When i type certain product name into the search box and click search, it always shows a message like this: There is no product that matches the search criteria.
    Doesnt matter what I type, the result is still the same.
    website: http://www.theperfumeparadise.com

    Anybody knows how to fix it, please advise.

    Thanks.
    Dennis

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Search function not working properly

    Hmmm .. searching for "women" brings back results.
    .

    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 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: Search function not working properly

    Hi DrByte. Do you know how to fix it?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Search function not working properly

    I'm guessing your database collation is set to something that's not case-insensitive, which is preventing the search from working properly. What is your collation set to on all your tables?
    .

    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.

  5. #5
    Join Date
    Apr 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: Search function not working properly

    I am not sure. How to check collation? I dont make any changes on the programming. everything is just set to default.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Search function not working properly

    Use phpMyAdmin and look at your list of database tables. What collation are they set to?
    .

    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.

  7. #7
    Join Date
    Apr 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: Search function not working properly

    I see that most of the list in the table callation is set to utf8_bin. Is this the correct information? Please see the attachment

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Search function not working properly

    What version of Zen Cart are you using?
    How did you install it? (Did you download it yourself and run the install yourself? (where did you download it from?), or did you use a one-click install from your hosting company, or what?)
    .

    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.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Search function not working properly

    Upon further testing, it's clear that your utf8_bin collation is what's causing it, because it's not case-insensitive. You need to change the searchable fields to use a case-insenstive collation. In your case that would be utf8_general_ci instead of utf8_bin.
    To do that, run the following by going to Admin->Tools->Install SQL Patches, and copy/paste the following into the box there and click Send:
    Code:
    alter table products change products_model products_model varchar(32) collate utf8_general_ci;
    alter table products_description change products_description products_description text collate utf8_general_ci;
    alter table products_description change products_name products_name varchar(64) collate utf8_general_ci;
    alter table meta_tags_products_description change metatags_keywords metatags_keywords text collate utf8_general_ci;
    alter table meta_tags_products_description change metatags_description metatags_description text collate utf8_general_ci;
    .

    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.

  10. #10
    Join Date
    Apr 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: Search function not working properly (collation problem)

    Hi DrByte.
    Many thanks for your help. It is working now.



    And, I used one-click install from my hosting company.

 

 

Similar Threads

  1. v139h The search on my store is not working properly
    By lolwaut in forum General Questions
    Replies: 18
    Last Post: 13 Jun 2015, 06:32 AM
  2. My search function does not work properly
    By idtags in forum General Questions
    Replies: 2
    Last Post: 1 Nov 2007, 05:40 PM
  3. Search function not working properly
    By THISclose in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 4 Mar 2007, 07:00 PM
  4. Replies: 13
    Last Post: 31 May 2006, 08:02 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR