Adding metafield definitions
Metafield definitions act as templates that specify what part of your store a metafield applies to and what values the metafield can have. Before you can add metafield values to specific products, orders, or other parts of your store, you need to add the metafield definition for that information. Adding metafield definitions ensures that the same validation rules apply to every value that you enter for a specific metafield.
When you add a metafield definition, you can do either of the following:
- Select a standard definition
- Create a custom definition
Whenever possible,use a standard definitionmetafields。标准definitions are automatically configured for you and are designed to be universally compatible across Shopify. Because standard metafield definitions follow standards that are used across all Shopify stores, they're supported by apps, themes, and other parts of your store.
You need tocreate a custom definitionin the following circumstances:
- There's no standard definition for the specialized information that you want to add.
- You want tomigrate existing metafields to a definition.
You add metafield definitions on theMetafieldspage of your Shopify admin. You can add additional types of metafields in the following ways:
- using an app from theShopify App Store
- editing your theme code
You can have up to 250 metafield definitions.