Guide · Costs

How to preserve historical product costs in Shopify

Purchase costs change with every order you place with suppliers. In Shopify, a new cost replaces the old one on the product. Here is what is kept, what is lost, and how to keep a record of costs over time.

How Shopify stores costs

Each variant has a Cost per item field. According to Shopify's help:

  • the cost per item is recorded on each order when the order is created, which feeds profit reports;
  • changing the cost later does not change orders created before the change.

So the cost of what you sold is kept on the orders. The cost of what you still hold is the current value on the product: when you update it, the previous value is no longer on the product.

Why it matters for inventory value

Imagine a mug costing $6.00 on December 31. In January, a new purchase order arrives at $6.40 and you update the cost. If you value December 31 stock in February, using the product's cost gives $6.40 per unit: a value that was never true on December 31.

For one product it is a rounding error. For a catalogue with regular price changes from suppliers, it can move a closing figure enough for your accountant to ask questions.

Ways to keep a cost history

  1. Export the product CSV regularly. It includes the Cost per item column. Keep one file per month-end, named by date.
  2. Keep supplier invoices and purchase orders. They are the original source of costs, and what an auditor will ask for.
  3. Track cost changes in a spreadsheet when you edit them, with the date of change.
  4. Use a daily snapshot, which stores the cost of each variant every day without you doing anything.

A cost history per variant, every day

Illustration of StockLedger with sample data from a fictional store.

StockLedger saves the unit cost of each variant in every daily snapshot, and never rewrites it. Any recorded day shows the costs of that day, and on Unlimited the variant history draws the stock and the unit cost of a single variant over time.

It does not replace a costing method such as FIFO or weighted average, which use your purchase history: it gives your accountant the costs recorded in Shopify, dated and frozen.

This guide describes software features and general practice. It is not accounting, tax or legal advice: check with your accountant for your situation.

Start your inventory history today. Tomorrow it has a past.

Every day without a snapshot is a day you cannot look up later. Install StockLedger, and the first one is taken right away.

14-day free trial at launch · From $9/month · Billed by Shopify