Setting up custom fields in Shopify Metafields – everything you need to know

Lukas Schmidt, 15 February 2024

Setting up custom fields in Shopify Metafields – everything you need to know

In this article, I’ll show you how to add custom fields using Shopify Metafields, so you can make your Shopify shop even more appealing to your customers.

What are Shopify Metafields?

Shopify metafields are custom containers for products, variants, customers and other elements in your Shopify shop. Essentially, metafields allow you to expand on the standard information that Shopify provides for these elements.

The customisable data can be used in a variety of ways. Product customisation, the integration of third-party apps, improved filtering and search options, and the creation of bespoke layouts and displays on the website – all of this is made possible by Metafields.

What are the benefits of Shopify Metafields?

Shopify’s meta fields make it relatively easy to add information to your online shop that goes beyond the standard fields. This offers you the following benefits:

  • More product information for customers.
  • An improved user experience thanks to the filter function.
  • Optimised SEO for Shopify.

What are the requirements for Shopify Metafields?

With Shopify OS 2.0, you can now set up Shopify Metafields natively within your Shopify CMS, so there’s no longer any need for complex setup procedures. You simply need to ensure that both your Shopify OS and your theme are up to date.

How do I set up Shopify Metafields?

To set up a new metafield, follow these steps:

You can find the settings for Shopify Metafields under the ‘Custom Data’ menu item.

Setting up custom fields in Shopify Metafields – everything you need to know, Golden Web Age GmbH

Defining a metafield: You must specify the name of your metafield. A namespace is then generated automatically. This allows you to select the metafield later in the code. You cannot change this later.

Setting up custom fields in Shopify Metafields – everything you need to know, Golden Web Age GmbH

Next, you can choose which type of Metafield you want to implement.

Setting up custom fields in Shopify Metafields – everything you need to know, Golden Web Age GmbH

Filling in Metafields: You can now find the Metafield you have created in the relevant section of the backend. Product Metafields appear at the very bottom of the product pages. Here, you can now enter the information for the products of your choice.

Setting up custom fields in Shopify Metafields – everything you need to know, Golden Web Age GmbH

And just like that, your additional information will appear in your Shopify shop.

How to display Metafields in your online shop

If you’re using an Online Store 2.0 theme, you can link almost all meta fields via the theme editor. This link can be set up in any position marked with the icon showing three discs.

With a single click, you can select the metafields you created earlier as the source.

How to edit Metafield definitions

If you always want to display meta fields in the backend as input options for products or categories, you can pin them using the pin icon.

To delete a Metafield definition, you should first ensure that it is no longer linked to a theme. Otherwise, display errors may occur. You can choose to delete either just the definition or the values as well.

You can edit the meta-field name, description and validation rules afterwards.

Examples of Shopify Metafields

Here is an example of a Shopify meta field. In this case, it consists of a text field and an accompanying product image. Meta fields allow you to enhance the visual appeal of your Shopify shop.

Setting up custom fields in Shopify Metafields – everything you need to know, Golden Web Age GmbH

Types of Shopify Metafields

The categories of metafields in Shopify can be divided into different groups or types, depending on which Shopify object they are associated with. Here are some main categories of metafields based on the Shopify objects

Product Metafields

Product meta-fields allow you to display additional information about different products. Whether it’s storage instructions, materials or country of origin, product meta-fields enable you to describe your goods in great detail.

  • Allows you to specify additional information for products.
  • Stores characteristics that apply to the product across all variants.

Variant metafields

With Shopify Variant Metafields, you can add product variant-specific information to your shop. This allows you to manage specific data for each product variant for various purposes, such as:

  • Additional information can be added to a product variant.
  • Filtering by attributes when there are a large number of variants
  • Integration with apps and plugins

Further metafields

In addition, there are category metafields, customer metafields, order metafields and others. Metafields are used wherever you want to store additional information and access it multiple times in different places.

Conclusion – Shopify Metafields improves the customer experience

Shopify Metafields provide Shopify shops with a range of new ways to add additional information about products and variants, as well as to improve the user experience and search engine optimisation.

The integration process may take a little time, but it is certainly worth it.

📘 Your comprehensive guide to Shopify

Want to find out more? In our comprehensive guide, you’ll find everything you need to know about setup, design, marketing, checkout, SEO and scaling with Shopify.

Go to the step-by-step Shopify guide now

FAQ on Shopify Metafields

What are meta fields in Shopify?

Metafields in Shopify are custom fields that allow you to store additional information about products, orders or customers. They offer a flexible way to optimise your product page and store specific data that isn’t included in Shopify by default.

How can you add Metafields to your Shopify shop?

To add metafields to your Shopify shop, you can use the Shopify admin interface or an app that supports the addition of metafields. You’ll need to define the namespace and specify the type of value you want to store to ensure the data is structured correctly.

What do you need to use Metafields?

To use Metafields in your online shop, you’ll need a basic understanding of Shopify’s development language, particularly Liquid. You should also know what information you want to store and how you want it to be displayed in your shop.

How can you optimise the metafields you have created?

You can optimise the metafields you have created by ensuring they contain valuable information that helps your customers. Make sure the metadata is clear and precise to boost sales and improve the user experience.

How can you use Metafields for dynamic sources?

Metafields are ideal for creating dynamic sources that automatically display up-to-date information. This can be particularly useful for limited-time offers or products with expiry dates, as it ensures that the most up-to-date data is always displayed.

Can Metafields store sensitive data?

Yes, you can use Metafields to store sensitive data, but you should ensure that this complies with the validation rules for values and that the data is managed securely. Make sure that confidential information is protected to ensure the security of your shop.

How can you customise the Metafields in your Shopify shop?

You can customise the metafields in your Shopify store by editing them directly via the Shopify admin or using apps designed specifically for customising metafields. This ensures that the information is always up to date and relevant.

How do meta fields affect search engine optimisation?

Metafields can have a positive impact on your online shop’s search engine optimisation by providing additional, relevant information that can be indexed by search engines. By using metafields correctly, you can improve your shop’s visibility in search results and generate more traffic.

How can you link the Metafields to your theme?

To link the Metafields to your theme, you’ll need to use Liquid to display the metadata in your theme. You can use specific Liquid tags to display the information in the desired locations on your product pages or within your shop.

Does using Metafields affect the performance of my Shopify shop?

As a rule, metafields do not have a significant impact on performance. However, it is important to use them efficiently and avoid unnecessary metafields in order to optimise the shop’s performance.

What is the maximum number of Shopify meta fields?

Shopify itself does not set a maximum number for meta fields. However, a very large number of meta fields can affect the size of the database and, consequently, the site’s performance.

Are there any third-party apps that make it easier to use Metafields in Shopify?

Yes, there are various apps that can potentially make it easier to manage Metafields and offer additional features for customising shop data. I’ve listed a few of them for you earlier in the article.

Lukas Schmidt

Senior SEO Consultant

As an external SEO and content marketing consultant, Lukas helps Golden Web Age’s clients to strategically boost their visibility on Google. As a freelance expert, he publishes in-depth articles on online marketing, SEO, e-commerce and Shopify on the Golden Web Age blog.

Do you need help with a project?
Book a free initial consultation now