Don't show all Metafields while adding a product

Hey everybody,

for my online shop i started to work with metafields.

I have different categories in my online shop with have all specific metafields. So over the whole online shop i have around 35 Metafields.

Usually per category i use 5-8 metafields but when i add a product all metafields are shown which makes it quite harder to quickly use the right fields for the right category.

Is there a option to group metafields or just the fields who are related to a specific theme or category?

I don’t talk about to show them website itself, it’s about the mask when i add a product.

Have a good one

I think you can define separate metafield namespaces for each category. For example, a namespace “dimension” for keys “width”, “height”, “length”, … (like dimension.height, dimension.width, dimension.length, …) Then edit your product liquid to specifically show the namespace you want using the if… else… condition - using the liquid {{ product.metafields.namespace.key }}, for the example {{ product.metafields.dimension.height }}. More information here: Liquid objects: metafield (shopify.dev)

Hi @Ryanmue ,

Could you provide additional details regarding the metafields you intend to create?