Home Forums WoodMart support forum Standard search function does not work

Standard search function does not work

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #533031

    b.brenner
    Participant

    Hi, if I deactivate Relevanssi and Ajax and enter a search word from the description text (e.g. “glass fish”), not only 3 products are found that have nothing to do with it. When I use Storefront the search works again. Tested on a staging, all 3rd party plugins and child theme disabled. Admin access to the staging below.
    Best regards

    #533209

    Luke Nielsen
    Keymaster

    Hello,

    Please confirm the permission for plugins deactivation, and switch to the parent/default theme. As soon as we complete the testing of this plugin we will enable it all back.

    Looking forward to collaborating with you!

    Kind Regards

    • This reply was modified 10 months, 3 weeks ago by Luke Nielsen.
    #533446

    b.brenner
    Participant

    Hi, thank you, the permission is confirmed. Since this is a staging copy of our website, you can test everything. In the end I just need to know how to resolve the issue on the live site.

    #533659

    Luke Nielsen
    Keymaster

    Hello,

    I have tested it on the default and our theme, on my side the results are the same, here is a video:

    https://take.ms/KhDEn

    Please let me know which keyword to use to see the issue.

    Kind Regards

    #534468

    b.brenner
    Participant

    Hello, thank you for the video. You are searching with an English keyword in our German website. Of course the result is 0, no matter what theme you use. Please make sure that you change to the English website version before testing it with the keyword “glass fish”. I made a screenshot of the search result for the keyword “glass fish” 1. with woodmart theme and 2. with the storefront theme. As you can see the search result with the woodmart theme is wrong. With the storefront theme it works well.
    Regards

    Attachments:
    You must be logged in to view attached files.
    #534613

    Luke Nielsen
    Keymaster

    Hello,

    Thank you for the clarifications.

    After resaving the setting in the Header builder, I have such search results: https://take.ms/mK0qw

    Let me know if that suits you.

    Kind Regards

    #535568

    b.brenner
    Participant

    Hello,
    I am sorry, this is no solution.
    1. The video shows 2 different search results (Ajax search / “view all”) which is confusing to me and our customers. 2. Both search results are incorrect. The Ajax search shows all kinds of objects but no “glass fish”. The “view all” list shows an ant in the first position and then lots of glass fish that should not be displayed at all because they are set to status “draft”.
    3. I cannot reproduce the search shown in the video.
    4. The search function only uses the Title field for the search. The product description is not searched. You can test this, for example with the word “coral”, which appears in the ANGELFISH product description.
    Best regards

    #535938

    Luke Nielsen
    Keymaster

    Hello,

    When the “Hide variations parent” is enabled: https://take.ms/VKvuc , it hides the parent products from the search results as well, so if you want to see all products, disable it.

    Results with disabled option: https://take.ms/Kkfx5 , as you see, the same result as on the default theme.

    Kind Regards

    #537214

    b.brenner
    Participant

    Hello,
    Thanks, but how can I get to a shop page that doesn’t show the parent product and has a working search function?
    When the use of the “Show single variation” option means that clients cannot search for products anymore this option is useless.
    Relevanssi is also not an option because it shows all drafts and even password protected products in the search result.
    Regards

    #537303

    Luke Nielsen
    Keymaster

    Hello,

    Try to use the code below, it will help you enable the parent products in the search results.

    add_action('woodmart_option', function($opt, $slug) {
        if ($slug === 'hide_variation_parent' && ! empty($_GET['s'])) {
           $opt = false;
        }
        return $opt;
    }, 10, 2);

    Paste it to the functions.php file in the child theme.

    Kind Regards

    #537700

    b.brenner
    Participant

    Thank you. Is it possible to enable this for Ajax search also?

    #537701

    Luke Nielsen
    Keymaster

    Hello,

    Unfortunately, at the moment it’s impossible to enable it via custom code for the Ajax search, sorry.

    Don’t hesitate to let me know if you need any further help or any other info

    Kind Regards

Viewing 12 posts - 1 through 12 (of 12 total)