How to hide add-on products from Shopify search?
PreviousHow to charge extra fee when a field is being utilized by customer?NextHow to change the placement of the fields?
Last updated
Last updated
First create a metafield definition for hiding the products:
Please go to settings.
Click custom data -> products
Here only Namespace and key is the critical for us. Name and description could be anything to define the action to us.
Name: Hide Products From Shopify Search
Namespace and key: seo.hidden
Description: Hide active products from Shopify Search
Please ensure that namespace and key is the exactly same with above.
Then click Select Type and choose Integer and save it.
Now apply this metafield to our add-on product:
Please go to products -> scroll down to see Metafields section and write 1 in there and click the save button.
After completing these steps, add-on product should be hidden when it is searched on your Shopify store.