k-sync
Back to blog

Shopify metafields: a practical guide for stores migrating from WooCommerce (2026)

How to use Shopify metafields to replace WooCommerce custom fields and product attributes — metafield types, namespaces, theme display, bulk editing, and migrating WooCommerce ACF and custom meta data.

·By k-sync
4 min read · 806 words

WooCommerce stores commonly extend product data with custom fields — via Advanced Custom Fields (ACF), WooCommerce product attributes, WooCommerce Product Add-Ons, or direct custom post meta. Shopify's equivalent is metafields: structured key-value data attached to products, variants, customers, orders, collections, and other objects. Understanding metafields is essential for a successful migration because product attributes that live in WooCommerce custom fields need to move somewhere in Shopify.

What are metafields

A metafield is a piece of structured data attached to a Shopify resource (product, variant, collection, customer, etc.). It has three components:

Example: product.metafields.clothing.material = "100% organic cotton"

Metafield types

TypeUse forExample
Single line textShort text valuesMaterial, colour, brand
Multi-line textLonger text, formatted notesCare instructions, technical specs
IntegerWhole numbersWarranty years, minimum age, quantity
DecimalDecimal numbersWeight, dimensions, alcohol %, THC mg
True/falseBoolean flagsDishwasher safe, vegan, organic certified
DateDate valuesProduction date, expiry date
URLLinksSafety data sheet URL, lab certificate
JSONStructured dataCompatibility lists, spec tables
FileAttached filesPDF instruction manual
ColourColour picker valuePrimary colour hex
RatingStar rating valueProduct quality rating
MeasurementValue + unitWeight in kg, height in cm
List of [type]Multiple values of same typeList of compatible models (text list)
Metaobject referenceLinks to a custom structured objectLinked to an "Artist" metaobject

Metafield definitions vs custom namespaces

Shopify supports two approaches to metafields:

During migration with k-sync, metafields are pushed to Shopify via API. Create metafield definitions in Shopify Admin after migration so your team can edit them without needing API access.

Replacing WooCommerce custom fields

WooCommerce approachShopify metafield equivalent
ACF field on product post typeDefined metafield (product namespace)
WooCommerce product attribute (global)Shopify product options (for variants) or metafields (for spec data)
WooCommerce product attribute (custom)Shopify product options or metafields
WooCommerce custom field (meta box)Defined metafield
Product tab content (WooCommerce Tab Manager)Metafield (multi-line text) + theme section
Product documents/PDF attachmentsMetafield type: file

Displaying metafields in your theme

Shopify's Online Store 2.0 themes (Dawn and all modern themes) support metafield blocks in the theme editor. To display a metafield on a product page:

  1. Create a metafield definition in Admin → Settings → Custom data → Products
  2. In the Online Store theme editor, navigate to a product page template
  3. Add a "Text" or "Metafield" block to the product section
  4. Configure the block to display the specific metafield

For complex metafield displays (tables, conditional visibility), theme Liquid customisation or a metafield display app (Metafields Guru, Custom Fields) is required.

Bulk editing metafields after migration

After a k-sync migration, some metafields will be populated by the import (data that existed in WooCommerce), and others will need manual completion. For bulk editing:

Metafield strategy for the migration

A practical approach to metafields during migration:

  1. Audit WooCommerce custom fields: List all custom fields in use across your product types. Note which fields are displayed publicly and which are internal only.
  2. Categorise each field: Is it a variant option (creates separate purchasable SKUs)? A specification (display only)? An internal tracking field? A content field (long text)?
  3. Design namespaces: Use one namespace per product category (e.g. electronics, clothing) or one namespace for all custom data (custom).
  4. Create definitions before import: Pre-create metafield definitions in Shopify so API-imported values are immediately typed and editable.
  5. Configure theme display: Set up product page template metafield blocks for the fields customers need to see.

Post-migration metafield checklist

Migrate your store with k-sync

Connect your WooCommerce store, validate your products, and push to Shopify in minutes. Free for up to 50 products.

Get started free

Related reading

Browse all migration guides