An Ultimate Guide to Shopify Order Metafields for your Store

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.

shopify-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.

add-order-metafield-details

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.

shopify-store-order

Step 3: Scroll down to the Metafield section on the order page.

Step 4: Enter the value in the metafield: True or False.

shopify-order-metafields

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.

Wrapping Up!

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.

sagarika.das

About the author

13 Responses

  1. 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.

    1. Same question.

  2. 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)?

    1. Please contact Shopify support team for this.

  3. Metafield section is not showing up on my order page. Any ideas how I could add the metafield section to my order page?
    Thanks.

    1. Go to setings > metafields > orders

      1. there is no such links for setings > metafields > orders

        1. Please check in your Shopify store admin pannel from the lesft side.

  4. I love these tutorials – THANK YOU!! Is there a way to have the True/False selected automatically?

  5. How can I access the metafields on the packing slip?

    1. I’m not sure whether it is possible or not. I have found this option: go to settings from your shopify admin and click on shipping & delivery > edit button near to Packing slip template. Please confirm with Shopify customer team also.

  6. Can you access the meta fields in the orders API?

    I need to push the meta field to Zapier, so my accounting software can recognise the product.

    1. I am not sure about it. Could you please contact Shopify customer support team for this.

Leave a Reply

Your email address will not be published. Required fields are marked *