Stockrows

Guides · Free tools

Diese Seite auf Deutsch

Remove WooCommerce sale prices in bulk

The sale is over, and products still carry a sale price? Drop your shop's product export, and get a small import file that ends the sale, now or on a day you pick. Free, with no sign-up. Your file stays on your computer.

Choose how the sale ends, then drop your product export

This tool needs JavaScript, which is switched off in this browser. It runs on this page only and sends nothing.

No file yet? Make it in your shop first, as the steps below show, or try the tool with a sample export.

Or end the sales straight in your shop, with no file

Needs your shop's REST API keys. Reading is free; saving is free for 7 days, then paid.

Stockrows is our own tool for that. Its browser editor is a page of this site that reads your products straight from your shop, in your browser, up to 20,000 of them in one go (with up to 50,000 of their variations; for a larger shop, you choose a part to read, such as a category), and lists each product and variation it read that still has a sale price, with ending each sale proposed. Untick the sales you want to keep, check the list of changes, and save the rest in one go. Ending a sale in the browser editor clears its sale price and its start and end dates, so the product shows its regular price and stays so.

You need your shop's address and a pair of its REST API keys; the page shows where to make them. Reading your products is free. Saving to your shop is free for 7 days from your first save, with no card; after that, saving is the paid part.

How it works: Drop the product CSV file that your shop's own export makes, choose to end the sale now or on a day you pick, and check the rows before you download. Then import a small file that WooCommerce's own importer applies to the same products, variations included.

Your file stays on your computer. This page reads it in your browser and makes the new file there. The file is not uploaded, stored or counted: the page sends nothing of yours anywhere while you use it. Once the page has loaded, it works with your internet connection switched off. Only the sample buttons need the connection, to fetch their made-up file from this site.

How to export the products from WooCommerce

  1. In your WordPress admin, go to Products → All Products and select Export at the top.
  2. Leave Which columns should be exported? empty to export all columns. Or choose at least ID, SKU, Name, Type, Regular price, Sale price, Date sale price starts and Date sale price ends.
  3. Leave Which product types should be exported? empty, so that variations come too. To end the sale of only some products, choose a category under Which product category should be exported?.
  4. Select Generate CSV. Your browser downloads a CSV file whose name starts with wc-product-export- and the date. Drop it in the box above.

If your admin is in another language, the file's column names are in that language too. The tool reads the column names of WooCommerce's translations into more than 40 languages, and the file it makes uses the English names, which WooCommerce's importer matches in every language.

What the tool does with each row

End the sale now
The file empties the Sale price of each row on sale, and the product shows its regular price as soon as the import has run. Where the row has a sale date, the file clears it too, so that no old start or end date stays behind. A sale that was planned to start later is cleared as well, and so is a sale whose end date has passed.
End the sale on a day
The file sets Date sale price ends to 23:59:59 on the day you choose, as WooCommerce's own product screen does with an end date, and leaves the sale price as it is. Until then the sale runs; at that moment WooCommerce puts the regular price back by itself, with its own scheduled task. A shop with very few visits may run that task a little later, since WordPress runs scheduled tasks when the site is visited. A sale that already ends on or before that day keeps its own date, and a sale that starts after that day is left out: it would never run.
Variations
Each variation has its own sale price, and the tool ends it like any other. The own row of a variable product has no price in the export, so it is left out: WooCommerce updates its price range from its variations.
Rows with no sale price
They are left out of the file, so nothing about them changes.
Matching the products
The file names each row by its ID, exactly as your shop has it, so that the importer updates the same products. No column of the file is matched to the SKU: with ID and SKU both in a file, WooCommerce's importer writes the file's SKU onto the product, which fails for two products that share a SKU, and puts back a SKU that you changed since the export. In one case the importer takes an ID for another product: in a shop that still holds the marks of a product import that broke off half way. That is why the page hands out the check file first. If your export has no ID column, the file names each row by its SKU instead; a row without a SKU, or whose SKU stands on more than one row, is then left out and counted: end that sale by hand. We tried these files in the Import screen of WooCommerce 11.3.1 in a test shop, also after an import that we broke off on purpose. The file has no Type, Parent or Name column, and no price but the sale price: the importer changes only the columns the file has, so regular prices, names, stock and everything else stay as they are. With Update existing products ticked, a row that matches no product is skipped, not created. The file's first column, Guard (do not import), is matched to nothing, and with the box ticked WooCommerce does not read it. It holds the same value in every row: a SKU from your export, or the word import-guard where the export has no SKU fit for it. It is there for an import without the tick: WooCommerce's importer then looks the row's first value up as a SKU, finds that product, and skips the row. Without that column it would make a new product for every row, named "Import placeholder for" and the ID. Where the value is no SKU of your shop, it still makes one such product, for the first row. We tried that too. A file by SKU has no such column.
Why a cleared date reads 0000-00-00 00:00:00
WooCommerce's importer leaves a sale date as it is when its cell is empty. So, to clear a date, the file writes 0000-00-00 00:00:00, the value WooCommerce itself takes as no date. Don't open the file in a spreadsheet and save it again: the spreadsheet could change that value, or a SKU.
Prices like 12,50
The tool reads files with a decimal point or a decimal comma, with commas or semicolons between the values, quoted values with commas and line breaks inside, and the byte order mark that WooCommerce's export puts at the start. The file to put the sale back writes each sale price with a decimal point, such as 12.50: WooCommerce's importer reads a point as the decimal mark in every shop.

How we know: the rules above come from the source code of WooCommerce 11.3.1's own exporter and importer, and we ran both files of this tool through that importer in a test shop, set to a decimal comma and in English and German: the sales ended as the preview showed, nothing else changed, no product was created, and the second file put every sale back as it was. Your shop's version or a plugin can still behave differently, which is why step 2 of the import tries one product first.

Questions

The page says the file isn't a product export

The tool looks for the column names of WooCommerce's own product export. An order export, a customer list or another plugin's file has other columns. Make the file again under Products → All Products → Export. If you opened the export in Excel and saved it again, save it as CSV UTF-8.

Can I end only some of the sales?

Yes: export only that category (step 3 above), and drop that file. The tool ends every sale in the file it gets.

The import says products were skipped, or imported

For the check file, "1 product was skipped" is the right answer. For the file to import, the right answer is "products updated", with the number of rows in the file. With the box Update existing products ticked, a row is skipped only if its product was deleted after the export or, in a file by SKU, has another SKU now. Our free CSV import checker reads a file as the importer does and lists what it would skip. See also what to check when an import does not update products.

If it says that all the products were skipped, or that a product was imported, the box Update existing products was not ticked. It is empty at every import. Without it WooCommerce updates nothing: it takes each row for a new product. If it only skipped rows, nothing in the shop changed: import the file again, with the box ticked. If it says "imported", it made a new product that your customers can see, with the sale columns from the file. Its name starts with "Import placeholder for"; where the file went by SKU it has no name of its own, and in our English test shop it was "Product". To remove it, go to Products → All Products, find it by that name, it is the newest product of the shop, and move it to the Trash. Then import the file again, with the box ticked.

The file's first column, Guard (do not import), is there so that the importer skips the rows when the box is forgotten, and makes no products. Do not rely on it: one new product can still appear, so read what the screen says.

A scheduled sale did not end by itself

Our guide to removing sale prices in bulk says what to check in the shop's scheduled tasks, and the other ways to take sale prices off: the product list's bulk edit, and a CSV file by hand.

When you change prices often

This tool makes a file for one sale. The next sale means a new export, a new file and a new import, and the import itself shows you no preview.

Stockrows is our own tool for that, and besides its browser editor it comes as a Google Sheet: a menu in the sheet pulls your products straight from the shop and pushes the regular and sale prices you change back to it, with no file to export or import. To end a sale in the sheet, you empty the sale prices, see every change in a preview before it is sent, and each push is kept in a log, with the old values on an undo sheet to put back. Unlike the browser editor, the sheet neither shows nor changes a sale's start and end dates. See how it works, or read the guide to updating prices from Google Sheets.

It has a 7-day free trial with no card. The order page has the trial, the plans and how to order.

The free trial starts in your browser, with no sheet and no Google account: a page of this site reads your products from the shop, and you save the prices and stock you change straight back to it. The Google Sheet is the second way, with the same trial.

See sales end first, with nothing to install. One button opens our editor on its sample shop of made-up products. It lists every product and variation that still has a sale price, with ending each sale proposed: untick a sale to keep it, check the list of changes, and save. Ending a sale clears its sale price and its start and end dates, so the product shows its regular price again. No sign-up, no keys.

End the sales on the sample shop

Rather see it inside WordPress? Our free plugin's demo shop opens in a new tab on WordPress Playground, WordPress.org's sandbox. It changes a category's prices by a percentage, sale prices too, but it does not end sales. What to try there

Opens the same editor on your own shop, with your shop's address and REST API keys. Reading is free; saving is free for 7 days, then paid.