Merchgain
EN
Available now
Next, in this order
  • FrançaisFR
  • ItalianoIT
  • PortuguêsPT
  • NederlandsNL

A language appears here once its pages are written. Nothing on this site is machine-translated, except the German and Spanish pages, which no native speaker has reviewed yet.

Install freeInstall
← All answers

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.

Group
Where the data is missing
Source
R — behavior of WooCommerce core
Code
OFF
Updated

The short answer

New orders stop recording any cost, from that minute. That gap cannot be filled in later, because the cost is recorded at the moment of sale.

The costs already stored stay where they are. Switching the feature off deletes nothing, and while it is off WooCommerce leaves stored costs alone, even when you edit or refund an old order. What you lose is the time the feature stays off.

What WooCommerce actually does

With the feature off, WooCommerce skips everything that reads or writes a cost. The product editor hides the Cost of goods field, new order lines get no cost, and the code that saves a cost for a product, an order or an order line does not run at all. We checked this in the WooCommerce source (10.3.0 and 11.2.1) and measured it on 10.3.0: the stored values survived.

So the risk is not the switch. It is everything that happens while the feature stays off:

  • every order placed in that time has no cost on its lines;
  • a refund issued in that time gets no cost on its lines either, so the cost of the returned goods is never taken back out.

After you switch it back on, a refund on one of those orders fills its lines with today’s product cost—the same mechanism described in a refund changed my historical profit.

What to do about it

If you have to switch it off, for testing or because the field is not right for your store:

  1. Export the report to CSV first. While the feature is off, the report screen shows only the way to switch it back on.
  2. Keep the gap short. Orders and refunds from that time have no recorded cost, and what the goods really cost then can never be added.
  3. Switch it back on before normal sales resume, and expect the orders from the gap to show up as revenue with no cost.

How Merchgain reports it

While the feature is off, Merchgain shows a setup screen instead of the report, with a link to the switch. That screen does not say “nothing to see here”. It says what leaving the feature off costs: new orders record no cost at all, the gap cannot be filled in later, and those orders can only be estimated from today’s costs.

A setup screen that only reassured you would be worse than none. The price of a long gap is paid quietly, weeks before anybody opens the report.

See this on a real report

Doesn't match what you see in your store? Email us—we read every message. contact@merchgain.com