Working with Metafields and Variants
Beyond basic product fields like Title and Description, your platforms often have metafields (custom fields) and variants (product options). This guide shows you how to map both.Understanding Metafields
Metafields are custom data fields that your platform stores alongside standard fields. Examples:- Shopify: Custom metafields for warranty info, installation instructions, color codes
- BigCommerce: Custom fields for materials, dimensions, certifications
- Akeneo: Custom attributes for product specifications
Metafield Categories in Merchkit
The Configure Field Mapping modal has separate sections for:- Product Structured Metafields — Custom fields attached to the product as a whole
- Variant Structured Metafields — Custom fields attached to specific variants
Mapping Product Structured Metafields
Step 1: Open Import or Export Mapping
Go to Workspace → Integrations → Your Integration → Configure Fields Choose either the Import Mapping or Export Mapping tab (metafields exist in both). [SCREENSHOT: Configure Field Mapping modal with Import Mapping tab active]Step 2: Expand “Product Structured Metafields”
Scroll down past the main Product Fields section. You’ll see Product Structured Metafields (usually collapsed). Click to expand. [SCREENSHOT: Product Structured Metafields section expanded, showing available metafield mappings]Step 3: Map Each Metafield
You’ll see a list of metafields your platform provides. For each one: On Import:- Platform Metafield (left) → Merchkit Column (right)
- Example: “Warranty Info” (Shopify) → “Product Warranty” (Merchkit)
- Merchkit Column (left) → Platform Metafield (right)
- Example: “Product Warranty” (Merchkit) → “Warranty Info” (Shopify)
- Select a Merchkit column (or create a new one if the + button appears)
- Or click ✕ to remove the mapping
Step 4: Create New Columns for New Metafields
If a platform metafield doesn’t match an existing Merchkit column, the auto-mapping button in the main Product Fields section will create new columns for any unmatched metafields. Alternatively, you can manually create a new column by:- Clicking the mapping dropdown
- Typing the new column name
- Pressing Enter to create it
Understanding Variants
A variant is a specific version of a product with its own SKU, price, or inventory. Examples:- A shirt that comes in sizes S, M, L, XL (four variants)
- A paint color available in matte or gloss finish (two variants)
- A phone in black, silver, or gold (three variants)
- SKU (stock keeping unit)
- Price (can differ from parent product)
- Inventory (quantity available)
- Metafields (custom data specific to that variant)
Mapping Variant Fields
Step 1: Expand “Variant Fields”
In Import Mapping or Export Mapping, scroll down and find Variant Fields. Click to expand. [SCREENSHOT: Variant Fields section expanded, showing variant-specific field mappings]Step 2: Map Variant-Specific Columns
You’ll see fields like:- Variant Title (the variant’s display name)
- Variant SKU
- Variant Price
- Variant Cost
- Variant Inventory / Stock Quantity
- Variant Barcode
- Variant Weight
- Platform Variant Field → Merchkit Variant Column
- Merchkit Variant Column → Platform Variant Field
Step 3: Variant Pricing Considerations
A common mapping pattern:| Merchkit Column | Platform Variant Field |
|---|---|
| Variant SKU | SKU |
| Variant Price | Price |
| Variant Cost | Cost / COGS |
| Variant Weight | Weight |
Mapping Variant Structured Metafields
Just like products have metafields, variants can too.Step 1: Expand “Variant Structured Metafields”
In Import Mapping or Export Mapping, scroll down to Variant Structured Metafields. Click to expand. [SCREENSHOT: Variant Structured Metafields expanded]Step 2: Map Variant-Level Custom Data
Examples of variant metafields:- “Color Code” (hexadecimal color for that variant)
- “Fit Guide” (size chart specific to that variant)
- “Production Lead Time” (how long that variant takes to manufacture)
- “Supplier ID” (which supplier provides that variant)
How Variants Work During Import and Export
On Import
When you import a product with variants:- The parent product is imported with its core data (name, description, category, etc.)
- Each variant is imported as a child of that parent
- Variant-specific fields (SKU, price, metafields) land in variant rows
- Variant metafields are attached to each variant record
On Export
When you export a product with variants:- The parent product’s mapped columns sync to the platform
- Each variant’s mapped columns sync to the corresponding platform variant
- Variant metafields update the platform’s variant-level custom fields
- Pricing, inventory, and SKU at the variant level override parent-level data
Important: Parent vs. Variant Scope
When mapping, pay attention to what level the field belongs to:| Field Type | Belongs To | Examples |
|---|---|---|
| Product Fields | Parent product | Title, Description, Category |
| Variant Fields | Specific variants | SKU, Price, Size, Color |
| Product Metafields | Parent product | Warranty, Care Instructions |
| Variant Metafields | Specific variants | Size-specific dimensions, Color code |
Example: Apparel Product with Size Variants
Here’s what a typical apparel mapping might look like: Product Fields (Parent)| Merchkit | Platform |
|---|---|
| Product Name | Title |
| Description | Body HTML |
| Brand | Vendor |
| Material | (Product Metafield) |
| Merchkit | Platform |
|---|---|
| Variant SKU | SKU |
| Variant Price | Price |
| Variant Weight | Weight |
| Size | (Variant Metafield) |
| Fit Chart | (Variant Metafield) |
Collapsing Sections to Save Space
The Configure Field Mapping modal can get long. You can collapse any section by clicking on its header. This doesn’t affect your mappings—it just hides them from view.Next step: Platform-Specific Integration Guides