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.
Or paste the file's text
No export at hand? See what the tool does with one:
The samples are made up: seven example products of no real shop, with a T-shirt in three sizes. The button fetches the sample from this site and reads it here, as it would read your own file.
No file yet? Make it in your shop first, as the steps below show, or try the tool with a sample export.
Step 2: your count list
Count on paper, or fill in the file's Counted column in Google Sheets or Excel, or type straight into the list below. The file always holds the numbers typed so far.
Before you count: count while the shop is quiet, and put aside the pieces that are sold but not yet sent: the shop has already taken them off its stock. More under When and how to count, lower on this page.
Step 3: enter what you counted
Type each number into its row, or give back the count list you filled in. A row with no number counts as not counted, never as zero: type 0 where the shelf is empty.
Because nothing is stored, the numbers you type live in this page only. Download the count list now and then: it holds what you have typed, and you can give it back to the page later.
Step 4: the differences
The report is the record of this count: every row of the list with the stock the shop held, the number counted, the difference and the result, then the totals, the export it came from and the time. Keep it with the export.
Step 5: correct the stock in the shop
What this import changes.
Make a backup first: a fresh product export of all columns is enough to put every stock back. If the shop sold anything since the export you dropped here, count those products again or correct them by hand.
First, import a check file. If an earlier product import in your shop broke off half way, by a closed tab or a timeout, it left hidden marks on products. While they are there, WooCommerce can take a row of the count's file for the wrong product and set that product's stock. The check file takes about a minute: it holds one row that matches no product, changes nothing in the shop, and an import that runs to its end takes such marks off.
- In your WordPress admin, go to Products → All Products and select Import at the top.
- Choose the check file, whose name is
woocommerce-import-check-file.csv. Tick Update existing products, and select Continue. - On the Column mapping screen, change nothing and select Run the importer.
- The screen must then say: Import complete! 1 product was skipped. That is the right answer: the shop is ready for the count's file. Import that file today, before any other product import.
If it says Failed to import 1 product, the box Update existing products was not ticked. Nothing in the shop changed: import the check file once more with the box ticked. If it says anything else, such as that a product was imported or updated, do not import the count's file: correct the stock by hand in the shop.
The file to import, and the steps for it, appear here once this box is ticked.
- Back up first. In your WordPress admin, go to Products → All Products → Export, leave every box empty and select Generate CSV. Keep that file: it holds every stock as it is now.
- Try one product first. Open the file to import in a plain text editor, not a spreadsheet, keep the first line and one product's line, and save it under a new name. Import that, as the next steps say, and check that this product, and no other, has the new stock. Then import the whole file.
- Go to Products → All Products and select Import at the top.
- Choose the file you downloaded, whose name starts with
woocommerce-stock-after-count. Tick Update existing products: the box is empty at every import, also right after the check file. Then select Continue. - On the Column mapping screen, the file's first column,
Guard (do not import), stands at Do not import: leave it there. Check thatIDandStockare each matched to the field of the same name. If your export had no ID column, the file has no guard column, and its two columns areSKUandStock. Then select Run the importer, and keep the page open until it has finished. - The screen must then say Import complete! and how many products updated: the number of rows in the file. That is the right answer. If it says that the products were skipped, or that a product was imported, the box Update existing products was not ticked: see what to do then. Otherwise open a few products, variations too, and check the stock.
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.
- Count while the shop is quiet. Every order between your export and your import moves the stock under your hands. Count outside opening hours, or pause the shop, and make the export just before you start.
- Count what is there, not what should be. Many shops count blind: the list shows no stock number, so nobody writes down what they expect to see. The list has a tick for that.
- Pieces that are sold but not yet sent still lie on the shelf, and the shop has already taken them off its stock. Put them aside before you count, or leave them out of the count.
- Import on the same day. The import sets each stock to the number you counted. The longer you wait, the more has been sold since.
How to export the products from WooCommerce
- In your WordPress admin, go to Products → All Products and select Export at the top.
- 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.
- 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?.
- 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
12and1 200are 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.234could be a decimal or a thousand: the page does not guess, and asks you to type1234, or1.2340in 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 wordimport-guardwhere 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).