Adding values to metafields
After you add a metafield definition, you add values for your metafield on the corresponding pages in your Shopify admin. For example, if you create a metafield definition for product expiration date, then you enter the specific values for expiration date on your product pages in your Shopify admin. Adding values to your metafields enables you to save specialized information for internal tracking or for display on your online store.
Pinned metafields are displayed in an editable table on your Shopify admin pages in the same order that they're displayed in your metafield definitions list. Each metafield displays the name that you selected when you created your metafield definition. You can click in each table row to display the metafield type and description, and then enter a value.
Metafields can only accept the supported values for their content type. For more information about supported values for common types of metafields, refer to metafield content types and values.
Metafield lists allow you to store multiple values in a single metafield. You can add multiple single line text fields or product reference values to a metafield list to organize large data sets, suggest items that work well together, or create more powerful search facets.
Adding values to common types of metafields
Which procedure you follow to add values to a metafield depends on the content type for that metafield. For example, metafields for product expiration date and customer birth date both use the Date content type. Learn more about content types.
Desktop
Color
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a color type metafield, click + Add.
Select a color by doing one of the following:
- Use the color picker to select a color.
- Enter a hex color value in the Color box.
Click Save.
Date
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a date type metafield, click + Add.
Click the calendar to select a date.
Click Save.
Date and time
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a date and time type metafield, click + Add.
Click the calendar to select a date, and then click the time box to select a time.
Click Save.
Dimension, weight, or volume
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a measurement type metafield, click + Add.
Enter a value.
Select a unit of measurement from the list.
Click Save.
Number
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to an integer type metafield, click + Add.
Enter a number.
Click Save.
Rating
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a rating type metafield, click + Add.
Enter a number.
Click Save.
File reference
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a file type metafield, click + Add.
Select an existing file or upload a new file.
Click Done.
Click Save.
Page reference
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a page type metafield, click + Add.
Select a page in any of the following ways:
- Select an existing page from the list.
- Search for an existing page.
- Add a new page. To add a new page:
- Click
Add page.
- In the dialog, fill out the information for the new page.
- Click Save.
- Click
Click Save.
Product reference
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a product type metafield, click + Add.
Select one or more products from the list. You can search and filter options to find specific products.
Click Add.
Click Save.
Product variant reference
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a product variant type metafield, click + Add.
Select one or more variants from the list. You can search and filter options to find specific products.
Click Add.
Click Save.
Metaobject reference
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a metaobject type metafield, click + Add.
Select a metaobject in any of the following ways:
- Select an existing metaobject entry from the list.
- Search for an existing entry.
- Add a new metaobject entry. To add a new entry:
- Click
Add entry.
- In the dialog, enter a value for each field in the metaobject.
- Click Save.
- Click
Click Save.
Collection reference
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a collection type metafield, click + Add.
Select a collection in any of the following ways:
- Select an existing collection from the list.
- Search for an existing collection.
- Add a new collection. To add a new collection:
- Click
Add collection.
- In the dialog, fill out the information for the new collection.
- Click Save.
- Click
Click Save.
URL
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a URL type metafield, click + Add.
Enter a valid URL.
Click Save.
Single-line or multi-line text
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a text metafield, click + Add.
Depending on how you configured your metafield definition, do one of the following:
- Enter your text.
- Click Select an option, and then select a preset option from the list.
Click Save.
True or false
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a true or false type metafield, click either True or False.
Click Save.
JSON
From your Shopify admin, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Navigate to the Metafields section, where the applicable metafield definitions display in a list.
Next to a JSON type metafield, click + Add.
In the dialog, enter your data.
Click Done.
Click Save.
Mobile
Color
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap the color metafield, then tap + Add.
Select a color by doing one of the following:
- Tap a color on the color picker.
- Tap the Hex color box, and then enter an RGB color value.
Tap Save.
Date
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a date type metafield, and then tap + Add.
Use the calendar to select a date.
Tap Save.
Date and time
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a date and time type metafield, and then tap + Add.
Use the calender to select a date, and then select a time.
Tap Save.
Dimension, weight, or volume
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a dimension type metafield.
Tap + Add, then enter a value.
Select a unit of measurement from the list.
Tap Save.
Number
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap an integer type metafield.
Tap + Add, then enter a value.
Tap Save.
Rating
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a rating metafield.
Tap + Add, then enter a value.
Tap ✓.
File reference
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a file type metafield.
Select a file by doing one of the following:
- To select an existing file from your Shopify store, tap a file from the list.
- To upload a file from your device, tap
, select a file, and then tap Done.
- Tap Save.
Page reference
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a page type metafield.
Select an available page.
Tap Save.
Product reference
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a product type metafield.
Select one or more products from the list. You can search for specific products.
Tap Save.
Product variant reference
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a product variant type metafield.
Select one or more variants from the list. You can search for specific variants.
Tap Save.
Metaobject reference
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a metaobject type metafield.
Select a metaobject in any of the following ways:
- Select an existing metaobject entry from the list.
- Search for an existing entry.
- Add a new metaobject entry. To add a new entry:
- Tap
.
- Enter a value for each field in the metaobject.
- Tap Save.
- Tap
Tap Save.
Collection reference
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a collection type metafield.
Select a collection from the list. You can use the search to filter for a specific collection.
Tap Save.
URL
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a URL type metafield, and then tap + Add.
Enter a valid URL.
Tap Save.
Single-line or multi-line text
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a text metafield.
Tap the text box, and then enter your text.
Tap Save.
True or false
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a true or false type metafield.
Select True or False.
Tap Save.
JSON
From the Shopify app, go to the part of your store where you want to add a metafield value. For example, a specific product, collection, or customer.
Tap Metafields to display the list of applicable metafield definitions.
Tap a JSON type metafield, and then tap + Add.
Tap the text box, and then enter your data.
Tap Done.
Tap Save.
Next steps after adding values to metafields
After you add values to your metafields, you can connect your metafields to your theme to display your custom information on your online store.