How to create a metafield with Shopify?
Fordeer hello to you,
Shopify metafields are the custom fields that empower you to store extra information for your products, customers, orders and the other that the normal Shopify settings don't support.
You can keep these additional pieces of information to yourself for tracking or display them to your customers in different ways on your web store.
You can refer to this article from Shopify for more information about the metafields .
In this guide, I will walk you through all steps to create a metafield with Shopify. Let’s go!
Typically, you’ll need to go through two main steps to add Shopify metafield– creating metafield definitions, and adding values to your metafields.
From Shopify Admin, go to Settings > Custom data
Herein, you will see a list of Shopify metafield types– from products, variants, customers, blogs, etc.
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_progri.png)
Select the metafield type you want.
In this example, we will use Products, the most popular place to use Shopify metafields.
Click Products > Hit the Add definition button to get started.
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_d0whex.png)
Click Add definition and fill in the fields including: Name, Namespace and key (optional), Description (optional).
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_1n01sj6.png)
Click Select type > Select the content type that best matches your metafield from the list > Set validation rules and additional configuration.
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_12iy775.png)
There are two types of metafield values: One value and list of values.
- One value: is just one piece of data, like a string of text, a number, or a date.
- List of values: is a collection of single values. This could be a list of colors, for example.
Click Save
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_dzmmkl.png)
From Shopify Admin, go to Products > Click a Product you want to add more content.
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_7kfwnm.png)
In Metafields, add the content you want to display following the content types.
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_gneiey.png)
Click Save
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_1fs3k0r.png)
And that's it! You’ve successfully created and added Shopify Metafields to your store.
With Fordeer PDF Invoices, you can display order, customer, product, and variant metafields directly on your invoices, check out this helpdesk article for more.
Additionally, product metafields can be shown labels/badges on your store using the Product Labels app, check it out now 👉 How to add product metafields to label content?
Please give it a try and do not hesitate to contact us if the metafields does not display on your invoices, we will be more than happy to assist you.
Talk soon!
We value your feedback as it helps us to improve and support your experience.
👉 Chat with us: Click here to share your thoughts and feedback directly.
👉 Install our apps: Get more Fordeer apps.
👉 Join us: Join Fordeer Commerce Community for fresh app updates, expert tips, and special deals.
We are always listening and eager to assist you!
Shopify metafields are the custom fields that empower you to store extra information for your products, customers, orders and the other that the normal Shopify settings don't support.
You can keep these additional pieces of information to yourself for tracking or display them to your customers in different ways on your web store.
You can refer to this article from Shopify for more information about the metafields .
In this guide, I will walk you through all steps to create a metafield with Shopify. Let’s go!
Typically, you’ll need to go through two main steps to add Shopify metafield– creating metafield definitions, and adding values to your metafields.
Create a Shopify metafield definition
From Shopify Admin, go to Settings > Custom data
Herein, you will see a list of Shopify metafield types– from products, variants, customers, blogs, etc.
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_progri.png)
Select the metafield type you want.
In this example, we will use Products, the most popular place to use Shopify metafields.
Click Products > Hit the Add definition button to get started.
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_d0whex.png)
Click Add definition and fill in the fields including: Name, Namespace and key (optional), Description (optional).
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_1n01sj6.png)
Click Select type > Select the content type that best matches your metafield from the list > Set validation rules and additional configuration.
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_12iy775.png)
There are two types of metafield values: One value and list of values.
- One value: is just one piece of data, like a string of text, a number, or a date.
- List of values: is a collection of single values. This could be a list of colors, for example.
Click Save
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_dzmmkl.png)
**Add values to metafields**
From Shopify Admin, go to Products > Click a Product you want to add more content.
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_7kfwnm.png)
In Metafields, add the content you want to display following the content types.
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_gneiey.png)
Click Save
![](https://storage.crisp.chat/users/helpdesk/website/190039ccb2373600/image_1fs3k0r.png)
And that's it! You’ve successfully created and added Shopify Metafields to your store.
With Fordeer PDF Invoices, you can display order, customer, product, and variant metafields directly on your invoices, check out this helpdesk article for more.
Additionally, product metafields can be shown labels/badges on your store using the Product Labels app, check it out now 👉 How to add product metafields to label content?
Please give it a try and do not hesitate to contact us if the metafields does not display on your invoices, we will be more than happy to assist you.
Talk soon!
We value your feedback as it helps us to improve and support your experience.
👉 Chat with us: Click here to share your thoughts and feedback directly.
👉 Install our apps: Get more Fordeer apps.
👉 Join us: Join Fordeer Commerce Community for fresh app updates, expert tips, and special deals.
We are always listening and eager to assist you!
Updated on: 22/08/2024
Thank you!