广告ding values to metafields
After you add ametafield 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 yourmetafield definitionslist. 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 tometafield 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.
On this page
Example procedures for 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 theDatecontent type.
The following examples describe the steps to add values to Metafields that have different content types.
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.
Click the color metafield, and then clickSelect color.
Select a color by doing one of the following:
- Use the color picker to select a color.
- Enter an RGB color value in theColorbox.
ClickSave.
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.
Click the date metafield, and then use the calendar to select a date.
ClickSave.
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.
Click the date and time metafield.
Click the calendar to select a date, and then click the time box to select a time.
ClickSave.
Dimension
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.
Click the dimension metafield, and then enter a value.
Select a unit of measurement from the list.
ClickSave.
Weight
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.
Click the weight metafield, and then enter a value.
Select a unit of measurement from the list.
ClickSave.
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.
Click the volume metafield, and then enter a value.
Select a unit of measurement from the list.
ClickSave.
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.
Click the number metafield, and then enter a value.
ClickSave.
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.
Click the rating metafield, and then enter a value.
ClickSave.
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.
Click the file reference metafield, and then clickSelect image,Select video, orSelect file.
Optional: To upload a file from your device, clickUpload image,Upload video, orUpload file, select a file from your device, and then clickOpen.
Select the file that you want to add and then clickDone.
Optional: To add ALT text to an image, click the preview image, enter a description in theALT textbox, and then clickDone.
Optional: To edit the cover image of a video, clickChangeto select the new cover image, and then clickDone.
ClickSave.
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.
Click the page reference metafield.
ClickSelect, and then select a page from your online store.
ClickSave.
产品参考
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.
Click the product reference metafield.
ClickSelect product, and then select a product from the list.
ClickSave.
产品变体参考
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.
Click the product variant reference metafield.
ClickSelect variant, and then select a product variant from the list.
ClickSave.
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.
Click the metaobject reference metafield.
ClickSelect entry, and then select an entry from the list.
ClickSave.
收集参考
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.
Click the collection reference metafield.
ClickSelect collection, and then select a collection from the list.
ClickSave.
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.
Click the URL metafield, and then enter a valid URL.
ClickSave.
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.
Click the text metafield.
Depending on how you configured your metafield definition, do one of the following:
- Enter your text.
- ClickSelect an option, and then select a preset option from the list.
ClickSave.
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.
Click the true or false metafield, and then selectTrueorFalse.
ClickSave.
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.
Click the JSON metafield, and then enter your data.
ClickSave.
Color
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the color metafield, and then tapSELECT COLOR.
Select a color by doing one of the following:
- Tap a color on the color picker.
- Tap theHex colorbox, and then enter an RGB color value.
Tap the check mark, and then tap the check mark again.
Date
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the date metafield, and then tapSELECT DATE.
Use the calendar to select a date, and then tapDONE.
Tap the check mark.
Date and time
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the date and time metafield, and then tapSELECT DATE AND TIME.
Use the calendar to select a date, and then tapNEXT.
Use the clock to select a time, and then tapDONE.
Tap the check mark.
Dimension
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the dimension metafield.
Tap theDimensionbox, and then enter a value.
Select a unit of measurement from the list.
Tap the check mark.
Weight
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the weight metafield.
Tap theWeightbox, and then enter a value.
Select a unit of measurement from the list.
Tap the check mark.
Volume
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the volume metafield.
Tap theVolumebox, and then enter a value.
Select a unit of measurement from the list.
Tap the check mark.
Number
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the number metafield.
Tap theNumberorDecimalbox, and then enter a value.
Tap the check mark.
Rating
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the rating metafield.
Tap theRatingbox, and then enter a value.
Tap the check mark.
File reference
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the file reference metafield, and then tapSELECT FILE.
TapCONTINUE.
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 tapUPLOAD.
Tap the check mark.
Page reference
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the page reference metafield, and then tapSELECT PAGE.
Select an available page, and then tap the check mark.
Tap the check mark again.
产品参考
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the product reference metafield, and then tapSELECT PRODUCT.
Select a product from the list, and then tap the check mark.
Tap the check mark again.
产品变体参考
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the product reference metafield, and then tapSELECT VARIANT.
Select a product from the list, and then select a variant.
Tap the check mark, and then tap the check mark again.
Metaobject reference
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the metaobject reference metafield, and then tapSELECT ENTRY.
Select an entry from the list, and then tap the check mark.
Tap the check mark again.
收集参考
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the collection reference metafield, and then tapSELECT COLLECTION.
Select a collection from the list, and then tap the check mark.
Tap the check mark again.
URL
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the URL metafield.
Tap the text box, and then enter a web address.
Tap the check mark.
Single-line or multi-line text
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the text metafield.
Tap the text box, and then enter your text.
Tap the check mark.
True or false
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the true or false metafield, and then selectTrueorFalse.
Tap the check mark.
JSON
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the JSON metafield.
Tap the text box, and then enter your data.
Tap the check mark.
Color
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the color metafield, and then tapSELECT COLOR.
Select a color by doing one of the following:
- Tap a color on the color picker.
- Tap theHex colorbox, and then enter an RGB color value.
Tap the check mark, and then tap the check mark again.
Date
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the date metafield, and then tapSELECT DATE.
Use the calendar to select a date, and then tapDONE.
Tap the check mark.
Date and time
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the date and time metafield, and then tapSELECT DATE AND TIME.
Use the calendar to select a date, and then tapNEXT.
Use the clock to select a time, and then tapDONE.
Tap the check mark.
Dimension
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the dimension metafield.
Tap theDimensionbox, and then enter a value.
Select a unit of measurement from the list.
Tap the check mark.
Weight
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the weight metafield.
Tap theWeightbox, and then enter a value.
Select a unit of measurement from the list.
Tap the check mark.
Volume
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the volume metafield.
Tap theVolumebox, and then enter a value.
Select a unit of measurement from the list.
Tap the check mark.
Number
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the number metafield.
Tap theNumberorDecimalbox, and then enter a value.
Tap the check mark.
Rating
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the rating metafield.
Tap theRatingbox, and then enter a value.
Tap the check mark.
File reference
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the file reference metafield, and then tapSELECT FILE.
TapCONTINUE.
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 tapUPLOAD.
Tap the check mark.
Page reference
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the page reference metafield, and then tapSELECT PAGE.
Select an available page, and then tap the check mark.
Tap the check mark again.
产品参考
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the product reference metafield, and then tapSELECT PRODUCT.
Select a product from the list, and then tap the check mark.
Tap the check mark again.
产品变体参考
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the product reference metafield, and then tapSELECT VARIANT.
Select a product from the list, and then select a variant.
Tap the check mark, and then tap the check mark again.
Metaobject reference
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the metaobject reference metafield, and then tapSELECT ENTRY.
Select an entry from the list, and then tap the check mark.
Tap the check mark again.
收集参考
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the collection reference metafield, and then tapSELECT COLLECTION.
Select a collection from the list, and then tap the check mark.
Tap the check mark again.
URL
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the URL metafield.
Tap the text box, and then enter a web address.
Tap the check mark.
Single-line or multi-line text
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the text metafield.
Tap the text box, and then enter your text.
Tap the check mark.
True or false
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the true or false metafield, and then selectTrueorFalse.
Tap the check mark.
JSON
- From theShopify app, go to the part of your store where you want to add a Metafield value. For example, a specific product, collection, or customer.
TapMore details, and then tapMetafields.
Tap the JSON metafield.
Tap the text box, and then enter your data.
Tap the check mark.
Next steps after adding values to metafields
After you add values to your metafields, you canconnect your metafields to your themeto display your custom information on your online store.