Skip to main content
All CollectionsDiscountingGift with Purchase
Create A Hidden Product in Shopify
Create A Hidden Product in Shopify

This article will show you how to create a hidden product that is available for sale via your online store.

John Erck avatar
Written by John Erck
Updated this week

Step 1: Create a custom Metafield in Shopify Admin

This workflow requires that you create a custom Metafield within Shopify Admin. You can follow the screenshots below on where to access this feature.

First, navigate to the Settings page in your Shopify Admin, then click on Custom data:

Next, click on Products then Add definition:

Label the new product metafield definition "Hide Product" in the Name field, and then input "seo.hidden" under Namespace and key as shown below. Then click Select type and select "Integer", and save your changes.

For context, the "seo.hidden" metafield is often used to control visibility or manage SEO-related content that you might want to keep hidden from search engines.

Step 2: Update the Product Settings

Next, navigate to the Product's settings in Shopify Admin for the product you wish to hide, then scroll down to the Metafields section. Within the Metafields section, add a value of "1" in the Hide Product metafield text input field as shown below. Be sure to save your changes.

⚠️ WARNING: If you have automatic Collections, then go into those Collections and make a ruleset to prevent them from auto adding to the product type "hidden" which you created in the previous steps. If a product remains assigned to a Collection, it will NOT be hidden.

We recommend testing your store's search functionality to locate the product. If it still appears in search results, you can follow the instructions to hide the product from Shopify search and/or remove the "Add to Cart" button on the product page to prevent customers from adding it to their cart.

Please note that Rebuy does not have control over the above workflows as these are controlled by Shopify. If you are still experiencing issues with the above, please reach out to Shopify Support for assistance.

🚨 NOTE: If you wish to prevent the product from being surfaced in Rebuy widgets that are using the Recommended AI endpoint, you will need to ensure you follow the steps in the guide linked below to apply the 'exclude_rebuy' product tag to the product's settings in Shopify Admin.

Once you have added the product tag in Shopify, be sure to resync your product data in Rebuy Admin by following the guide linked below to ensure that Rebuy detects the newly applied product tag.

And... you're done! You can now return this product to a Rebuy widget via the attached Data Source, it can be added to the cart and purchased, all the while users will not be able to find this product on your online store!


Migrating from other third-party Metafield apps

If you were previously using a third-party metafields app (such as Metafields Guru), you may run into an error message that states "Namespace and key are already taken":

If the above error occurs, you will need to perform the below workaround steps:

  1. Copy to the below URL and swap out the 'yourdomain.myshopify.com' text with the shop URL domain for your store:

    1. https://yourdomain.myshopify.com/admin/settings/custom_data/product/metafields/migrate/seo/hidden

  2. This will then take you to a fresh new page to add product definition(s)

  3. Next, scroll back up to the Steps 1 and 2 above, and follow same process to create a custom Metafield in Shopify Admin and apply the Metafield to your product's settings.


FAQs

Q: What should I do if the Shopify product page for the product remains visible?

Q: What should I do if a hidden product appears in the search results but I don’t want it to?

Q: Why is my hidden product showing up in Rebuy widgets?

Did this answer your question?