I have a few products that I need hidden from internal search on my website. I had done this in the past using the link for on (https://rusticated.co/ecommerce/shopify/how-to-hide-products-from-shopify-search/) to create a hidden metafield. This had worked but when I switched my theme to a 2.0 theme it seems to have broken. The bulk edit procedure now no longer works. When I input a 1 in the field it either gives me an error that it is an incorrect entry or the field switches to say “true” when I save and the item does not hide.
I am also not able to define that metafield in the new 2.0 metafield section. When I try to define the seo.hidden field it tells me that namespace and key are already taken (as I had previously used the bulk editor and defined that field) I am pretty stuck.
Can anyone give me any suggestions as to what I could try?
I have the same problem and haven’t been able to find a solution. When I try to define the seo.hidden field it tells me that namespace and key are already taken
If you can’t find seo.hidden in the 2.0 metafield section. Follow the link below, assign the seo.hidden metafield a content type of “Integer” (one value, NOT a list), and save it. That should allow you to see the metafield in your 2.0 metafield list and on each product page.
No idea how you discovered this link, but this solution is genius! Thank you so much.
As an additional note, you can also use the seo.hidden metafield to hide pages, collections, and blog articles in addition to products.
The error message seems to only occur if the seo.hidden metafield has been used somewhere already. If you don’t have it set on any products (or collections, etc), you can create a new definition without problem. If you do run into the error though, just customize the link for whichever resource you’re targeting:
Hi @LibertineFragra , Have you noticed that the seo.hidden metafield approach added a noindex tag to all the sold out products and prevented Google from indexing it?