# Metafields

Metafields allow you to extend an existing platform data model, such as products, customers, and orders with your own custom data.

## Why use Metafields

Consider these examples for using metafields in your store:

* If you have an apparel store and you want to add care instructions for your products, then you might add a Product metafield called <kbd>Care instructions</kbd>. You can then add different care instructions for one or all of your products. Learn more about [adding product care instructions](/manual/custom-data/metafields/using-metafields).
* If you have a children's toy store and you want to display recommended ages and potential hazards for your products, then you might add Product metafields called <kbd>Recommended age</kbd> and <kbd>Potential hazards</kbd>. Instead of adding this information to your product description, you can display each field in its own section of your theme, with unique values for each product.
* If you have a furniture store and you want to display detailed measurements, then you might add a Product metafield called <kbd>Dimensions</kbd>. Instead of including measurements in your product description, you can display width, height, and depth in a dedicated section of your theme, with unique values for each product.
* If you sell clothing and you want to display a size chart for your products, then you might add a Product metafield called <kbd>Size chart</kbd>. You can then display the size chart as a pop-up on your product pages. Learn more about [adding a pop-up size chart](/manual/custom-data/metafields/pop-up-tutorial).
* If you run a loyalty program and you want to track reward tiers for your customers, then you might add a Customer metafield called <kbd>Loyalty tier</kbd>. You can then assign a unique tier level to each customer and use it to personalize their experience in your store.
* You can use metafields as [filters and dimensions in your Shopify analytics and reports](/manual/reports-and-analytics/shopify-reports/report-types/custom-reports/filter-and-edit#metafields). For example, you can add the **Material** metafield as a dimension to your total sales report to display your top-selling products by material.

<aside class="note sidekick"><h4>Sidekick</h4><p>You can <a href="https://admin.shopify.com/sidekick">ask Sidekick</a> how metafields could work for your products, and for the steps to set them up. Use a prompt such as <kbd>What metafields would help me organize my products?</kbd>.</p>
</aside>

## How to use Metafields

Your staff can add metafields when they have a permission assigned for the corresponding resource. For example, to add, edit, and delete metafield definitions and values for products, your staff need the **View** and **Create and edit** permissions under **Products**. Refer to [_Store permissions_](/manual/your-account/users/roles/permissions/store-permissions) for more information.

Learn more about using metafields by following the guide for [adding product care instructions](/manual/custom-data/metafields/using-metafields).

<aside class="note"><h4>Note</h4><p>Shopify POS displays only pinned customer metafields and both pinned and unpinned product metafields.</p>
</aside>

Category metafields are product attributes that map to a specific product category. Category metafields help you add the right information to your products to make them more discoverable by visitors on your site, on marketplaces, and on search engines.

Category metafields have default entries to make it easier for you to add information to your store. For example, if you add the product category <code>Apparel & Accessories > Clothing > Clothing Tops > Shirts</code>, then you can add category metafields for <code>size</code>, <code>neckline</code>, <code>sleeve length type</code>, <code>top length type</code>, <code>age group</code>, <code>fabric</code>, <code>target gender</code>, <code>clothing features</code>, and <code>color</code>. Category metafields use metaobjects and metaobject entries for the values. For example, with the <code>color</code> category metafield, you can add <code>green</code>, <code>red</code>, and other color entries. Learn more about [category metafields](/manual/custom-data/metafields/category-metafields).

If you have a theme that supports dynamic sources, then you can connect most metafields to your theme by using the theme editor. If you're using vintage themes, or if you want to add metafield types that your theme doesn't support, then you can [edit your theme code](/manual/custom-data/metafields/displaying-metafields-on-your-online-store#edit-code-metafields).

<aside class="note growth"><h4>Grow your business</h4><p>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 Partner.
Learn more about <a href="/en/manual/partner-directory">hiring a Shopify Partner</a>.</p>
</aside>

Setting up new metafields involves the following tasks:

1. Adding [metafield definitions](/manual/custom-data/metafields/metafield-definitions) to add fields for your specialized information to pages in your Shopify admin
2. [Adding metafield values](/manual/custom-data/metafields/adding-values-to-metafields) to parts of your store, such as products or variants
3. Optional: [Connecting metafields to your theme](/manual/custom-data/metafields/displaying-metafields-on-your-online-store) to display specialized information on your online store

You can also [migrate existing metafields to a definition](/manual/custom-data/metafields/metafield-definitions/migrating-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](/manual/custom-data/metafields/fixing-metafield-validation-errors) after migration.

### In this section

- [Adding metafield definitions](/en/manual/custom-data/metafields/metafield-definitions)
- [Category metafields](/en/manual/custom-data/metafields/category-metafields)
- [Pinning metafield definitions](/en/manual/custom-data/metafields/pinning-metafield-definitions)
- [Adding values to metafields](/en/manual/custom-data/metafields/adding-values-to-metafields)
- [Copy metafield values from draft orders to orders](/en/manual/custom-data/metafields/copy-to-order)
- [Filtering products using product metafields](/en/manual/custom-data/metafields/filtering-products)
- [Fixing metafield validation errors](/en/manual/custom-data/metafields/fixing-metafield-validation-errors)
- [Displaying metafields on your online store](/en/manual/custom-data/metafields/displaying-metafields-on-your-online-store)
- [Editing metafields in bulk](/en/manual/custom-data/metafields/bulk-edit-metafields)
- [Editing custom metafield definitions](/en/manual/custom-data/metafields/editing-metafields)
- [Collections with metafields](/en/manual/custom-data/metafields/collections)
- [Add variants with metafields](/en/manual/custom-data/metafields/add-variants-with-metafields)
- [Deleting metafields](/en/manual/custom-data/metafields/deleting-metafields)
- [Adding product care instructions using metafields](/en/manual/custom-data/metafields/using-metafields)
- [Adding a pop-up size chart to your product pages](/en/manual/custom-data/metafields/pop-up-tutorial)


