Metafields

A metafield is a column. The header carries the namespace, the key, and the type. Values are not a separate spreadsheet.

You do not import metafields as their own spreadsheet of values. On Products, and on the other sheets that have them, each metafield is a column. Export the sheet once and the headers are already filled in.

Product metafields use Metafield: namespace.key [type]. Variant metafields use Variant Metafield: namespace.key [type]. The type in brackets is used when writing. If it is missing, Leaper looks up the shop definition.

The header is the definition. The cell is the value for that product.

Empty cells

Empty cells are skipped unless Delete blank metafields is on, and then they delete. Values are written as the cell text, and JSON lists stay JSON. One bad metafield is skipped and the product still saves.

References

On import, handles are looked up on this shop. With Ignore ID, a leftover GID is skipped instead of pointing at the old shop. Metaobject lookup needs type/handle and the read_metaobjects scope. Without that scope the field is skipped.

Type points atWhat the cell containsExample
Product, collection, or pageThe handle.wool-coat
VariantproductHandle:skuwool-coat:WOOL-M
Metaobjecttype/handleshop/size-chart
FileThe filename.care.pdf
A listThe same values, separated by semicolons.wool-coat;linen-shirt

Definitions and metaobjects

Merchant-owned metafield and metaobject definitions are created from the Metafield Definitions and Metaobject Definitions sheets. App-owned $app namespaces are skipped. Metaobject entries are the Metaobjects sheet. Field: {key} columns come from the definition. Headers for those sheets are on Columns.