Loading...

Quick Notes

What Are Shopify Metafields? A Merchant Primer

Shopify metafields are custom fields you attach to products, variants, collections, and other resources to store data Shopify has no built-in field for, such as material, fit, restock date, or a popularity score. Merchants use them for storefront display and filtering, and increasingly as sorting inputs, because metafields can hold exactly the data your merchandising logic needs.

How Do Metafields Work?

You create metafield definitions in the Shopify admin under Settings, then Custom data. A definition gives the field a name, a type (text, number, date, true or false, references, and more), and a home on products, variants, collections, customers, or orders. Once defined, the field shows up in the admin editor like any native field, and apps can read and write it through Shopify’s APIs. Values can also be filled in bulk via CSV-style workflows or by apps, so you are not condemned to typing them one product at a time.

What Should Merchants Use Them For?

  • Storefront content: size guides, ingredients, care instructions, specs rendered by your theme.
  • Filtering: attributes shoppers filter by that are not tags, like fabric or fit.
  • Merchandising data: priority scores, margin tiers, seasonality flags, drop dates, or any number your team wants sorting to respect.

Can You Sort Collections by Metafields?

Not with Shopify’s built-in sort orders, which only cover best selling, price, newest, alphabetical, and manual. But automated sorting tools can use metafield values as ranking signals, which turns a metafield into a steering wheel: set a numeric priority field and weight it in a sorting recipe, and your team controls collection order through data instead of drag and drop. Numeric metafields work especially well, including range-style values, covered in metafield range values. Start with one field that answers a real question, like which products are core versus seasonal, and build from there.

Dynasort sorts by metafields out of the box. Install it from the Shopify App Store or see how it works.