Home › Forums › WoodMart support forum › Standard search function does not work
Standard search function does not work
- This topic has 11 replies, 2 voices, and was last updated 10 months, 1 week ago by Luke Nielsen.
-
AuthorPosts
-
January 24, 2024 at 11:59 am #533031
b.brennerParticipantHi, 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 regardsJanuary 24, 2024 at 6:39 pm #533209
Luke NielsenKeymasterHello,
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.
January 25, 2024 at 12:55 pm #533446
b.brennerParticipantHi, 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.
January 25, 2024 at 6:10 pm #533659
Luke NielsenKeymasterHello,
I have tested it on the default and our theme, on my side the results are the same, here is a video:
Please let me know which keyword to use to see the issue.
Kind Regards
January 29, 2024 at 12:49 pm #534468
b.brennerParticipantHello, 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.
RegardsAttachments:
You must be logged in to view attached files.January 29, 2024 at 4:44 pm #534613
Luke NielsenKeymasterHello,
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
January 31, 2024 at 5:10 pm #535568
b.brennerParticipantHello,
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 regardsFebruary 1, 2024 at 6:14 pm #535938
Luke NielsenKeymasterHello,
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
February 6, 2024 at 1:08 pm #537214
b.brennerParticipantHello,
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.
RegardsFebruary 6, 2024 at 4:57 pm #537303
Luke NielsenKeymasterHello,
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
February 7, 2024 at 3:54 pm #537700
b.brennerParticipantThank you. Is it possible to enable this for Ajax search also?
February 7, 2024 at 3:59 pm #537701
Luke NielsenKeymasterHello,
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
-
AuthorPosts
- You must be logged in to create new topics. Login / Register