Articles on: PDF Invoice Generator

How to create metafield definitions?

By enabling you to record customized data that is typically not captured in the Shopify admin, metafields enable you to customize the functioning and appearance of your Shopify store. Metafields can be used in a variety of ways, such as to display specialized information on your online store or for internal tracking.

For instance, a seller of candles could wish to include the burn time for their candles on their product pages, while a grocery store might want to display a product expiration date for canned goods.

This instruction will show you how to create metafields easily on Shopify.

Create metafield definitions



On the side bar of homepage, go to Settings and access Custom data




Select the part of your store that you want to add a metafield to.
For example, Products or Customers (which would be displayed on your invoice templates later).


Click Add definition


Optional :
In the Namespace and key field, edit the default identifier for your metafield
In the Description field, enter a description for your metafield values
To allow custom storefronts to display values for this metafield, select Storefronts
To allow for this definition to display for automated collections, select Automated collections This option is only available for product and variant metafields.
Click Select content type, and then select the content type that best matches your metafield from the list
To allow a list of values in your metafield, select Accept list of values
Click Definition pinned to unpin the definition from the resource detail page
Click Save to successfully create one metafield definition.



Noted that: the key of metafield can be used in the Invoice Line items later.

Updated on: 19/09/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!