Black Friday All Access $999 $399 lifetime or 30% off any plugin with Ends in -- See deals
WooCommerce Guides October 29, 2026 11 min read

How a WooCommerce Import Cost of Goods CSV Updates Hundreds of Products at Once

How a WooCommerce Import Cost of Goods CSV Updates Hundreds of Products at Once

Quick Answer: WooCommerce Import Cost of Goods CSV

A WooCommerce import cost of goods CSV lets you update the cost of hundreds of products in one upload instead of editing them one at a time. The whole thing hinges on a detail most guides skip: the cost column in your file has to carry one exact name, or WooCommerce will not know where to put the numbers. Get that name right and the native importer does the rest by matching each row to its product by SKU.

  • Match by SKU: every row finds its product through the SKU column.
  • Name the cost column exactly: one specific header makes it map on its own.
  • Turn on update: tell the importer to update existing products, not create new ones.

The exact column name is below, and the checker further down tells you in one click whether your own file is ready to upload.

A supplier email lands on a Monday. Prices have changed, and attached is a fresh list: four hundred items, new costs beside each one.

You have two ways to get those numbers into your store.

The slow way is to open each product, find the cost field, type the new figure, save, and repeat. Four hundred times. A full afternoon, maybe two, and a real chance of a typo somewhere in the middle that you never catch.

The fast way is to upload the supplier file more or less as it arrived, and let WooCommerce write all four hundred costs at once.

That fast way is what this walkthrough is about. It is not complicated, but it turns on one small detail that decides whether the upload works or quietly does nothing.

What You Need Before You Start

Three things have to be in place. None of them takes long.

First, your products need SKUs. The import matches each row in your file to a product by its SKU, so every product you want to update must already have one, and your file must list it.

Second, you need the cost field itself. WooCommerce has no place to store a product cost on its own, so that field comes from the Cost of Goods for WooCommerce plugin, where CSV import is part of the Pro feature set.

WooCommerce Cost of Goods Plugin

Third, you need your supplier list saved as a CSV file, with a header row at the top. That header row is where the one important detail lives.

The One Column Name That Makes It Work

Here is the detail everything depends on.

The column that holds your costs must be named, exactly, this:

Meta: _alg_wc_cog_cost

Name it that, and WooCommerce maps it to the cost field on its own during the import. You do not have to pick anything from a dropdown. It just lands in the right place.

Name it anything else, Cost, Price, Cost of Goods, Cost Price, and the importer treats it as an unknown column. Your costs sit in the file, the upload reports success, and not one product changes.

This is the single most common reason a cost import appears to run yet leaves everything untouched.

So the rule is simple. The header can hold whatever other columns you like, but the cost column wears that exact name, down to the capital M, the colon, the space, and the underscores.

What a Ready File Looks Like

Your file does not need many columns. Two do the real work.. the SKU to find each product, and the cost to write into it.

A clean, minimal file looks like this.

SKU Meta: _alg_wc_cog_cost
CANDLE-01 10.00
MUG-02 12.00
TOTE-03 9.00

You can keep extra columns from the supplier, a product name, a category, a note, and the import will ignore what it does not recognize. Only the SKU and the correctly named cost column need to be right.

Running the Import, Step by Step

Once the file is ready, the upload itself takes a couple of minutes through the tool WooCommerce already gives you.

Step 1: Open the Product Importer

In your WordPress admin, go to Products, then Import. This is the native WooCommerce importer, the same one used for products, now carrying the cost field the plugin added.

Step 2: Upload Your CSV and Turn On Update

Choose your file, and before you continue, tick the option to update existing products. This is the setting that tells WooCommerce to change products you already have, rather than create a pile of new ones.

Step 3: Leave the ID and SKU Columns Mapped

On the column mapping screen, make sure the SKU column is mapped to SKU, and do not set the ID column to “Do not import.” With update turned on, the importer needs those to find the right products. The correctly named cost column maps itself.

Step 4: Run It and Check One Product

Start the import, let it finish, then open a single product and confirm its cost updated. One spot check tells you the whole batch landed where it should.

Update Your Whole Catalog From One File

The Cost of Goods for WooCommerce plugin adds the cost field that lets you bulk-import thousands of product costs through WooCommerce’s own importer, matched by SKU. A supplier price change becomes a two-minute upload. Join 15,000+ stores using it, rated 4.5 stars, with a 14-day money-back guarantee.

By Hand or by File: What You Save

For a handful of products, typing costs in by hand is fine. The file approach earns its keep the moment the catalog grows or the supplier updates prices often.

Aspect Entering Costs by Hand Importing a CSV
Time for 400 products Hours of clicking and saving One upload, a few minutes
Typo risk High, and hard to spot Low, the file is the source
Repeat updates Start over every time Reuse the same file layout
Best for A few products, rare changes Large catalogs, frequent price moves

If you only ever adjust a product or two, the hand method and the bulk edit cost of goods in WooCommerce screen may be all you need. The import is for the day the whole list changes at once.

Check Your File Before You Upload

Most failed imports trace back to that one column name. So before you upload anything, check the header row.

Paste the first line of your CSV, the row of column names, into the checker. It tells you whether your SKU column is there and whether the cost column carries the exact name WooCommerce needs, and it hands you the correct header if something is off.

CSV Header Checker

Paste the first row of your CSV file, the header row with the column names separated by commas, and this tool checks whether it is ready for a cost import.



If the checker turned your header green, your file is ready for the importer. If it flagged the cost column, rename it to match and check again before you upload.

Common Mistakes That Make an Import Fail Quietly

A cost import rarely throws a loud error. It usually just does nothing, which is harder to notice. These are the reasons why.

  • The cost column has the wrong name

The one covered above, and the most frequent by far. Anything other than the exact meta name goes unmapped.

  • Update existing products was left off

Without it, the importer may try to create new products instead of updating your real ones, which is the opposite of what you want.

  • SKUs do not match

If a SKU in the file does not exist in your store, that row has nothing to attach to. A quick scan for typos in the SKU column saves a lot of confusion.

  • The ID column was set to not import

With updates turned on, the importer leans on the ID and SKU to find products. Switching ID off can break the match.

Variations, and Products That Have No Cost Yet

Two situations come up often enough to be worth a word before you upload.

The first is variable products. A size or a color can each cost you a different amount, and the import can carry those separate costs when each variation has its own SKU and its own row in the file.

The cost column name stays the same on every row, and WooCommerce routes each figure to the matching variation.

Treating each option as its own line is the same discipline covered in the variable product cost guide linked below.

The second is products that have never had a cost set. The import does not care whether a product already had a cost or started blank.

As long as the SKU matches and the cost column is named correctly, the number lands either way.

So a first-time bulk fill and a routine update run through the exact same steps, which is part of why the woocommerce import cost of goods csv approach scales so well as a store grows.

One caution worth keeping. Because the import writes over whatever cost was there, a stray value in the file overwrites a good one in the store.

The file is now the source of truth, so it pays to glance down the cost column for blanks or obvious slips before you upload.

Keeping Your Imported Costs Accurate

An import is a snapshot. It is correct the day you run it and starts aging the moment a supplier changes a price again.

The good news is that the file you built once is reusable. When new costs arrive, drop them into the same layout, with the same SKU and cost columns, and run the same import. The second time takes a fraction of the first.

Once the costs are in and current, the rest of your profit tracking rests on honest numbers.

Each order shows a real margin, and views like the WooCommerce profit report and your margin alerts finally reflect what you truly pay.

The whole point of a clean cost import is that everything built on top of it can be trusted.

Related Resources

Turn a Supplier Price List Into Updated Costs

The Cost of Goods for WooCommerce plugin lets you import thousands of product costs through WooCommerce’s own tool, matched by SKU, so a new supplier file becomes a quick upload instead of an afternoon of typing. Join 15,000+ stores using it, rated 4.5 stars, backed by a 14-day money-back guarantee.

FAQs WooCommerce Import Cost of Goods CSV

How do I import cost of goods into WooCommerce from a CSV?

Save your supplier list as a CSV with a SKU column and a cost column named exactly Meta: _alg_wc_cog_cost, then upload it through Products, Import, with update existing products turned on.

The importer matches each row to a product by SKU and writes the cost into the field the Cost of Goods for WooCommerce plugin adds.

What should the cost column be named in the CSV?

Exactly Meta: _alg_wc_cog_cost, with that capital letter, colon, space, and underscores. Named that way, it maps to the cost field on its own during import.

Any other name, such as Cost or Cost of Goods, is treated as an unknown column, which is why the costs appear not to change.

Why did my WooCommerce cost import run but change nothing?

Almost always the cost column was named something other than the exact meta name, so it never mapped to the cost field. The import reports success while leaving every product untouched.

Rename the column to Meta: _alg_wc_cog_cost and run it again. Checking the header first avoids the whole problem.

How are products matched during the import?

By SKU. Each row in your file is matched to the product that shares its SKU, which is why every product you want to update needs a SKU both in the store and in the file.

Keep the ID column mapped as well, since the importer uses it alongside SKU when updating existing products.

Is there a plugin that imports product costs into WooCommerce by CSV?

Yes. Cost of Goods for WooCommerce is available on WordPress.org and adds a cost column to WooCommerce’s own importer, so you can upload costs in bulk and match them to products by SKU.

That makes updating a whole catalog from a supplier file a matter of minutes.

used in this guide

Bulk Price Editor

Update hundreds of prices in seconds, not hours. Pay once, use it on every store you run.

all access · lifetime

The plugins behind most of what we write about.

A lot of the posts here reference WPFactory plugins because that's what we build with. All Access gets you every plugin we make, on as many sites as you run. Pay once. Own it.

lifetime, once
$ 499 once
vs. $199 per plugin lifetime, pays back at your 3rd plugin
  • Every WPFactory plugin, current and future
  • Unlimited sites, no per-site caps
  • Lifetime updates, no renewals
  • 30-day refund, no questions asked