Import variants
- Available on
- Trial
- Pro
- Enterprise
- Who can do this
- Import variantsRoles: Administrator
Permission: product:write
- Import variantsRoles: Administrator
The variants import adds and updates your products’ variants, the items you make and sell, from a CSV file. A row whose sku matches a variant’s SKU updates that variant, and any other row adds one to the product its productSku names.
Where you start it
Section titled “Where you start it”On the Products screen, open Actions and click Import variants…. How a CSV import works explains the dialog, the file and its formats.
What a row does
Section titled “What a row does”- No variant has the row’s SKU: the row adds a variant to the product. When the row leaves them empty, it is
ACTIVE, made to order (MAKE_TO_ORDER) and not kept by lot. - A variant has the row’s SKU: the row updates it, as saving the variant’s page does. Its name and packaging are read from every row; its description, status, replenishment policy and lot tracking change only where the row fills them in. Its product never changes.
Import the products first, and add the packaging on the Packaging screen: productSku names an active product and packagingCode a packaging, each by its exact code.
Columns
Section titled “Columns”| Column | Format | What it holds | Example |
|---|---|---|---|
productSkuRequired | Text | The SKU of the product the variant belongs to; the product must be active | BRD-RYE |
skuRequiredImport key | Text | The code the variant is known by; a re-import updates the variant with this SKU | BRD-RYE-750 |
nameRequired | Text | The variant's name | Rye bread 750 g |
packagingCodeRequired | Text | The code of the packaging it is made and counted in | BOX-6 |
description | Text | What the variant is | Sliced, in a paper bag |
status | One of ACTIVE, INACTIVE, DISCONTINUED | A new variant is ACTIVE when empty | ACTIVE |
replenishmentPolicy | One of MAKE_TO_ORDER, MAKE_TO_STOCK | Whether it is made for the orders that need it or kept on the shelf; a new variant is MAKE_TO_ORDER when empty | MAKE_TO_ORDER |
lotTracked | Yes or no | Whether its stock is kept by lot; a new variant is not when empty | no |
What it refuses
Section titled “What it refuses”- A product that isn’t active: restore it on its page first.
- A
skuthat belongs to a variant of another product, to a material, or to an earlier row of the file. - A
nameanother variant of the same product has, here or earlier in the file. - A
packagingCodethat matches no packaging. - When it is written: a change of packaging while documents or stock count the variant in its packaging’s units, and a change of lot tracking while it is in stock.
Still stuck? Write to support@example.com.