Stockrows

Guides

Diese Anleitung auf Deutsch

Year-end stock count in a WooCommerce shop: the method, and the rules in Germany, Austria and Switzerland

A stock count has four parts: write down what the shop believes, count what is there, compare the two, and correct the shop. This guide walks through them for a WooCommerce shop, then lists what goes wrong in practice, and ends with a short part on the rules: who has to count at the year's end, for which day, and what to keep.

This guide is not legal or tax advice. Its legal part describes Germany, Austria and Switzerland only, because that is where the word "Inventur" comes with a legal duty that many of our readers ask about. It gives the general rule as we read it at the official sources named at the end on 29 November 2026. Exceptions exist, and what applies to your shop depends on its legal form, revenue and profit: ask your tax adviser. If your shop is in another country, the method below still works, and the rules are a question for your accountant.

The count, step by step

Our free tool, WooCommerce stocktake: count sheet, differences and stock import, does each of these steps. It needs no sign-up, and your file stays on your computer: the page reads it in your browser and uploads nothing.

Before you start

1. Export the products

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, and leave Which product types should be exported? empty, so that variations come too. Select Generate CSV. Your browser downloads a file whose name starts with wc-product-export-.

Make the export just before you start counting, and keep the file: it is the record of what the shop held before the count.

In the tool this is Step 1: drop your product export. Drop the file on Drop the CSV file here.

2. Print or share the count list

Step 2: your count list has one row for each product and each variation for which the shop counts stock, with its ID, SKU and name and an empty Counted column.

Products for which the shop counts no stock, such as a voucher or a download, are left off the list, and the page names each one.

3. Count

Count what is there, not what should be. Where a shelf is empty, write 0. If the same product lies in two places, add the two counts up before you enter them. Two people can count at once: print the list, or download it once for each person.

4. Enter the counted numbers

Under Step 3: enter what you counted, type each number into its row, or give back the count list you filled in (Or drop the filled count list here), also several files one after the other. A row with no number counts as not counted, never as zero.

Because the page stores nothing, the numbers you type live in that page only. Download the count list now and then: it holds what you have typed so far.

5. Read the differences

Select Show the differences. Step 4: the differences shows the rows that differ, the rows that match, the rows not counted, and the numbers the page can't read or does not take, each with its reason. Such a number counts as not counted until you correct it.

Check a large difference before you accept it: count again, look in the second storage place, look at open orders. A difference is more often a counting mistake than a loss.

Download the report (CSV) is the record of the 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 and the count lists. What your accounts need beyond that, such as values, is a question for whoever does them.

6. Import the corrections

Under Step 5: correct the stock in the shop, the page first says what the import changes. Then it asks for two imports, in this order:

  1. Import the check file first. Select Download the check file. Its name is woocommerce-import-check-file.csv. Go to Products → All Products, select Import at the top, choose the check file, tick Update existing products, select Continue, change nothing on the Column mapping screen and select Run the importer. The screen must then say Import complete! 1 product was skipped. That is the right answer. The file holds one row that matches no product and changes nothing in the shop. Why it comes first: a product import that once broke off half way, by a closed tab or a timeout, leaves hidden marks on products, and while they are there WooCommerce can take a row of the count's file for the wrong product. An import that runs to its end takes the marks off. If the screen says anything but "1 product was skipped", follow what the tool's page says for that answer, and do not import the count's file.
  2. Tick I imported the check file, and the screen said "1 product was skipped". Only then does the page show the file to import and the steps for it.
  3. Back up. Make a fresh product export of all columns and keep it: it holds every stock as it is now.
  4. Select Download the file to import. Its name starts with woocommerce-stock-after-count. It holds only the rows whose count differs from the shop's stock, with the columns ID and Stock, and in front a column named "Guard (do not import)", which WooCommerce does not import: leave it in the file. Only if your export had no ID column are the columns SKU and Stock, and no other.
  5. Try one product first. Open the file in a plain text editor, not a spreadsheet, keep the first line and one product's line, save it under a new name, import that as the next two steps say, and check that this product, and no other, has the new stock.
  6. Go to Products → All Products and select Import at the top. Choose the file, and tick Update existing products: the box is empty at every import, also right after the check file. Then select Continue.
  7. On the Column mapping screen, the file's first column, Guard (do not import), stands at Do not import: leave it there. Check that ID and Stock are each matched to the field of the same name. Select Run the importer, and keep the page open until it has finished.
  8. The screen must then say Import complete! and how many products updated: the number of rows in the file. If it says that the products were skipped, or that a product was imported, the box Update existing products was not ticked. Skipped rows changed nothing: import the file again with the box ticked. An imported row made a new product named "Import placeholder for" and a number, which customers can see: the tool's page says how to remove it. Otherwise open a few products, variations too, and check the stock.

Import on the same day, and import the count's file before any other product import. The import sets each stock to the number you counted. It does not add or subtract. The longer you wait, the more has been sold since.

The file changes the stock and nothing else. Because it holds no SKU column, prices, names and SKUs stay as they are, also a SKU that you changed in the shop since the export.

What goes wrong in practice

A count by file has limits, and these are the ones that bite on the day.

Sales during the count

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: afterwards the shop shows one piece more than lies on the shelf. A quiet hour is enough for a small shop. If orders did come in, the shop's order list shows which products: count those again after the import, or correct them by hand.

Products without a SKU, and SKUs the shop can't tell apart

A count list without SKUs is slow, because the people counting must know each product by its name. The tool 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, and the rows are told apart by their ID.

It gets harder only in an export without an ID column. There, a row with no SKU, and a SKU that stands twice, can't be named in a file: you see the difference and correct that stock by hand in the shop. And two SKUs that a spreadsheet would write the same way take 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. The page marks both rows, and you type their counts into the page.

So export all columns, and the ID comes with them.

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.

If the variations are missing from the list altogether, a product type was probably chosen at the export. Leave that box empty and export again.

Stock kept in parts of a piece

WooCommerce counts whole pieces unless a plugin lets it count parts, such as 2.5 metres of cloth. If your export holds such numbers, a count may have them too, with a point or a comma, and the import file writes them with a point. In a shop that counts whole pieces, the page does not take a count with parts, and says why.

Take care with 1.234: it 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.

An empty Stock cell

This is the mistake that costs the most. WooCommerce's importer does not read an empty Stock cell as "leave it" or as zero: it switches stock management off for that product. The product then counts as in stock, whatever lies on the shelf.

So a stock file for the importer must never hold an empty Stock cell. If you build the file yourself in a spreadsheet, delete the rows you did not count instead of leaving the cell empty, and write 0 where nothing is there. The tool's import file keeps to this: it holds only the rows that differ, never an empty Stock cell, and a count of nothing is written as 0.

We read this in the source code of WooCommerce 11.3.1's importer and checked it in a test shop. Your shop's version or a plugin can behave differently, which is why one product is tried first.

The same count in a shared Google Sheet

The tool above works on a file: an export before the count, an import after it. Stockrows is our own tool for doing the same in a Google Sheet, which several people can open at once. What the free part of the sheet does.

The guide to updating stock for many products has every step, from the copy of the sheet to the push.

What to know before you choose it

The free trial starts in your browser, with no sheet and no Google account: a page of this site reads your products from the shop, and you save the prices and stock you change straight back to it. When that page clears a sale price, it also clears that sale's start and end dates. The Google Sheet is the second way, with the same trial.

The rules in Germany, Austria and Switzerland, in short

Once more: this part is no legal or tax advice. It says what the texts named under Sources say, and no more.

Germany

Who has to count. Every merchant ("Kaufmann") must keep books and draw up an inventory for the end of each financial year (sections 238 and 240 of the Commercial Code, HGB). The same holds for commercial companies, and a GmbH counts as one, whatever its size (section 6 HGB, section 13 of the GmbH Act).

Who does not. Sole traders with no more than 800,000 euros of revenue and no more than 80,000 euros of net income on two closing dates in a row need not apply these rules (section 241a HGB). The tax code has its own duty for trading businesses above 800,000 euros of turnover or 80,000 euros of profit, and it starts only after the tax office has given notice (section 141 of the Fiscal Code, AO). A business that is under no duty to keep books, and keeps none, may work out its profit as income minus expenses (section 4(3) of the Income Tax Act); the year-end inventory duty is addressed to merchants and to those who must keep books. Whether your shop is among the exempt is a question for your tax adviser.

For which day. The inventory is for the end of the financial year, 31 December when the financial year is the calendar year. The Commercial Code allows a count on another day in two ways: a count moved to a day in the last three months before or the first two months after the year's end, rolled forward or back to the date by a proper method (section 241(3) HGB), and a running count through the year where another proper method makes sure the stock can be stated by kind, amount and value without a count at the date (section 241(2) HGB). The sections we read name no number of days around the date within which a count "at the date" has to happen. The tax administration has guidelines of its own for income tax, which are no statute and may say more. Their official site refused us, so we did not read them, and this guide names no number of days: ask your tax adviser which days are open to you, and on what conditions.

What to keep. Inventories are kept for ten years, counted from the end of the calendar year in which the inventory was drawn up (section 257 HGB, section 147 AO). Booking vouchers are kept for eight years. The law names the inventory and the documents needed to understand it. It is common practice to date the count lists, have the people who counted and checked sign them, and keep them with the inventory. We read no official text that sets this out for count lists as such, so ask your adviser what they want to see.

Austria

These are the words of the federal government's business portal, usp.gv.at. We could not open the text of the laws themselves, the Commercial Code (UGB) and the Federal Fiscal Code (BAO): their official site refused us.

Businesses that must keep accounts draw up an inventory for the end of each financial year. Companies such as a GmbH always must; sole traders and partnerships do once their revenue is above 700,000 euros two years running, or above 1,000,000 euros once. A business that records income and spending only is, in the portal's words, not obliged to carry out a stock count, but a trading business then keeps a record of goods received. The count is a physical one close to the date; a running count, and a count moved to within three months before or two months after the year's end, are allowed. The portal names no number of days for "close". Accounting records, inventories among them, are kept for seven years from the end of the calendar year they belong to.

Switzerland

From the Code of Obligations on Fedlex, the federal law site, as of 1 October 2026.

Sole traders and partnerships with at least 500,000 francs of revenue in the last financial year, and all legal persons, must keep full accounts (Art. 957(1)), and the balance sheet's items must be evidenced "by an inventory or in another way" (Art. 958c(2)). Smaller sole traders and partnerships need only keep account of income, spending and their assets (Art. 957(2)). The articles we read set no number of days around the balance-sheet date. Books and booking vouchers are kept for ten years from the end of the financial year (Art. 958f(1)).

A checklist for the day

  1. Ask your adviser: do I have to count, and on which days may I?
  2. Fix the day and who counts; put aside what is sold but not sent.
  3. Export the products, all columns, all product types. Keep the file.
  4. Print or share the count list, blind if you like.
  5. Count. Write 0 where nothing is there.
  6. Enter the numbers, read the differences, count large ones again.
  7. Download the report; file the count lists with date and names.
  8. Import the check file, and see "1 product was skipped".
  9. Make a fresh export as a backup, try one product, then import the whole file.
  10. Check again the products that sold during the count.
  11. Keep the export, the count lists and the report with your records.

Sources

All read by us on 29 November 2026, each at its official site.

Related guides