Skip to content

Import and export parts as CSV

This article explains how to export the simulator parts to a CSV file, with one row per part. You can then edit this file in a spreadsheet. It also gives the list of columns and the format rules to follow. Analyzing and importing the edited file is described in another article (see “Going further”).

  • Use an account that is allowed to manage the WooCommerce store, with permission to edit each product concerned. Products you are not allowed to edit are left out of the export, without any message.
  • Note that products are identified by their UGS (SKU), or by their ID if the SKU is empty. Only parent products are accepted, not variations.
  • Keep in mind the limits for the file to import:
    • .csv or .txt format;
    • 2 MB at most;
    • 5,000 non-empty rows at most;
    • per product: 40 parts at most, and 100 parts in total.

Open the « CSV import and export » screen

Section titled “Open the « CSV import and export » screen”
  1. Click Room planner › Simulator pieces.
  2. Click CSV import and export.

The screen opens. The Back to the list button takes you back to the list of simulator parts.

The CSV import and export screen: Import and Export sections, and sample files in French or English.

  1. In the Export section, set Products with pieces:
    • All (default choice) exports all products that have parts;
    • or choose a category to export only its products.
  2. Set Column names:
    • French (default choice);
    • English.
  3. Click Export.

Your browser downloads a file named pieces-AAAA-MM-JJ.csv.

The Column names choice also changes the values written in the file:

French English
Headers in French in English
Yes / no oui / non yes / no
Mode classique / modulaire classic / modular
Decimals comma period
  1. Open the product’s parts sheet.
  2. Click Export this product (CSV).

The file contains only this product, with the columns in French. A link Import a CSV file, preceded by “To edit in a spreadsheet, then import again:”, opens the CSV screen. The other tools on the sheet are described in Test, copy and export a product’s parts.

  1. On the CSV import and export screen, find Download the sample file.
  2. Click French or English.
  3. Open the file in your spreadsheet.
  4. Replace the sample SKUs, EXEMPLE-ANGLE and EXEMPLE-CANAPE, with real SKUs from your store.
  • Put one row per part.
  • Write the header row in French or in English. The column order is free and letter case does not matter.
  • Keep or delete the optional columns. Unknown columns are ignored, and so are empty rows.
  • Separate cells with ;, a comma or a tab. The separator is detected on the first row.
  • Preferably save in UTF-8. Two other encodings are converted:
    • a UTF-16 file with BOM is converted, with the notice “The file was in UTF-16: it was converted.”;
    • a Windows-1252 file (Excel) is converted, with the notice “The file was not in UTF-8: it was read as Windows-1252 (Excel). Check the accents.”
  • With the comma separator, put any value with a decimal comma in quotes, or use ;.
  • Cells that start with =, +, - or @ are written with an apostrophe in front on export. This apostrophe is removed on import.

The export contains 27 columns, in the order below. For each column, the first name is the French header and the second is the English header.

The required columns are: the product SKU or ID (at least one of the two columns), ref, label, type, the width and the depth.

No. Column (fr / en) Required Values
1 sku / sku Yes, if product_id is missing SKU of a parent product. Takes priority over product_id. If both are filled in, they must point to the same product.
2 product_id / product_id Yes, if sku is missing Numeric product ID, used if the SKU is empty.
3 mode / mode No classique or modulaire (classic or modular in English), or empty. All rows of the same product must have the same mode.
4 ref / ref Yes Text, 100 characters at most. Neither empty nor “0”. Unique within a product.
5 label / label Yes Name of the part, 100 characters at most.
6 type / type Yes seat, middle, end, corner, coffee, dormeuse or other, case-insensitive.
7 largeur_cm / width_cm Yes Number from 1 to 500 (cm). The decimal comma is accepted.
8 profondeur_cm / depth_cm Yes Number from 1 to 500 (cm).
9 hauteur_cm / height_cm No Height in cm. A non-numeric value is removed without an error.
10 qte / qty No Whole number from 0 to 20. The total of a product’s quantities must not exceed 100.
11 qte_max / max_qty No Maximum quantity. A non-numeric value is removed without an error.
12 jonctions / ports No LR, L, R, BR or none. The middle and coffee types require LR. The end and dormeuse types require L or R. The corner type requires BR. The seat type requires none, the rect shape and standalone = yes. With none, the per-type constraints do not apply; the part must be standalone (yes by default if the standalone column is missing).
13 jonction_cm / join_cm No Join depth in cm. Required when the joins are not none: greater than 0 and at most equal to the part’s depth.
14 forme / shape No rect or bevel (beveled). Only a corner (corner) can be beveled.
15 coupe_x_cm / cut_x_cm No Bevel cut, in cm.
16 coupe_y_cm / cut_y_cm No Bevel cut, in cm.
17 autonome / standalone No Yes or no. A part without a join must be standalone.
18 places / seats No Number of seats. A non-numeric value is removed without an error.
19 largeur_min_cm / min_width_cm No Minimum width in cm. A non-numeric value is removed without an error.
20 largeur_max_cm / max_width_cm No Maximum width in cm. A non-numeric value is removed without an error.
21 largeur_reglable / width_editable No Yes or no.
22 longueur_reglable / length_editable No Yes or no.
23 disponible / available No Yes or no.
24 famille / family No Free text, 100 characters at most.
25 cote / side No haut, gauche, droite, libre (or top, left, right, free, auto).
26 ordre / order No Assembly order. A non-numeric value is removed without an error.
27 rotation / rotation No Rotation. A non-numeric value is removed without an error.

For the yes / no columns, the accepted values are oui, yes, 1, true, vrai, non, no, 0, false and faux, case-insensitive.

  • A pieces-AAAA-MM-JJ.csv file is downloaded.
  • It is in UTF-8, with the ; separator, one row per part and 27 columns.
  • You can open it in a spreadsheet, edit it, then upload it from the Import section of the CSV import and export screen.

The messages below are displayed when you upload the file. The details of the analysis are explained in the article about import.

Message displayed Cause What to do
“Choose a CSV file (.csv or .txt).” The file does not have the .csv or .txt extension, or its type is not a text type. Save the file in CSV format, then upload it again.
“The file is empty.” The file has no content, or only spaces. Save the file in CSV format (under 2 MB), then upload it again.
“The file is not a text file.” The file cannot be read as a text file. Save the file in CSV format (under 2 MB), then upload it again.
“The file is too large.” The file exceeds 2 MB. Split the file into several files.
“Too many lines in the file.” The file exceeds 5,000 non-empty rows. Split the file.
“Required columns missing: sku or product_id, ref, label, type, width and depth.” A required column is missing. Start from the sample file and fix the header row.
“The same column appears twice.” Two headers point to the same column, for example qte and qty. Keep only one of the two columns.
“More cells than columns on this line (decimal comma with a comma separator?).” A decimal comma is not in quotes with the comma separator. Use ; or put the value in quotes.
“Verification refused: reload the page.” The page was left open too long, or the account is not allowed to manage the store. Reload the page and use an authorized account.