StriveFormats
WooCommerceGuide

WooCommerce Variable Products in CSV: Parent and Variation Rows

Understand how the WooCommerce product importer represents variable products with parent and child (variation) rows. Covers attribute columns, required fields per row type, and the most common import pitfalls.

Updated 2026-10-29
What you'll learn
  • ✓How WooCommerce represents variable products across parent and variation rows
  • ✓Which columns are required for parent rows vs variation rows
  • ✓How attribute columns (Attribute 1 name, Attribute 1 value(s)) work
  • ✓Common mistakes that cause orphaned variations or duplicate products
  • ✓How to structure a complete variable product CSV for import
Best for: WooCommerce store owners, developers, and catalog managers importing or updating variable products (clothing, shoes, electronics with multiple options)
Time to complete: 12 minutes

Ready to fix your CSV? Upload it for instant validation and auto-fixes.

Open CSV Fixer

How WooCommerce Models Variable Products

In WooCommerce, a variable product is a product that has purchasable variations, for example a T-shirt sold in Small, Medium, and Large. The CSV representation uses two types of rows:

  1. Parent row: represents the product container. Type is variable.
  2. Variation rows: each represents one purchasable option combination. Type is variation.

Variations are linked to their parent via the parent's SKU or ID.

The Parent Row

The parent row defines product-level fields and declares which attributes the product uses.

Key columns for parent rows

ColumnValueNotes
ID(blank or existing ID)Leave blank for new products
TypevariableMust be exactly variable
SKUSHIRT-BLUEUnique parent SKU
NameBlue Cotton T-ShirtProduct name
Published11 = published, 0 = private, -1 = draft
Attribute 1 nameSizeThe dimension name
Attribute 1 value(s)Small, Medium, LargeAll available values, separated by commas
Attribute 1 visible1Show on product page
Attribute 1 global1Use global (shared) attribute
  • Multiple attributes use sequentially numbered columns: Attribute 1 name, Attribute 2 name, etc.
  • The parent row's Regular price can be left blank or set to the lowest variant price. The actual per-variation prices are in the variation rows.

Variation Rows

Each variation row represents one purchasable option combination and must link back to the parent.

Key columns for variation rows

ColumnValueNotes
ID(blank or existing variation ID)Leave blank for new variations
TypevariationMust be exactly variation
SKUSHIRT-BLUE-SMUnique per variation
NameBlue Cotton T-ShirtShould match parent name
Parentid:123 or SHIRT-BLUELinks to the parent by ID or SKU
Regular price19.99Required for each variation
Attribute 1 nameSizeMust match parent's attribute name
Attribute 1 value(s)SmallSingle value for this specific variation
Stock50Per-variation inventory count
Weight0.3In the store's configured unit

Linking variations to parents

The Parent column accepts two formats:

  • By database ID: id:123. Use this when you know the WooCommerce product ID.
  • By SKU: SHIRT-BLUE, the parent's SKU exactly as it is. This is more portable; use it when importing new products whose IDs are not yet assigned.

When creating new variable products from scratch, put the parent's SKU in Parent. Include the parent row in the same file above its variations, or import it first.

Full Example: Variable T-Shirt

ID,Type,SKU,Name,Published,Regular price,Parent,Attribute 1 name,Attribute 1 value(s),Attribute 1 visible,Stock
,variable,SHIRT-BLUE,Blue Cotton T-Shirt,1,,,Size,"Small, Medium, Large",1,
,variation,SHIRT-BLUE-SM,Blue Cotton T-Shirt,1,19.99,SHIRT-BLUE,Size,Small,,30
,variation,SHIRT-BLUE-MD,Blue Cotton T-Shirt,1,19.99,SHIRT-BLUE,Size,Medium,,25
,variation,SHIRT-BLUE-LG,Blue Cotton T-Shirt,1,21.99,SHIRT-BLUE,Size,Large,,15

Note: Parent holds the parent's SKU, SHIRT-BLUE. The parent's value list contains commas, so it is wrapped in double quotes.

Two-Dimensional Variations (Size AND Color)

To add a second attribute (Color), include Attribute 2 columns on the parent row and both attribute columns on each variation:

Parent:

Attribute 1 name: Size
Attribute 1 value(s): Small, Medium
Attribute 2 name: Color
Attribute 2 value(s): Blue, Red

Variation (Small, Blue):

Attribute 1 name: Size
Attribute 1 value(s): Small
Attribute 2 name: Color
Attribute 2 value(s): Blue

You need 4 variation rows for 2 sizes × 2 colors.

Common Mistakes

Mistake 1: Parent Type is simple instead of variable

Symptom: Variations are created but do not appear on the product page. The product shows as a simple product.

Fix: The parent row's Type column must be variable (lowercase). WooCommerce will not convert a simple product to variable on import without the correct type.

Mistake 2: Variation not linked to parent

Symptom: Variations are created as standalone simple products instead of being attached to the parent.

Fix: Make sure every variation row has a Parent value: the parent's SKU (for example SHIRT-BLUE) or its ID written as id:123. Missing or malformed parent references create orphaned variations.

Mistake 3: Attribute values separated with pipes

Symptom: The product page shows one option such as "Small | Medium | Large" instead of separate choices, or the variations don't match any option.

Fix: On the parent row, separate the values with commas: Small, Medium, Large. The pipe | is what WooCommerce's admin screen uses, but the CSV importer splits values at commas. StriveFormats converts pipes to commas for you.

Mistake 4: Attribute name mismatch between parent and variation

Symptom: Import succeeds but variations don't match their attributes, or the wrong options appear.

Fix: The Attribute 1 name value must be identical on the parent row and every variation row. Size and Size (with a space) are treated as different attributes.

Mistake 5: Missing Regular price on variation rows

Symptom: Variations are created with no price, causing the product to show as not purchasable.

Fix: Regular price is required on every variation row. It cannot be inherited from the parent.

Mistake 6: Importing variations before their parent

Symptom: Variations are created as orphaned products because the parent ID/SKU doesn't exist yet.

Fix: Ensure the parent row appears before its variation rows in the CSV. WooCommerce processes rows top-to-bottom.

Update Behavior

When re-importing a variable product that already exists:

  • Match by ID: The safest update method. WooCommerce updates the existing product if the ID matches.
  • Match by SKU: WooCommerce can also match by SKU. Leave ID blank, provide the SKU.
  • Adding new variations: Include existing variations in the import file along with new ones. Variations present in the admin but absent from the import file are not deleted, but this can vary by WooCommerce version and import plugin settings.

Always test updates on a staging store or with a backup before importing to production.

Need help fixing your file?

Upload your CSV to StriveFormats for instant validation, auto-fixes, and a clean export.

The CSV Fixer showing a Shopify file with one blocking issue, the error and warning counts, and the problem cells highlighted