Shopify has recently unlocked 3 more metafield types for the store owners. And one of them is “Order Metafields”. It means now you can easily create custom metafields for your orders in your Shopify Store Admin. With Shopify Order Metafields, merchants don’t require using third-party Shopify apps or hiring experts to add order metafields in the theme files by coding.
So today’s guide is about the order metafield. It will help you to learn more about Shopify Order Metafields and how to add order metafields in your store.
You may also need to add other metafields to your store. Therefore, find some helpful articles on different Shopify metafield types below:
Shopify Order Metafields
Like other types of Shopify 2.0 Metafields, the order metafield is useful for storing additional information about the orders in your Shopify Store Admin. Using the Shopify order metafields you can add various custom data about store orders. Some examples are as follows:
- Add remark to your orders
- Arrange the order as per priority
- Mark the order for normal or express delivery (explained here)
- Give ratings to the orders
How to Add Order Metafields in Shopify
Goal: A store offers two delivery types: (1) Normal and (2) Express. The store owner wants to add a custom field to the order that shows the express delivery status.
Let’s begin with adding custom details to the store orders.
Creating Order Metafield Definition
Here, we will add an order metafield “Express Delivery Status” that will store TRUE if the delivery type is “express” otherwise FALSE.
Steps to add order metafield definition
Step 1: Log in to your Shopify store admin.
Step 2: Go to Settings > Metafields.
Step 3: Select the “Orders” metafields type.
Step 4: Click the Add definition button.
Step 5: Provide a name to your order metafield definition. I am using “Express Delivery Status”.
Step 6: Keep the Namespace and key as it is. The system will use it to identify the metafield definition.
Step 7: Add a description to your metafield definition (optional).
Step 8: Check the Give access to Storefront API requests option if you want to display the metafield values on your storefront.
Step 9: Select “True or False” as a content type from the list. It represents the type of value the metafield will store.
Step 10: Save the metafield definition.
Hope you enjoyed creating the metafield definition for your orders.
Adding Values to Shopify Order Metafields
Next, we will locate the recently created metafield and add values for different orders.
Steps to add values to order metafields
Step 1: From the Shopify store admin, go to Orders.
Step 2: Click on any order.
Step 3: Scroll down to the Metafield section on the order page.
Step 4: Enter the value in the metafield: True or False.
Step 5: Save the changes.
That’s it! You are done with adding values to the Shopify metafield that you created for your store orders. This way, you can update all the orders for the express delivery status.
Hope this guide helped you learn about one of the amazing Shopify 2.0 metafield types, i.e. Order metafield. Need more help to customize your e-commerce store? You can explore our blog section for more helpful resources.
Hi Sagarika Das,
Hope you are doing great,
Can we add value from thank you page to the same order metafield? Can you please let me know how we can achieve it.
Hey, great turorial! 🙂
I successfully implemented this in my shop.
Is there a possibility to show meta fileds in the order list (myshop.com/admin/orders)?
Metafield section is not showing up on my order page. Any ideas how I could add the metafield section to my order page?
I love these tutorials – THANK YOU!! Is there a way to have the True/False selected automatically?
About the author