Hiding products from search?

Highlighted
New Member
3 0 0

Hi there, 

I want to create a promotional (free product) that will only be advertised and I do not want to have it be searchable on our website for this reason. This product will be live, but will not be in any collections so it will appear as if the product is not on the site, but since it will be a live product, it will be serachable in the seach bar. Is there any way that I can disable a product showing up in the search results?

Thanks! 

Riad Bekhit Chief Potato Officer | Potato Parcel riad@potatoparcel.com
0 Likes
Highlighted
Shopify Staff
Shopify Staff
115 0 8

Hi!

You can definitely do this! What you would want to do is change the visibility on the product. You can do this by following this guide.

If you want the product still to be buyable but not appear on the site anywhere(including the search), you would need to use an app like Locksmith. You can grab this right here.

Hope this helps!

Matt

0 Likes
Highlighted
Shopify Expert
463 0 82

I would suggest adding a metafield (https://help.shopify.com/api/tutorials/hide-from-search-engines-and-sitemaps) to the product that removes it from the sitemap and search, and then create a special product template for that product that removes the Add to Cart functionality.

 

https://help.shopify.com/themes/liquid/objects/metafield

https://help.shopify.com/themes/customization/store/create-alternate-templates

4 Likes
Highlighted
Shopify Partner
50 1 3

You could try our app Sitemap & NoIndex Manager, this will exclude anything you hide from your stores search. https://apps.shopify.com/sitemap-noindex-manager

1 Like
Highlighted
Shopify Expert
265 1 14

Hi, just use a tag and filter it so it doesn't show a product with that tag. No need for apps etc.

If you need help with that, drop us an email at welcome@kaleido.club

Jarvis @ Kaleido
- Slow Shopify Store? Install our PageSpeed Magic app.
- Have more questions? Feel free to email me.
- My reply helped? Click Like to show me some love!

0 Likes
Highlighted
New Member
3 0 0

Hi Gina,

Is there an easy way to add a metafield to a product to hide it from search? Where would I go in the code for the site template to add this? The resources you linked seem to be for building an app, and I just want to make the change on my own site. 

Thanks!

Helena

0 Likes
Highlighted
Tourist
34 0 3

Yes, you can.  But to keep the pagination right on your search results you really need to prevent the product from being in the search results, not just hiding it.  I did it on my site by including a tag "options" for every product I didn't want included .... here's my blog post on it.

https://webfactorysolutions.com/blogs/shopify-tips-and-info/hiding-products-from-search-results

0 Likes
Highlighted
New Member
6 0 0

Thanks Shelley, your solution works great! Except, my site still shows the "hidden" text within the search bar box after you search for something. How can I remove that as well?

0 Likes
Highlighted
Tourist
34 0 3

Hi Ted,  Yes I encountered that as well and found a fix.  Let me review that part of my fix and I will post as soon as I can.

0 Likes
Highlighted
Tourist
34 0 3

Ted could you post your form source code from search-bar.liquid?

 

0 Likes