Answers about costs, profit, and margin in WooCommerce
Each answer has its own page, so you can link straight to it. Many of them are about WooCommerce itself, not about Merchgain.
Getting the cost data in
- How do I switch on Cost of Goods Sold in WooCommerce?
The cost field is a WooCommerce feature that ships switched off. Where the switch is, what it starts recording, and why nothing is filled in backwards.
- How do I fill in product costs without clicking through 500 products?
WooCommerce imports costs from CSV and sets one cost on many products at once. Which route to use, and where to start so the report is useful after one evening.
- Why doesn't the cost of goods show up in WooCommerce Analytics?
WooCommerce records the cost of goods on every order, but no Analytics report reads it. Where the core shows the cost, and how to get profit and margin from it.
- Does Google Automated Discounts need the cost of goods from my WooCommerce store?
Google asks for the cost of each product before it discounts it in Shopping ads. How the WooCommerce cost gets into the feed, and what else the setup needs.
- How do costs work on variable products and variations?
A variation inherits its parent's cost unless it has its own. The rarely seen additive flag, the inheritance rule, and what should count as a missing cost.
How the numbers are made
- How is margin calculated, and why is it not the same as markup?
Margin is profit divided by revenue; markup is profit divided by cost. The same product gives 40% one way and 66.7% the other.
- What counts as revenue in the profit report?
Net line totals of sold items after discounts, without tax or shipping. Which WooCommerce Analytics figure to compare it with, and why the two still differ.
- Which order statuses are counted in the report?
Completed, processing and refunded. Why refunded has to be in the list, and why leaving it out turns a fully refunded order into minus its own value.
- Which month does a refund belong to?
The month the refund was issued, not the month of the sale. A September sale refunded in November leaves September alone and shows as negative in November.
- Why do the category totals add up to more than the summary?
A product in three categories is counted in all three. Why WooCommerce has no primary category, and why inventing one would be worse than the overlap.
Where the data is missing
- My product genuinely costs zero, so why is it listed as missing a cost?
WooCommerce saves a cost of zero as no cost at all, so a free sample and a product with no cost entered end up as the same blank in the database.
- What about orders placed before I filled in the costs?
They have no cost recorded, so their revenue counts and their profit does not. What the coverage line is for, and why no plugin can fill that history in later.
- I issued a refund and my historical profit changed. Why?
Creating a refund makes WooCommerce recalculate the cost of every line on the original order from today’s product cost. Core behavior, and not reversible.
- What happens if I switch Cost of Goods Sold back off?
New orders stop recording costs, and that gap cannot be filled in later. Costs already stored stay put, even if you edit or refund an old order while it is off.
- I have orders in euros and dollars. What happens to them?
They are named in a warning and left out of the report. No exchange rates are applied, because one total in several currencies looks right and is not.
- My costs are in another plugin. Why does the report show them as missing?
Cost plugins store their values in their own fields or tables, not in the WooCommerce core field. Why reading them anyway would make the numbers uncheckable.
- Can the report show profit for orders placed before I entered my costs?
Items sold before a cost was recorded get an estimate from today's product cost, kept separate from recorded figures. How it works and when it misleads.
Running it in your store
- Does it work with High-Performance Order Storage?
Yes, and with classic post storage too. Order line items live in the same tables under both layouts, which is exactly where the cost values are.
- Who can see the profit report?
Anyone with the capability WooCommerce uses for its own reports. Why the report has its own menu item instead of sitting inside the WooCommerce submenu.
- Does any of my data leave my server?
No account, no license check, no telemetry, no outbound connection of any kind. What that means concretely, and how to verify it yourself in five minutes.
- Why can the numbers be up to an hour old, and what does Recalculate do?
Results are cached for an hour. Saving a product or an order in WooCommerce clears the cache at once; changes made outside it need the button.
- How far back does the report reach?
As far back as your orders go—no window, no cap. What ends the history is the cost data, which starts the day the feature went on and is never back-filled.
- Can an AI assistant read my profit reports?
Read-only abilities on WordPress 6.9 or later: profit summary, products sold at a loss and products without a cost. Who can call them, and where the figures go.
Something here doesn't match what you see in your store? Email us—we read every message.
Cost of Goods Sold · How profit is calculated · Margin vs markup