How to bulk edit Shopify metafields, including variant metafields

Bulk edit Shopify product and variant metafields: set, change or clear custom fields on many products at once, with a preview first.

  • By Merchant Control
  • 6 steps
  • 3 min read
Video: Bulk edit Shopify metafields: product and variant custom fields · English subtitles

In short

To bulk edit metafields in Shopify, open Bulk Actions in Merchant Control and set the Field to Product Metafield, or to Variant Metafield for a custom field on each variant. Choose the products, pick the Custom field and the change (set, remove, find and replace), and select Preview changes to see each value now and after; nothing in your store changes until you run it. Activity lists the run, and supported edits can be undone there.

The example in this guide uses one custom field the store already has on its products: Season, a text field. It sets Season to Winter on the three snowboards of a Winter Sale collection.

Bulk edit metafields, step by step

Step 1: Choose the field

In Merchant Control, open Bulk Actions. Set Field to Product Metafield, because Season is a field on products.

The Field menu with Product Metafield
Step 1: Choose the field

Step 2: Select the products

In step 1, Select products, choose the products to change. Under Products must match, add a condition, for example Product collection › is › Winter Sale.

Step 1: products from the Winter Sale collection
Step 2: Select the products

Step 3: Choose the change

In step 2, Choose the change:

  1. Set Action to Add or edit metafield to product.
  2. Under Custom field, choose the field, here Season. The line under it shows the field's type: text.
  3. Keep Set it to, and enter the Value: Winter.
Custom field Season, Set it to, Value Winter
Step 3: Choose the change

Preview matching products shows the products the edit will reach: here Hydrogen, Oxygen and Liquid.

Matching products: the three snowboards
Matching products: the three snowboards

Step 4: Preview the change

Select Preview changes. Nothing in your store has changed yet. Step 3, Review and run, shows each product with its value now and after: Season is empty now, and Winter after.

Product Season now Season after
Hydrogen (empty) Winter
Oxygen (empty) Winter
Liquid (empty) Winter
Review and run: Season empty now, Winter after
Step 4: Preview the change

Step 5: Run it

Select Run now. Merchant Control takes you to Activity, where the run is listed.

Activity: the run, completed
Step 5: Run it

Step 6: Undo, if you need to

Activity lists the run. Supported edits can be undone there: open the run and select Undo. Merchant Control asks once more and reminds you that Later edits stay unchanged. Undo bulk edits in Shopify: what comes back explains what Undo puts back.

The Undo question: Later edits stay unchanged.
Step 6: Undo, if you need to

Other custom field options

These options are not part of the example above.

  • Variant fields: for a field on each variant, set Field to Variant Metafield. The Custom field list then holds your store's variant fields, and the change is made on each variant of the products you chose.
  • Keep existing values: when you set a value, Apply to lets you choose Only records without a value, so a field that already has a value keeps it.
  • No custom field yet: choose Create a custom field… in the Custom field list. Merchant Control prepares it, and it is Created when you run this change.
  • More changes: the Action menu also removes a value, finds and replaces text in a value, adds a value to or removes one from a list field, and raises or lowers a number field.
  • From a spreadsheet: File Import can update the custom fields your store has defined. The Import as menu in step 2 of File Import lists them.

Good to know

  • Credits: a run uses one credit per product it changes, however many variants it has. Preview and Undo use none.

Features in this tutorial

Less work, more profit.

Get started for free

No monthly fee. Includes 100 one-time credits.