How to hide products on store but still it is possible to purchase them

In our app we want to make products of shipping protection that we make through backend not visible in search results and catalogue of the store, how can i do this from backend while creating the product ?

Hi Vraj,

Just to understand this usecase a bit more - if the products your app are creating are not visible on the online store, how would customers purchase them?

Hi Liam,
The use case is for “shipping protection product “or a” free gift product” which shop owners don’t want to sell via store but want to add that product automatically when a certain milestone is reached by the customer or give them a option to but shipping protection in cart and not on store .

Thanks for providing this context - just as a flag there are recent new requirements for apps on the Shopify App Store with regard to adding products automatically to a customers order:

  1. Apps that add optional charges to buyer carts or checkouts — Apps can’t automatically add or pre-select optional charges to a buyer’s cart that increase the total checkout price. Apps can only add optional charges to carts or at checkout after displaying the additional cost in a manner that is clear to the buyer, and upon obtaining explicit buyer consent.

So your app may be rejected or delisted if you create an option to add products to a buyers cart without their consent.

To hide a product from storefront search you can apply the special seo.hidden metafield when you’re creating or updating a product, see explanation here in our docs: Optimize storefront SEO

Yes Liam, we are aware of this of the requirements and thanks for pointing that out .
Your answers gives solution to hide from search but i have another issue also of how to hide it from the catalogue also, because it is still visible in the collections.

Could you create a collection specifically for these products and then make that collection not visible to the online store channel?