View categories in Ajax result

Ivory Search Forums Support View categories in Ajax result

Viewing 2 reply threads

You must be logged in to create new topic or reply to the topic.

  • Author
    Posts
    • #22913
      Vladimir_mva
      Participant
      • Topics: 1
      • Replies: 1

      Hi!
      I have a problem. When I try to search for a word with the first capital letter, the results show categories. If it’s small, then no.

      Attachments:
      You must be logged in to view attached files.
    • #22919
      Vladimir_mva
      Participant
      • Topics: 1
      • Replies: 1

      I found where the search and comparison takes place in the plugin and it turns out that you are using strtolower(), which is not friendly with the Cyrillic alphabet. Can you fix it in the plugin and release an update with the mb_strtolower() function?
      This is my fix:

      // Used strtolower() because, If search term is 'product' and actual taxonomy title is 'Product',
            // Then, it does not match due to its case sensitive test.
            if (($strict && mb_strtolower($term->name) == mb_strtolower($search_term)) || (!$strict && strpos(mb_strtolower($term->name), mb_strtolower($search_term)) !== false))
    • #22949
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,747

      I hope you are well today and thank you for your suggestion.

      I will fix it in the future version of the plugin.

      Best regards,
      Ivory Search Support

Viewing 2 reply threads

You must be logged in to create new topic or reply to the topic.