WooCommerce records what you sold something for. It has no field for what it cost you, which means it cannot report a margin on anything — and margin is the figure that decides which products are worth selling.
Adding a cost field is easy. Adding it so that your historical margins stay true is the part worth getting right, and it is where most approaches quietly fail.
Why a cost field on the product is not enough
The obvious approach: add a “cost” field to each product, and work out margin as price minus cost.
That works until a supplier raises their price. The moment you update the cost field, every order you have ever taken is re-costed at today’s figure. Last year’s margins change. The quarter you reported on moves. A product that was genuinely profitable in March becomes unprofitable in March, retrospectively, because of something that happened in November.
For a store that buys once and never re-orders, this never bites. For everyone else it makes year-on-year comparison meaningless, and it does so silently — nothing warns you that the past has been rewritten.
The fix: snapshot the cost onto the order line
Write the unit cost onto the order line as the order is created, and report from that stored figure rather than from the product.
The product field remains the place you maintain the cost. It is simply no longer the thing historical reports read. New orders pick up the current cost; old orders keep the cost that was true when they were placed.
The product carries today’s cost. The order line carries the cost that applied on the day.
That single distinction is what makes a margin report trustworthy over time. It is also why “cost of goods” cannot really be bolted on afterwards — orders taken before you started capturing it have nothing to read.
The cases that need a decision
Variations. A variable product may have one cost for every variation, or a different one per variation. Both are legitimate: a t-shirt in four colours usually costs the same, the same shirt in four sizes often does not. The workable arrangement is a cost on each variation, falling back to the parent product’s when the variation has none — so you set one figure for the simple case and override only where it differs.
Products with no cost set. A catalogue of several hundred will not be filled in overnight, and until it is, every uncosted product reports a 100% margin and flatters your profit. A store-wide fallback percentage — “if no cost is recorded, assume goods cost 45% of the sale price” — keeps the totals roughly honest while you work through the catalogue. It is an estimate and should be treated as one, but it is a far better default than pretending those items cost nothing.
Refunds. When an item comes back, its cost comes back too — you have the stock again. A refund should remove both the revenue and the cost of goods for the returned line, not the revenue alone. Getting this wrong makes returns look far more expensive than they are.
What counts as cost. Keep it to the landed cost of the item: what you paid your supplier, plus inbound shipping and duty if you want the fuller picture. Payment fees, advertising and your own shipping costs are real, but they are not cost of goods — they come off separately, or you will double-count them. That split is covered in true net profit.
What you can do once you have it
Cost per order line is a small piece of data that unlocks a surprising amount:
- Margin per product, which almost never ranks the same way revenue does. The best-selling item is frequently not the most profitable one, and no revenue report will ever tell you that.
- Margin per category, which is how you decide what to expand.
- Break-even ROAS, which is
1 ÷ contribution margin. Without cost of goods there is no margin, and without margin, a return on ad spend cannot be judged — see WooCommerce ROAS. - Profit by month, rather than revenue by month.
- Whether a discount code is viable. A 20% coupon on a 30% margin takes two thirds of the profit of every order it touches. That is sometimes worth it, but it should be a decision rather than a surprise.
Getting it in your dashboard
Vantage Dashboard adds a cost field to the pricing tab of simple products and to each variation, and takes a snapshot of the cost onto the order line as the order is created, so historical margins do not move when a supplier price does. A variation with no cost of its own falls back to the parent’s, and a store-wide percentage covers products that have not been costed yet.
From there it reports margin by product, profit by month, and profit after advertising, in your own WordPress admin.
Two honest limits. Cost of goods is an Ultimate feature, not part of the free version. And costs are entered per product rather than imported in bulk — fine for a focused catalogue, tedious for a thousand SKUs. If that is you, say so before you buy; it is the kind of thing that gets built when enough people ask for it.
Everything Ultimate includes is listed on the Vantage Dashboard page. If you would rather look than read, the live demo has margin by product on a store whose costs are already recorded.

