Shopify themes, liquid, logos, and UX
I need to hide active products from the search, while still having them in the Online Store. I found something that said to set up a metafield called seo.hidden. However, when I try to set this up, it says that this key is already taken. After reviewing all of our other metafields, none of them match this at all. I have tried alternate metafields to hide these products, but so far nothing is working. Is there an app we can use or any sort of code we can add?
Solved! Go to the solution
This is an accepted solution.
Hi @hshepherd have you tried to save it even if it is saying that the field and namespace is already taken? Aren't you able to save it? If not then have you checked your "Unstructured product metafields" and see if the same key is available there if it's available then you can use it, if not then you can go move to other option, by editing the search code, and add product tag.
So in second option you need to edit your search code, along with that add the product tag on all the products that you need to hide and fetch the information in the search code so that it will not show in the search page.
Providing the exact code is not possible without looking into your theme code files and what all 3rd party apps you are using.
If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.
Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!
Best Regards
Sahil
- Your
Hi @hshepherd,
Seems like there is already a metafield with the same key available on your store refer to the screenshot below i have create a metafield and there is no issue while creating, you just need to check again from your store Settings > Custom Data > Products metafield and see pinned and unpinned matafields.
Alternatively you can use below app
Thanks
This is an accepted solution.
Hi @hshepherd have you tried to save it even if it is saying that the field and namespace is already taken? Aren't you able to save it? If not then have you checked your "Unstructured product metafields" and see if the same key is available there if it's available then you can use it, if not then you can go move to other option, by editing the search code, and add product tag.
So in second option you need to edit your search code, along with that add the product tag on all the products that you need to hide and fetch the information in the search code so that it will not show in the search page.
Providing the exact code is not possible without looking into your theme code files and what all 3rd party apps you are using.
If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.
Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!
Best Regards
Sahil
- Your
Thanks so much! I didn't realize that it would let me publish even though it was a duplicate. You are a life saver!
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024