How to hide a Product from the product list and search page
Description
In this doc, we will see how to hide a product from the product list and search page using the Shopify admin. We will be using the Shopify admin to create a metafield for the product and then use the metafield to hide the product from the product list and search page.
Steps
- Go to the Shopify admin and click on settings.
- Go to custom data and click on 'products'.
- Click on 'Add definition'.
- Now create a new metafield with the following details:
- Name: appmaker hide product status // sample name
- Give Namespace as appmaker and key as hide_product_status
- Select type as boolean
- Select storefront from the access option on right side
- Click on save
- Now go to the single product page and navigate to the bottom of the page.
- You can see the metafields section there.
- In appmaker hide product status metafield, select the boolean type
- Click on save.
Referece video:
https://drive.google.com/file/d/1wenAeA56m4wbOoXdz79SDFghY-q7jtMY/view?usp=sharing