How can I make metafield content searchable on my clothing website?

Hi everyone,

I am facing an issue and I couldn’t find any fix for it.

I am selling clothing online. Each piece of clothing has a unique article number. I introduced this article number on the Product Page using a metafield.

Some of the clients are using the article number to search for the product. I couldn’t find a way to make the metafield content (=the article number) searchable for the clients in the frontend. Some applications it was recommended to me, but I am not sure how to use them in an effective way. They were asking about the namespace.key, and I have no idea which one this should be.

My questions are

  1. How can I find the namespace.key is? I found this article about metafield and namespace/ key, but I am not a developer and I am not quite sure how to deal with this information.

  2. Is there any other way to make the content searchable?

Thank you!

Up!

Read this part carefully

https://shopify.dev/api/liquid/objects/metafield#access-metafields

product.metafields.namespace.key

product.metafields.article.id

Or whatever you named those things when created.

With a metafields definition you should be able to see overall syntax in the metafields settings of the admin

https://help.shopify.com/en/manual/metafields/metafield-definitions

  1. Is there any other way to make the content searchable?

Add the articles id’s to the product descriptions, title, or as a tag, etc.

Example images of setting up a metafield definition and assigning it a namespace and key

Creatiing:

After saved:

1 Like

Thank you for the answer! I really appreciate it.