Metafields help you to customize the functionality and appearance of your Shopify store by letting you save specialized information that isn't usually captured in the Shopify admin. You can use metafields for internal tracking, or to display specialized information on your online store in a variety of ways. For example, a candle seller might want to display a burn time for candles on their product pages, while a grocery store might want to display a product expiration date for canned goods. Other examples of specialized information include the following:
blog post summaries
files for download
lists of ingredients
You can add metafields to your products, collections, customers, orders, and other parts of your store, directly from your Shopify admin.
Learn more about using metafields.
This is an advanced tutorial. If you need help with setting up your metafields or connecting them to your theme, then you can hire a Shopify Expert. Learn more about hiring Shopify Experts.
Setting up new metafields involves the following tasks:
You can also migrate existing metafields to a definition. Adding definitions for sets of metafields enforces validation rules to ensure that your metafield values are consistent and reliable. If your metafield values don't match the validation rules for your definition, then you can fix invalid metafield values after migration.