Order Metafields in Shopify

Order Metafields in Shopify

Recently, Shopify has launched three more important metafield types for online merchants. One of the Shopify metafields types is “Order Metafields”. With this, you can easily create and manage custom metafields for your orders in the store admin panel.

One of the biggest benefits it offers is that the merchants don’t need to pay for the third-party apps or hire the Shopify developers to add or manage the order metafields in the Shopify theme files by coding.

In this blog post, we’ll learn about the Shopify Order Metafields. We are sure by the time you reach the end of this post, you’ll learn to create and display order metafields in your store.

What is Shopify Order Metafields?

Similar to other types of Shopify metafields, the order metafield helps display additional information about the orders in your online store. The Shopify order metafields can help you add custom data about the orders.

Below are some examples of Shopify order metafields:

  • Display the orders as normal or express delivery
  • Add remarks to your orders
  • Showcase ratings underneath the order

How to Add Order Metafields in Shopify?

Our goal is to display ratings underneath the order that will store ratings from 1 to 5.

Steps to Add Order Metafield Definition

Step 1: After logging in to your Shopify admin area, go to Settings and click on Metafields.

Shopify Metafield Settings

Step 2: In the list of Metafields Types, go ahead by clicking on Orders.

Order Metafield Select

Step 3: Next, click on the Add definition button.

Order Metafield Add Definition

Step 4: Enter a name for the metafield definition.

Step 5: Let the Namespace and key be as it is.

Step 6: You can add a description for your metafield definition, but it isn’t mandatory.

Step 7: Tick mark the Give access to Storefront API requests such that the metafield values are showcased on the storefront.

Order Metafield Definition Details

Step 8: From the Select content type, choose “Ratings”.

Order Metafield Ratings

Step 9: Enter validation values. Here, we’ve entered rating scale minimum as 1 and rating scale maximum as 5. Click on the “Save” button to save the metafield definition.

Order Metafield Validation Values

This way, you can add order metafields definitions in your Shopify store.

How to Add Values to Order Metafields in Shopify?

Here, we’ll learn to locate the order metafields that we created above. And, we’ll add values for one of the orders. Let’s check it out!

Steps to Add Values to Order Metafields

Step 1: From the Shopify store admin, go to Orders.

Shopify admin Panel

Step 2: Choose any order from the list.

Order List

Step 3: On the order page, scroll down until you find Metafield section.

Step 4: Click on it and enter any value, named 4.0

Order Metafield Ratings

Step 5: Save the changes that you’ve made.

These were the only steps that you need to follow to add values to the Shopify metafield that you created for the orders of your online store. Similarly, you can update all the order ratings in your store. 

Conclusion

These were the only steps that you need to follow to add values to the Shopify metafield that you created for the orders of your online store. Similarly, you can update all the order ratings in your store.

We hope that this blog helped you understand the Shopify order metafields, and helped you create order metafields and add value to them.

Do you need more help customizing your Shopify store? Explore our blog page to get detailed insights.

If you find this blog helpful to you, let us know in the comments section, and don’t forget to share it with your group!