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 actions:
- select a standard definition
- create a custom definition
Whenever possible,use a standard definitionmetafields。标准定义的汽车matically 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.
For more information, refer toShopify standard metafields.
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.