> For the complete documentation index, see [llms.txt](https://minimateapps.gitbook.io/customfield/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://minimateapps.gitbook.io/customfield/how-to.../how-to-hide-add-on-products-from-shopify-search.md).

# How to hide add-on products from Shopify search?

**First create a metafield definition for hiding the products:**

Please go to settings.

<figure><img src="https://minimateapps.gitbook.io/~gitbook/image?url=https%3A%2F%2F1110647471-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDDrLmwkSI3jttYdLoI4Q%252Fuploads%252FhelA5ZIH4lE4r9MWNwsg%252FScreenshot%25202024-08-15%2520at%252015.13.20.png%3Falt%3Dmedia%26token%3D52966d89-5f91-42e1-b4c4-e4d490dc2749&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=24dad88f&#x26;sv=2" alt=""><figcaption><p>Go to settings</p></figcaption></figure>

Click custom data -> products

<figure><img src="https://minimateapps.gitbook.io/~gitbook/image?url=https%3A%2F%2F1110647471-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDDrLmwkSI3jttYdLoI4Q%252Fuploads%252FAopzqfuQ1RFWnAtbh0v9%252FScreenshot%25202024-08-15%2520at%252015.14.02.png%3Falt%3Dmedia%26token%3D0f5aaf6d-1b0a-4bc8-b647-226998abcac7&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=d23bc964&#x26;sv=2" alt=""><figcaption><p>Custom data</p></figcaption></figure>

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

{% hint style="warning" %}
Please ensure that namespace and key is the exactly same with above.
{% endhint %}

Then click Select Type and choose Integer and save it.

<figure><img src="https://minimateapps.gitbook.io/~gitbook/image?url=https%3A%2F%2F1110647471-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDDrLmwkSI3jttYdLoI4Q%252Fuploads%252FpTK2RhNwtvqql0h2m00i%252FScreenshot%25202024-08-15%2520at%252015.15.08.png%3Falt%3Dmedia%26token%3Ddce2318d-a5f8-4f33-82ca-71cb24750ffd&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=a7d2f8a1&#x26;sv=2" alt=""><figcaption><p>Metafield definition</p></figcaption></figure>

**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.

<figure><img src="https://minimateapps.gitbook.io/~gitbook/image?url=https%3A%2F%2F1110647471-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDDrLmwkSI3jttYdLoI4Q%252Fuploads%252FSVWLDGgLSFFNtGIf1FJ0%252FScreenshot%25202024-08-15%2520at%252015.16.29.png%3Falt%3Dmedia%26token%3D8ecb9eba-db7b-48d8-83dc-4e7089c9d218&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=4cd8de44&#x26;sv=2" alt=""><figcaption></figcaption></figure>

After completing these steps, add-on product should be hidden when it is searched on your Shopify store.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://minimateapps.gitbook.io/customfield/how-to.../how-to-hide-add-on-products-from-shopify-search.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
