-1

I was wondering if it's possible to hide certain products from the woocommerce/theme search box/field.

I have about 150 products on my website, which have a price & a product picture. These are the products I want shown on my website, aswell in the search results.

Now I've also got around 250 other products which lack a product image, or don't have a price, or which just aren't available at that time. --> These products are "Concepts" at this moment.

Now I came to the conclusion that these products also were showing in my search box at the top of my website when I entered a string that these products contained.

If there is a way around this, feel free to let me know! Thanks in advance.

Kind Regards

  • Are your products visible on front end? i mean are they published or not – Piyush Rawat Nov 15 '17 at 11:29
  • As far as I know it's not published. The publish button is still available to click. I took a screenshot (sorry my WP install is in Dutch, I tried translating the important strings) i.gyazo.com/8ef6cce20aeb8322a9cc8210e89f564a.png – Arne De Belser Nov 15 '17 at 11:37
  • search in an incognito(private) window – Piyush Rawat Nov 15 '17 at 11:38
  • I tried, I'm still able to find the products when searching in incognito mode with Google Chrome. So I guess it's not a chaching issue? :S – Arne De Belser Nov 15 '17 at 11:42
  • not concerned with cache, but wp_query includes protected posts when admin is logged in. Are you using custom query for search page? – Piyush Rawat Nov 15 '17 at 11:49
0

The answer:

It's possible to put a product on:

Visibility: Private

This will make sure only admins are able to view this product.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.