Recording purchase prices on WooCommerce to track your margins

Entering your purchase prices on WooCommerce to track your margins

Yes, WooCommerce can now record the purchase price of each product, without a plugin: it is the “Cost of Goods Sold” feature, which you turn on in the settings. It shows the cost of each order. For detailed margin reports, a plugin is still useful. Here is how to do it, and how to choose.

In short

  • Margin = selling price minus purchase cost. Without the cost, you cannot know what you really earn.
  • The built-in feature is turned on in WooCommerce > Settings > Advanced > Features.
  • A cost field appears on each product and each variation, and each order shows its total cost.
  • WooCommerce’s CSV import and export handle this field.
  • No margin reports in Analytics yet: for that, YITH WooCommerce Cost of Goods.

Why record your purchase prices

Revenue minus costs equals profit: everyone knows that. Yet many shops follow their sales closely and their costs from afar. The result: a product that sells very well can earn almost nothing, and nobody notices.

Recording the purchase cost of each product lets you:

  • know the real margin on each sale;
  • spot the products that sell well but earn little;
  • set your prices and promotions knowing your floor;
  • estimate the value of your stock.

The built-in WooCommerce feature

Turning it on

  1. Go to WooCommerce > Settings > Advanced > Features.
  2. Tick Cost of Goods Sold.
  3. Save.

Entering the costs

  • Simple product: in the General tab of the product data, a new field holds the cost. Left empty, it counts as zero.
  • Variable product: the cost entered on the product is the default value for all its variations. You can then set a different cost on a specific variation.
  • Lots of products: export your products to CSV, fill in the cost column in a spreadsheet, then import them again. The built-in import and export tool handles this field.

What you get

On each order, a “Cost” column shows the cost of each line (unit cost multiplied by quantity), with a total cost next to the order total. Refunds are taken into account.

A good point: the cost is stored in the order at the time of the sale. If your supplier raises their prices and you update the product, your past orders keep the cost of the time.

Its limit

According to the WooCommerce documentation, these costs do not appear in Analytics, the statistics tool, yet. You see the cost order by order, but no margin report by product, category or period.

For margin reports: YITH WooCommerce Cost of Goods

If you want to steer your margins, the YITH WooCommerce Cost of Goods plugin (premium) complements WooCommerce very well:

  • a cost per product and per variation, with additional costs (transport, packaging…);
  • a dashboard of costs and profits across the whole catalog;
  • sales reports you can filter by date, product, category, tag or custom field;
  • the choice to include taxes, shipping costs and payment fees or not;
  • a stock report with the potential profit of products in stock, exportable to CSV;
  • import of costs already entered in another plugin.

We have installed it for several clients, and its support has always replied quickly when a setting raised a question.

Careful if you use both: WooCommerce warns that two cost totals can then appear on orders. Choose a single source of truth for your costs.

Which cost should you enter?

Stay consistent from one product to the next. Usually, you enter the purchase price excluding tax, and add the costs that come with each unit, such as transport from the supplier. Your accountant can tell you which calculation fits your accounts.

Need a hand?

Turning on the feature, importing your costs from a supplier file, or building a margin table suited to your business: we can take care of it.

Let’s talk about your shop

Contents
Read next

More articles that may help you

Illustration au trait : un casque audio, une onde sonore, un stockage de fichiers et le symbole d’un flux RSS

Self-hosted podcast: moving a podcast to WordPress and Cloudflare R2

Read the article →
Illustration au trait : une patinoire vue de dessus, des sapins et un écran d’état avec deux pastilles

Ice rink and skating trail: a municipality’s custom WordPress plugin

Read the article →
WooCommerce e-invoicing: how to make your shop compliant

WooCommerce e-invoicing: how to bring your shop into compliance

Read the article →

A project, a question?

Free quote · Refundable deposit · Balance only if satisfied · No commitment