Skip to main content

How to Sync Metafields and Metaobjects Between Shopify Stores

Updated 5 min readMarkdown
How to Sync Metafields and Metaobjects Between Shopify Stores

Metafields and metaobjects make Shopify stores richer. They hold specifications, care instructions, size charts, ingredient lists, designer profiles, and many other details that your theme displays on product and collection pages.

In a multi-store setup, that custom data is often the hardest part to keep consistent. A metafield value can only be stored in a store that has a matching definition, and a reference to a size chart only works if the size chart exists in that store too. When stores are built separately, definitions and entries rarely line up.

Recreating definitions and entries by hand in every store is slow and error-prone, and a single mismatch in a namespace or key can leave product pages incomplete.

In this guide, you'll learn why custom data is difficult to share between stores, how metafield and metaobject syncing works, how StoreSync syncs definitions, values, and entries, and the practices that keep custom data consistent across stores.

Why Custom Data Is Hard to Keep Consistent Across Stores

Custom data has more moving parts than standard fields, and each part has to exist in every store.

Here are a few common situations:

A new metafield, such as custom.material, is added in the main store but not in the regional store.

Product pages in a connected store are missing size charts because the metaobject entries don't exist there.

A metafield has a different type in two stores, so values can't be copied cleanly.

New metaobject entries, such as designer profiles, are created in only one store.

A theme section in a connected store looks empty because its metafields have no values.

These situations create several problems.

  1. Missing definitions. Values can't be stored where the definition doesn't exist.
  2. Broken references. References point to metaobject entries that aren't in the connected store.
  3. Incomplete product pages. Theme sections that depend on custom data appear empty.
  4. Manual recreation. Definitions and entries have to be rebuilt by hand in each store.
  5. Inconsistent naming. Different namespaces or keys make it hard to match fields across stores.

Syncing definitions, values, and entries from a primary store addresses these problems.

How Does Metafield and Metaobject Syncing Work?

Custom data syncing has a few layers, and each layer needs to be in place for the next one to work.

Metafield definitions describe a custom field, such as custom.material with a text type. They need to exist in the connected store before values can be written.

Metafield values are the data stored on each record, such as "Merino wool" on a product.

Metaobject definitions describe a type of reusable content, such as Size Chart, and its fields.

Create or update it, matched by type and handle

Shopify doesn't sync metafields or metaobjects between separate stores natively. Merchants typically recreate them by hand or use multi-store apps.

How StoreSync Syncs Custom Data Between Stores

StoreSync's Sync Manager, available on the Basic and Pro plans, handles custom data as part of Resource Sync, with metafield updates included in real-time product sync.

  1. Create Missing Metafield Definitions

When StoreSync syncs a resource that supports metafields, such as products or collections, it first creates any missing metafield definitions in the connected store. Then it writes the metafield values.

This means you don't need to recreate every definition by hand before syncing.

  1. Sync Metafield Values With Their Records

Metafield values travel with the records they belong to. When products, collections, pages, blog posts, or customers are synced, their metafields are synced too. Variant metafields are included with product variants.

  1. Sync Metaobject Definitions and Entries

Metaobjects can be selected as their own resource in Resource Sync. StoreSync creates missing metaobject definitions in the connected store and then creates or updates entries, matched by their type and handle.

This brings reusable content such as size charts, ingredient lists, and profiles across to connected stores.

  1. Keep Product Metafields Updated in Real Time

With Real-Time Resource Sync turned on, updates to products in the primary store, including their metafields, are applied to connected stores in near real time for products already linked by a Resource Sync.

Metaobjects themselves don't use real-time sync, so run Resource Sync again after adding or changing entries.

  1. Review Results and Cancel if Needed

Resource Sync shows progress and a summary of updated, created, and failed records, and you can cancel a running sync. Reviewing the summary helps you catch custom data that couldn't be written, for example because of a type mismatch.

  1. Combine With Bulk Editing in the Primary Store

On the Pro plan, StoreSync's Bulk Editor shows metafields as columns and includes a Metaobjects tab. Keeping custom data accurate in the primary store means every connected store receives accurate data when you sync.

For a first custom data sync, a sensible order is:

Review and clean up metafield and metaobject definitions in the primary store.

Sync metaobjects, so entries such as size charts exist in connected stores.

Sync products and collections, bringing their metafield definitions and values.

Check a few product pages in each connected store to confirm custom data displays correctly.

Following this order helps references find their entries and keeps product pages complete.

Feature availability and supported resources may vary. Review the current StoreSync feature list to confirm that it supports your specific workflow.

5 views

No comments yet. Be the first to comment.