# Overview

You can use metafields to add custom fields to objects such as products, customers, and orders. Metafields are useful for storing specialized information, such as part numbers, customer titles, or blog post summaries. They can be used by apps and channels to track data for internal use.

Advanced Custom Field (ACF) a powerful add-on application for your Shopify store that utilizes Shopify’s Metafields. It enables admins to add structured metafield fields (custom fields) to things in Shopify (objects), such as products, collections, orders, customers, and pages. These extra content fields are more commonly referred to as Custom Fields and can allow you to build websites faster and educate your clients quicker.

ACF supports adding custom fields to 9 Shopify object:

# The basics

In this guide, you’ll learn how to:

  1. Create new custom field- Fields
  2. Create custom field content - Add metafields to object as field settings. - Editor
  3. Show custom field in the storefront

# 1. Creating Fields

Creating new custom fields is a very easy process and can be done with just a few clicks of our user friendly field builder! You can create as many fields as you like, each with their own name, type and settings.

Each field is added to a group which allows you to both organize your fields and specify the edit screens where they appear.

Field groups are used to organize fields and attach them to edit screens. Each field group contains a title, fields, location rules and visual settings (colors,…).

To get started with your first field group, please read our Creating a Field Group guide.

Each field contains settings to customize how the field looks (its type), where its value is saved (its name) and how it functions (its settings). These field settings can be customized when editing a field group.

To learn more about field settings, please read our Field Settings guide.

# 2. Editor - Content Data

With your fields created, it’s time to start editing your content! All our fields are very intuitive to use and display seamlessly with the Shopify admin style.

To get an idea of the different content you can edit in ACF, please look over the available data types and reference types.

How to access ACF

After successfully installing ACF, every time you need to use the app you can access it via 2 ways:

  1. From your Shopify admin, go to Apps. Click Advanced Custom Field.

  2. Using ACF’s admin link in the More actions menu.

# 3. Displaying Fields

To show custom field details in your storefront, use the metafields object in your Liquid theme pages (including checkout.liquid) and in other locations where Liquid variables are supported.

For example, you could use the following Liquid code to display the example washing instructions on a product page:

{% unless product.metafields.Acme134-instructions.Wash == blank %}
	Wash: {{ product.metafields.Acme134-instructions.Wash }}
{% endunless %}

# Definition of special terms used in ACF app and this document

  • Resource: resource indicates types of subjects ACF supports, which are: products, product variants, collections, blogs, posts, pages, customers, orders, shop.

  • Resource list: resource list is an item list of a specific resource. For example if current selected resource is products, its corresponding resource list will be a list of products.

    Collections and orders are 2 special resources because they each have 2 types of resource list:

    • Collections:
      • Orders:
      • Group: group is used to contain a block of fields.

      • Field: field represents type of field editor and can be placed in or outside a parent group. When field is inside a parent group, field’s 2 attributes Repeatable and Field applies to will be dependent on the parent group’s.

      • Unrepeatable (Non-repeatable) - Repeatable

      • Bulk editor: according to Shopify document: “with the bulk editor, which is similar to a spreadsheet, you can edit multiple products and their variants at once from your Shopify admin”. In term of metafield, it can be used to edit product, product variant, collection, page or post (article) metafields.

      • Field editor: it is used to input content to a metafield.

      • JSON files: they are created by ACF when you export data.

      • Search bar: it is used to search for items in a resource list.

      TIP

      Use the Search tool in top to quickly find all the keywords which you are looking for.

      # Where are my custom fields stored?

      All custom field definitions as well as the values you enter for individual pages, products etc. are stored as metafields within your Shopify store. Metafields are an integral part of the Shopify platform and besides providing secure storage for your data, they can immediately be used in your design templates to show your new data to your visitors.