Install
Install

Export and Import Shopify Variant Metafields in Bulk

Shopify variant metafields

Shopify Variant Metafields are Metafields set on a Product Variant instead of the Product. Matrixify Exports them in the Products sheet as Variant Metafield: namespace.key [type] columns, one row per Variant, and Imports them back – so you can change Variant Metafields for all Variants in one file.

Steps in short

  1. Export Products with the ID, Handle, Variant ID and Variant SKU columns and the Variant Metafields column group.
  2. Change the Variant Metafield values in the Variant rows of the exported file.
  3. Import the file to update the Variant Metafields in Shopify.

1. Export Products with Variant Metafields

In the Matrixify app Home create a new Export by using the New Export button. Select the Matrixify: Excel format and press Select Sheets to select Products.

Click on the Products sheet card to expand it and select only these columns:

  • From Basic Columns – ID and Handle.
  • From Inventory / Variants – Variant ID and Variant SKU. Variant SKU is there only so you can see which Variant each row is.
  • The Variant Metafields column group.

By default, the Export has a column for each Variant Metafield definition in your store, and for Metafields without a definition that at least one exported Variant has. To Export only some of them, press the Select ... button under Variant Metafields and set the Namespace, Key or Type, or check Exclude Metafields without values.

The app marks the Variant Metafields group as Very Slow – it makes the Export and Import take much longer, so select it only when you need it.

Matrixify Export of Shopify Products with Variant Metafields columns

Press Export, wait for the Export to finish and download the exported file.

2. Change Variant Metafield values in the file

Each Variant has its own row in the Products sheet, and the value in a Variant Metafield: ... column belongs to the Variant of that row. The column name shows the namespace, the key and the type, for example Variant Metafield: custom.buy_price [number_decimal].

  • A value creates the Metafield on that Variant or updates it.
  • An empty cell deletes that Metafield from the Variant.
  • [IGNORE] keeps the existing Metafield unchanged.

To add a new Variant Metafield, add a column with the same naming. If the column name has no namespace, the app uses the global namespace.

Excel file with Shopify Variant Metafield values for each Variant

3. Import to update Variant Metafields

In the Matrixify app Home upload the file in the Import section. Once the file is analyzed, make sure that the sheet is detected as Products and the Product count looks correct, then press Import.

Good to know

  • Product Metafields are in the Metafields column group, with columns that start with Metafield:.
  • Variant Metafields can also be Imported by row, or with the separate Metafields sheet where Owner is Variants – see the Metafields documentation.

What to do next?