Skip Navigation

[Resolved] Exclude Woocommerce Products from Search Results

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to exclude their products from the general site search on the frontend.

Solution:

This is actually an issue with Woocommerce itself. The Woocommerce setting on the Products to hide them from Shop and Search only applies to the Shop Search and not the general Site wide search.

For more information on this you can have a look at the link below.
https://github.com/woocommerce/woocommerce/issues/28693

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by kevinP-11 3 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1999445
Screen Shot 2021-03-24 at 12.06.50 PM.png
Screen Shot 2021-03-24 at 11.50.50 AM.png

Tell us what you are trying to do?
I am trying to exclude certain products from the custom search results archive. I selected "Hidden" from the Woocommerce Catalog Visibility meta box. I am using the WordPress Archives Block.

Is there any documentation that you are following?
I found the following ticket that is similar to my issue.
https://toolset.com/forums/topic/exclude-products-from-view-if-woocommerce-catalog-visibility-is-set-to-hidden/
Its solution was "What if you edit your view and navigate to "Query Filter" section and try to add a taxonomy filter for the taxononmy "Product visibility" there you should select the two options "exclude-from-catalog" And "exclude-from-search" and also make sure you select the option "All of the following"

However I cannot locate where to add the taxonomy filter.

Under Loop Selection I have "Search Results" selected.

What is the link to your site?
bonide.com

Thanks
Kevin

#1999723

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kevin,

Thank you for getting in touch.

I see from your screenshot that you are able to find the option to add a query filter. When you look under the dropdown for the query filter are you not seeing Product Visibility ?

If not can you send me a screenshot of what you are seeing ?

Thanks,
Shane

#1999725

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2021-03-24 at 1.26.53 PM.png

See my screenshot

#1999747
Screen Shot 2021-03-24 at 2.26.50 PM.png
Screen Shot 2021-03-24 at 2.27.53 PM.png
Screen Shot 2021-03-24 at 2.28.02 PM.png
Screen Shot 2021-03-24 at 2.28.44 PM.png

Hi Shane,
No, I don't see that. I have a lot of custom fields so here are a few screenshots.
Thanks
Kevin

#1999851

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kevin,

Would you mind allowing me to have admin access to the website so that I can have a more detailed look at this one for you ?

Also please send me a link to the page that the view is on.

Thanks,
Shane

#1999853

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Private Fields

#2000715

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kevin,

Checking on your site I don't believe this one is related to our plugin as the product is still included even when i've set the catalog visibility to hidden.

This seems to be a known issue by the Woocommerce team
hidden link

As such there isn't anything much that we can do about this until they resolve it.
Thanks,
Shane

#2000799

My issue is resolved now. Thank you!