How to fix it
- Write prices with a dot before the cents and no thousands separator, such as 1299.00.
- Write In stock? as 1, 0 or backorder, and Stock as a whole number or leave it blank.
- Write Published as 1 to publish, 0 for private, -1 for draft.
Example
A file with this problem
Type,SKU,Name,Published,Visibility in catalog,Tax status,In stock?,Stock,Regular price,Images,Parent,Attribute 1 name,Attribute 1 value(s... simple,MUG-1,Mug,yes,visible,taxable,outofstock,ten,"12,50",,,,,
What the checker says about it
- Line 2: "Mug": Published is "yes". WooCommerce reads only 1 (published), 0 (private), -1 (draft) and 2 (pending review), so this product will be private. Write 1 to publish it.
- Line 2: "Mug": In stock? is "outofstock". WooCommerce reads only 1, 0 and backorder (in lower case); any other text counts as yes, so this product will be marked in stock. Write 1 (in stock), 0 (out of stock) or backorder.
- Line 2: "Mug": Stock "ten" is not a whole number. WooCommerce reads it as 0 and turns on stock management. Write a plain whole number such as 1200, or leave it blank to not track stock.
- Line 2: "Mug": Regular price "12,50" has a comma. On a store whose decimal separator is a dot (the default), WooCommerce removes the comma and reads 1250. Write the price with a dot before the cents and no thousands separator, for example 1299.00.
Once the listed rows are fixed, check the file again; the checker also looks for the other problems in WooCommerce's import code, so you do not trade one error for the next.
Other WooCommerce import errors
- Sorry, you are not allowed to upload this file type.
- Invalid file type. The importer supports CSV and TXT file formats.
- The file is empty or using a different encoding than UTF-8, please try again with a new file.
- The uploaded file exceeds the upload_max_filesize directive in php.ini.
- A product with this SKU already exists.
- A product with this ID already exists.
- All checks
Sources
- WooCommerce 11.2.2 source: wc-formatting-functions.php: https://github.com/woocommerce/woocommerce/blob/11.2.2/plugins/woocommerce/includes/wc-formatting-functions.php
- WooCommerce 11.2.2 source: class-wc-product-csv-importer.php: https://github.com/woocommerce/woocommerce/blob/11.2.2/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php
- WooCommerce: Product CSV Importer and Exporter: https://woocommerce.com/document/product-csv-importer-exporter/
Based on WooCommerce 11.2.2's import code and documentation. Not tested on a live store.