Stockrows

Guides · Free tools

Diese Seite auf Deutsch

WooCommerce stocktake: count sheet, differences and stock import

Drop your shop's product export, get a stock count sheet, enter what you counted, and download a file for WooCommerce's importer that corrects the stock. Free, with no sign-up. Your file stays on your computer.

Step 1: drop your product export

This tool needs JavaScript, which is switched off in this browser. It runs on this page only and sends nothing.

No file yet? Make it in your shop first, as the steps below show, or try the tool with a sample export.

How it works: Drop the product CSV file that your shop's own export makes, and get a stock count sheet to print or to fill in. Enter what you counted, and see every difference, a report of the count, and a small file that WooCommerce's own importer applies to correct the stock.

Your file stays on your computer. This page reads it in your browser and makes the list and the files there. The file is not uploaded, stored or tracked: the page sends nothing of yours anywhere while you use it. Once the page has loaded, it works with your internet connection switched off. Only the sample buttons need the connection, to fetch their made-up file from this site.

When and how to count

Many shops count their whole stock once a year, at the year's end. Others count a shelf or a category each week. The job is the same each time: write down what is really there, compare it with what the shop believes, and correct the shop. Our guide to the year-end stock count walks through the whole day, with what goes wrong in practice and the rules in Germany, Austria and Switzerland.

How to export the products from WooCommerce

  1. In your WordPress admin, go to Products → All Products and select Export at the top.
  2. Leave Which columns should be exported? empty to export all columns. Or choose at least ID, Type, SKU, Name, Stock and Parent, and the attribute columns if you sell variations.
  3. Leave Which product types should be exported? empty, so that variations come too. To count only a part of the shop, choose a category under Which product category should be exported?.
  4. Select Generate CSV. Your browser downloads a CSV file whose name starts with wc-product-export- and the date. Drop it in the box above, and keep it: it is the record of what the shop held before the count.

If your admin is in another language, the file's column names are in that language too. The tool reads the column names of WooCommerce's translations into more than 40 languages, and the file it makes for the importer uses the English names, which WooCommerce's importer matches in every language.

What the tool does with each row

Which products are on the list
Every product and every variation for which the shop counts stock: the rows whose Stock cell in the export holds a number. A product for which the shop counts no stock, such as a voucher or a download, is left off, and the page names each one. To have it counted, switch on Track stock quantity for this product in the product's Inventory tab and export again.
Variations
Each variation that has its own stock is a row of its own, named with its attributes, such as "T-shirt - L". Where the shop counts one stock on the product for all its variations, the product has one row and its variations have none: count all of them together on that row.
Rows with no count
A row with no number is not counted. It is listed apart in the differences, it is never read as zero, and the import file leaves its stock as it is. So you can count one shelf today and the next tomorrow.
Numbers as people type them
Spaces are ignored, so 12 and 1 200 are read as 12 and 1200. A word or a number with a unit is marked as not readable. A count below zero is read but not taken, and so is a number above 999,999, such as a barcode scanned into the wrong cell, unless the shop itself holds a stock of that size for the product. Each counts as not counted until you correct it. 1.234 could be a decimal or a thousand: the page does not guess, and asks you to type 1234, or 1.2340 in a shop that counts parts of a piece.
Stock with parts, such as 2.5
WooCommerce counts whole pieces unless a plugin lets it count parts. If your export holds such numbers, a count may have them too, with a point or a comma. The import file writes them with a point, which the importer reads in every shop.
Stock below zero
A shop that takes backorders can hold a stock such as -2. The list shows it as the shop has it. Count what is really there: a count is 0 or more.
Products without a SKU, and a SKU that stands twice
The list names a product without a SKU by its name, and the import file finds it by its ID. A SKU that two rows share is marked, the rows are told apart by their ID, and the import file finds each by its ID. Only a row that has neither, or an export without an ID column in which a SKU stands twice, can't be named in a file: you can still count it and see its difference, and the page tells you to correct that stock by hand. In an export without an ID column, two SKUs that a spreadsheet would write the same way get no count from a file: two that differ only by zeros in front, such as 00123 and 123, and two that are one number written two ways, such as 10.10 and 10.1, or 1,50 and 1,5 in a German spreadsheet. A spreadsheet saves both as the same text, and the file could then mean either product: the page marks both rows, and you type their counts into the page. The same holds where a count list comes back without its ID column.
What the import file holds
Only the rows whose count differs from the shop's stock, with ID and Stock, and in front a column named "Guard (do not import)". The importer finds each product by its ID and changes only the columns the file has, so prices, names, SKUs and everything else stay as they are, also a SKU that you changed in the shop since the export. There is one case in which the importer takes an ID for another product: a shop that still holds the hidden marks of a product import that broke off. That is why step 5 hands out a check file first, and the count's file only after it: an import that runs to its end takes those marks off. Only where the export had no ID column are the columns SKU and Stock, and no other. And with Update existing products ticked a row that matches no product is skipped, not created. The file's first column, Guard (do not import), is matched to nothing, and with the box ticked WooCommerce does not read it. It holds the same value in every row: a SKU from your export, or the word import-guard where the export has no SKU fit for it. It is there for an import without the tick: WooCommerce's importer then looks the row's first value up as a SKU, finds that product, and skips the row. Without that column it would make a new product for every row, named "Import placeholder for" and the ID. Where the value is no SKU of your shop, it still makes one such product, for the first row. We tried that too. The file never holds an empty Stock cell, because an empty cell would switch stock management off for that product: a count of nothing is written as 0. WooCommerce sets "in stock" or "out of stock" from the new number itself.
Files from Excel in German
The tool reads files with commas or semicolons between the values, a decimal point or a decimal comma, quoted values with commas and line breaks inside, and the byte order mark at the start. If Excel shows the whole count list in one column, choose Semicolons under "Format of the files" and download it again.

How we know: the rules above come from the source code of WooCommerce 11.3.1's own exporter and importer, and we ran this tool's file through that importer in a test shop of 3,027 products and variations, in English and in German: each of the rows that differed got the counted number, no other product changed, and in the counted products nothing changed but the stock and "In stock?". We also broke off a product import in that shop on purpose: without the check file the counts then went to other products, and after the check file each went to its own. Your shop's version or a plugin can still behave differently, which is why step 2 of the import tries one product first.

Questions

Do I have to close the shop while I count?

No, but every sale during the count makes one number wrong. The export shows the stock at the moment it was made, and the import sets the number you counted: an order in between is not taken off it. A quiet hour is enough for a small shop. If orders came in, the shop's order list shows which products: count those again after the import.

Can I count only a part of the shop?

Yes. Export one category, or drop the whole export and count only some rows: rows with no number stay as they are in the shop.

Can two people count at once?

Yes. Print the list, or download it once for each person. Give the filled files back one after the other: a number from a file replaces the number in its row, and a row that a file leaves empty keeps what it had. If the same product lies in two places, add the two counts up before you enter them: the page does not add them, and marks a product that a file names twice with different numbers.

A product on the shelf is not on the list

Open "The rows left off the list" under step 2: it names every product of the export that the shop counts no stock for, and each variation that is counted on its product's row. A product that is not in the export at all is not in the shop, or was left out by the export's category choice.

Is the report enough for my books?

The report is a record of what the shop held, what you counted and when. What your accounts need beyond that is a question for whoever does them: this page gives no tax or legal advice.

The import says products were skipped, or imported

For the check file of step 5, "1 product was skipped" is the right answer: it matches no product on purpose. For the count's file, the right answer is "products updated", with the number of rows in the file. With the box Update existing products ticked, a row is skipped only if its product was deleted after the export or, in a file by SKU, has another SKU now. Our free CSV import checker reads a file as the importer does and lists what it would skip. The guide to updating stock in bulk shows the other ways to change many stock numbers at once.

If it says that all the products were skipped, or that a product was imported, the box Update existing products was not ticked. It is empty at every import. Without it WooCommerce updates nothing: it takes each row for a new product. If it only skipped rows, nothing in the shop changed: import the file again, with the box ticked. If it says "imported", it made a new product that your customers can see, with the stock from the file. Its name starts with "Import placeholder for"; where the file went by SKU it has no name of its own, and in our English test shop it was "Product". To remove it, go to Products → All Products, find it by that name, it is the newest product of the shop, and move it to the Trash. Then import the file again, with the box ticked.

The file's first column, Guard (do not import), is there so that the importer skips the rows when the box is forgotten, and makes no products. Do not rely on it: one new product can still appear, so read what the screen says.

The same count in a Google Sheet

This tool works on a file: an export before the count, an import after it. Stockrows is our own tool for the same count without a file. Besides its browser editor it comes as a Google Sheet: the sheet's menu pulls your products with their stock straight from the shop, you type the counted numbers over them, see every change in a preview, and send the corrected stock back with a click. A row whose stock moved in the shop since the pull is skipped and reported, not overwritten. The sheet takes whole numbers. Pulling is free; sending changes back is the paid part, and you can try it free for 7 days. See what the free part does.

The trial needs no card. The order page has the trial, the plans and how to order.

See a bulk price change work first, with nothing to install: open a demo WooCommerce shop in a new tab, on our free plugin's Change prices page, in about 20 seconds, with no sign-up and no keys (what to try).