Overview of Metafields in Shopify's Online Store 2.0
In the Summer of 2021 Shopify announced they were making significant changes to how themes and apps work. Referred to as "Online Store 2.0", the changes focus on improving the speed, data models and developer experience of Shopify themes. One of the major changes has to do with metafields. While Shopify has supported metafields for years, the new changes make them easier to use and more standard across themes and apps. In this article we'll cover what metafields are, what the new 'metafield definitions' mean for store owners, and how you can quickly edit metafields with our Bulk Product Editor
What are Metafields?
You can think of metafields as custom fields that you can add to products or variants in Shopify. Each product (or variant) in Shopify has a standard set of fields that you can edit. For example, a product has a title, description, vendor etc.. These standard fields cover a lot of uses but they fall short when you need a custom field. If you want to store a subtitle for product, a color for a variant, or a text with washing instructions there's no standard field that you can use.
Shopify created metafields to address these needs. For any product or variant you can add a metafield to store your custom data. In other words, you can attach the 'subtitle' or 'washing instructions' data to your product, or a 'color' to your variant.
Shopify has supported metafields for as long as we can remember (at least since 2016) but until these changes they were difficult to use and hidden from most users.
What changes did Shopify announce?
There's three major updates to the metafields in Online Store 2.0:
- You can create "Metafield Definitions" in the Shopify admin
- You can edit metafields in the Shopify admin, you no longer need another app to view them
- You can link metafields to values in your theme
What are Metafield Definitions?
- They standardize the names of the metafields you use on your store
- They support additional types of data, now metafields can store values like colors and references to other products
- They allow metafields to be edited directly from the Shopify admin
Prior to this update, you could have arbitrary metafields on your store but there was no way to manage them or make sure collaborators used them correctly. You can create metafield definitions by logging into your Shopify admin and going to Settings -> Metafields
How can you edit metafields in the Bulk Product Editor?
We made some major updates to the Bulk Product Editor to fully support metafields and metafield definitions. Now you can:
- Search for products by metafield
- Bulk edit metafields the same as any other product field (eg, price)
- Modify existing metafields, for example, adding the vendor's name to an existing metafield