From 5ad7e0b249a5047f3219a5d33455c3b3b9d3e181 Mon Sep 17 00:00:00 2001 From: MrDarkRoot Date: Tue, 27 Oct 2026 21:23:50 +0700 Subject: [PATCH 1/3] docs(marketing,#323): add search-intent price-overwrite guides Five merchant articles, a keyword evidence table, a claims audit, a measurement note, and a publication manifest. Publication stays blocked: this repository has no approved content destination. The guides describe WordPress.org WriteLeash 0.2.2 as it is listed. Restricted-agent and stock-on-grant behavior from #312 stays labeled unpublished. No plugin runtime, readme, or SVN change. --- docs/marketing/323-seo-content/README.md | 44 ++++ .../imported-sale-price-not-showing.md | 142 +++++++++++++ ...store-sale-prices-overwritten-by-import.md | 147 ++++++++++++++ .../restrict-woocommerce-price-changes.md | 133 ++++++++++++ .../undo-woocommerce-bulk-price-edit.md | 190 ++++++++++++++++++ .../articles/woocommerce-price-history.md | 171 ++++++++++++++++ .../marketing/323-seo-content/claims-audit.md | 60 ++++++ .../323-seo-content/keyword-evidence.md | 56 ++++++ docs/marketing/323-seo-content/measurement.md | 33 +++ .../323-seo-content/publication-manifest.json | 78 +++++++ 10 files changed, 1054 insertions(+) create mode 100644 docs/marketing/323-seo-content/README.md create mode 100644 docs/marketing/323-seo-content/articles/imported-sale-price-not-showing.md create mode 100644 docs/marketing/323-seo-content/articles/restore-sale-prices-overwritten-by-import.md create mode 100644 docs/marketing/323-seo-content/articles/restrict-woocommerce-price-changes.md create mode 100644 docs/marketing/323-seo-content/articles/undo-woocommerce-bulk-price-edit.md create mode 100644 docs/marketing/323-seo-content/articles/woocommerce-price-history.md create mode 100644 docs/marketing/323-seo-content/claims-audit.md create mode 100644 docs/marketing/323-seo-content/keyword-evidence.md create mode 100644 docs/marketing/323-seo-content/measurement.md create mode 100644 docs/marketing/323-seo-content/publication-manifest.json diff --git a/docs/marketing/323-seo-content/README.md b/docs/marketing/323-seo-content/README.md new file mode 100644 index 00000000..2205ad72 --- /dev/null +++ b/docs/marketing/323-seo-content/README.md @@ -0,0 +1,44 @@ +# SEO content for issue #323 + +Status of this directory on 27 October 2026: **publication BLOCKED**. + +These files are the reviewable content set for +[issue #323](https://github.com/MrDarkRoot/WriteLeash/issues/323). +They are original merchant guides for accidental WooCommerce price overwrites. +They are not a live site, and they are not the WordPress.org listing. + +## What is here + +| File | Role | +| --- | --- | +| [keyword-evidence.md](keyword-evidence.md) | Queries, sources, dates, volume, confidence | +| [claims-audit.md](claims-audit.md) | What the articles may say about WriteLeash and WooCommerce | +| [measurement.md](measurement.md) | Attribution plan. Missing meters are `NOT_AVAILABLE` | +| [publication-manifest.json](publication-manifest.json) | Slugs, metadata, live-URL status | +| [articles/](articles/) | Five articles, each able to stand alone | + +## Publication + +No approved destination exists in this repository. + +- GitHub Pages for `MrDarkRoot/WriteLeash` returned HTTP 404 on 27 October 2026. +- The repository has no blog, MDX site, Hugo, Astro, or other content pipeline. +- [docs/launch-v0.2.md](../../launch-v0.2.md) leaves the publish decision with the founder. +- This change does not create an external account, does not commit to WordPress.org SVN, and does not edit plugin runtime code. + +A reviewer can read the Markdown locally. Do not emit the JSON-LD templates until a page has a real canonical URL and a real `datePublished`. + +## Claim boundary used by every article + +The installable plugin is WordPress.org WriteLeash **0.2.2** (listing checked 27 October 2026). It is a price Preview / conflict / History / eligible Undo tool. It does not change stock. It does not document a staff or AI lock. + +[Pull request #330](https://github.com/MrDarkRoot/WriteLeash/pull/330) is merged on the GitHub default branch and is not the directory download. That branch certifies compatibility as pairs: WordPress 7.0 up to but not including 8.0 with WooCommerce 10.0 up to but not including 12.0, or WordPress 6.7 up to but not including 7.0 with WooCommerce 9.0 up to but not including 10.0. Cross pairs are refused. The articles say this so nobody installs 0.2.2 on the unreleased legacy pair. + +Restricted-agent and grant-scoped stock behavior is [issue #312](https://github.com/MrDarkRoot/WriteLeash/issues/312). It is not advertised here as something a merchant can turn on from the directory plugin. + +## Review + +1. Read [claims-audit.md](claims-audit.md) before editing an article. +2. Check that a recovery step still works without WriteLeash. +3. Keep the affiliation disclosure in the first screen of each article. +4. Do not add search-volume numbers. The evidence table marks volume `UNKNOWN` unless a dated source states a number. diff --git a/docs/marketing/323-seo-content/articles/imported-sale-price-not-showing.md b/docs/marketing/323-seo-content/articles/imported-sale-price-not-showing.md new file mode 100644 index 00000000..aba2ba94 --- /dev/null +++ b/docs/marketing/323-seo-content/articles/imported-sale-price-not-showing.md @@ -0,0 +1,142 @@ +--- +title: "Why an imported WooCommerce sale price can be saved and still not show" +slug: imported-sale-price-not-showing +meta_description: "If the variation editor shows the sale and the shop shows the regular price, do not import prices again. Resync one product before you touch the file." +h1: "Why an imported WooCommerce sale price can be saved and still not show" +intent: "Separate a stored sale price from a stale variable-product price range, so a display bug is not repaired by another price import." +failure_family: "Import overwrite, misread as a missing sale" +affiliation: "WriteLeash is our product. This guide is not an independent review." +canonical_status: UNPUBLISHED +date_revised: 2026-10-27 +--- + +# Why an imported WooCommerce sale price can be saved and still not show + +**WriteLeash makes this guide.** We publish the [WriteLeash](https://wordpress.org/plugins/writeleash/) plugin. The checks below are WooCommerce admin steps. WriteLeash does not refresh a variable product's price range, and it should not be the tool you reach for when the editor already shows the right sale. + +This failure looks like an overwrite. The shop, or the variable product's price range, still shows the regular price after a CSV import. The expensive mistake is to import a second price file. If the sale is already stored on the variation, a second file can replace it. [Restoring sale prices](restore-sale-prices-overwritten-by-import.md) is the other article. Use this one first to see which failure you have. + +## A report from November 2025 + +On 25 November 2025, a store imported about 1,000 products with variations through the WooCommerce CSV importer. The file included SKU, Sale price, sale dates, and Stock. Each variation showed the sale price and the dates. The variable product on the shop still showed the regular price. A manual Update on the product made the sale appear. The report is [Variable product sale prices not showing after CSV import](https://wordpress.org/support/topic/variable-product-sale-prices-not-showing-after-csv-import/). + +The original poster had already rebuilt product lookup tables, cleared cache, and synced variations. The sale still did not appear until a manual Update. WooCommerce support then suggested **Products > All Products > Bulk actions > Edit**, then **Apply**, then **Update** with no field changes. They also named `wp wc product lookup regenerate --force` if the host has WP-CLI. The WordPress.org thread was closed without a later confirmation that those steps were run. The same report on [r/woocommerce](https://www.reddit.com/r/woocommerce/comments/1p67r2v/variable_product_sale_prices_not_showing_after/) includes a search-retrieved follow-up that a bulk edit with no change worked for them. + +Two days later, [another r/woocommerce thread](https://www.reddit.com/r/woocommerce/comments/1p7pld9/imported_sale_prices_but_theyre_not_showing/) describes the same split: the backend showed the imported sale prices, the frontend did not, and saving the products again made the sale register. A comment suggested **WooCommerce > Status > Tools** and regenerating product lookup tables. + +Direct fetches of those Reddit URLs from this research environment returned HTTP 403 on 27 October 2026. The thread text was retrieved through search on the same day. The WordPress.org thread is the one to trust if the two ever disagree. + +This article did not re-run the import on WooCommerce 10 or 11. Try one product before you apply a resync to the catalog. + +## Confirm the sale is stored + +Open the variation, not the variable parent. + +The [variable product guide](https://woocommerce.com/document/variable-product/) says each variation has its own regular price and its own optional sale price. Variations without a price do not show in the store. The parent can show a price range built from those variations. The products-list [bulk editor](https://woocommerce.com/document/bulk-editing-products/) says it cannot edit the complexities of variable products. Typing a sale into the parent's bulk-edit Price field is the wrong repair. + +On one affected variation, check: + +1. Regular price is present. +2. Sale price is strictly below that regular price. +3. If sale dates are set, today's date in the store timezone falls inside them. The [CSV schema](https://woocommerce.com/document/product-csv-importer-exporter/) says a start date uses the start of that day and an end date uses the end of that day. A blank date means no date, not "leave the old date," when that column was imported. +4. The variation is enabled and published with the parent. + +If the sale field is empty, you do not have this display bug. The import cleared or never wrote the sale. Go to [restore sale prices a CSV import overwrote](restore-sale-prices-overwritten-by-import.md). + +If the sale field is filled and the shop is wrong, keep going. Do not upload another price CSV. + +## Resync one product, then the batch + +The product Update is what the original report says worked. The other steps were offered on that thread, or in a search-retrieved Reddit comment, and were not confirmed there. They are not a ranked guarantee for every host. + +1. Edit the variable product and press **Update** without changing the variation prices. That is what made the sale appear for the original report. +2. If you have many parents, the support reply suggested selecting them on **Products > All Products**, choosing **Edit**, pressing **Apply**, changing nothing, and pressing **Update**. Do a small batch first. The bulk editing guide warns that a large page of products can strain the server. This no-change Update is a resync attempt. It is not permission to set a new Price or Sale value while you are there. A blank **Set to regular price decreased by** removes sale prices. The WordPress.org thread does not confirm that this batch step was run. +3. The original report says **Tools → Product lookup tables → Rebuild** had already been tried, together with a cache clear and a variation sync, and the sale still did not appear. A Reddit comment suggested **WooCommerce > Status > Tools** again. Do not treat lookup regeneration as the fix for that store. This research did not execute the tool. +4. If you use WP-CLI, the support reply named `wp wc product lookup regenerate --force`. The WordPress.org thread does not confirm that command was run, and the poster had already rebuilt lookup tables in the admin without the sale appearing. Run `wp help wc product` on that server and confirm the subcommand exists before you use it. Do not paste it from this article into a host where `wp wc` is a different package. + +Afterward, check three variations: one that should be on sale, one that should not, and one with a future sale start date. Clear any full-page cache only after the editor and a logged-out browser agree. A cache can keep serving the old range after WooCommerce has already updated. + +Also confirm you did not import the parent row's price and expect it to become the variation price. The customer-facing range comes from the variations. + +## Why this is not an undo problem + +Nothing in the November 2025 report says the sale price was deleted. The data was on the variation. The parent range and the lookup used by the shop had not caught up until a later save. Overwriting the sale to "fix" the range can create the real data loss the other articles are about. + +If a later import did clear the sale, you need the pre-import export. A resync cannot invent a price that is no longer stored. A [dated price export](woocommerce-price-history.md) is how you tell those two cases apart. + +## What WriteLeash does here, and what it does not + +**Directory plugin, checked 27 October 2026.** [WriteLeash 0.2.2](https://wordpress.org/plugins/writeleash/) does not regenerate lookup tables and does not make a stored sale appear on the shop. Its listing also says previewed prices are planned stored prices, not guaranteed shopper prices. A correct stored sale that the theme or a cache still hides is outside the plugin. + +WriteLeash is relevant only if you decide to change prices on purpose: + +- You can set a sale, calculate one from the reviewed regular price, or clear a sale to blank rather than zero. Sale dates stay as they are. Stock and orders stay as they are. +- Preview and approval are separate. A nonblank sale target has to stay below the regular price. +- If you are still unsure whether the current stored sale is right, do not run a WriteLeash job to "refresh" it. The step that made the sale appear in the November 2025 report was updating the product. A lookup-table rebuild had already failed for that store. +- Eligible Undo restores prices WriteLeash applied, for 30 days by default on the listing. It does not restore a CSV import, and it does not fix a stale range. +- Requirements on the listing: WordPress 7.0 or newer (7.0.1 and 7.1.2 exercised) and WooCommerce 10.0 through 11.x. Published core simple products and published variations of published core variable products, base currency, up to 1,000 selected products per new job in the tested configuration. Parent prices are not edited directly. + +**Not the download.** [Pull request #330](https://github.com/MrDarkRoot/WriteLeash/pull/330) on the default branch certifies pairs: WordPress 7.0 up to but not including 8.0 with WooCommerce 10.0 up to but not including 12.0, or WordPress 6.7 up to but not including 7.0 with WooCommerce 9.0 up to but not including 10.0. Do not install 0.2.2 onto the legacy pair. Nothing in that pair rule makes WriteLeash a cache tool. + +## FAQ + +### The variation sale price is correct and the shop is wrong. Do I import the CSV again? + +No. Importing again can write over the sale you just confirmed. In the November 2025 report, updating the product made the sale appear after a lookup-table rebuild had not. Update one variable product and recheck the shop. + +### The variation sale price is empty. Is this the same bug? + +No. The sale is not stored. Use the pre-import export and [restore the sale prices](restore-sale-prices-overwritten-by-import.md). + +### Does a no-change bulk Update edit variation prices? + +The [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) says the products-list bulk editor does not handle variable-product complexity. The November 2025 support reply still suggested a no-change Update as a resync. Do not type a new price into that form while you use it for this purpose. + +### Can WriteLeash force the shop to show the sale? + +No. The 0.2.2 listing does not regenerate product lookup tables. It also warns that a planned stored price is not a guaranteed shopper price. + +```json +{ + "@context": "https://schema.org", + "@graph": [ + { + "@type": "Article", + "headline": "Why an imported WooCommerce sale price can be saved and still not show", + "dateModified": "2026-10-27", + "description": "If the variation editor shows the sale and the shop shows the regular price, do not import prices again. Resync one product before you touch the file.", + "author": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" }, + "publisher": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" } + }, + { + "@type": "FAQPage", + "mainEntity": [ + { + "@type": "Question", + "name": "The variation sale price is correct and the shop is wrong. Do I import the CSV again?", + "acceptedAnswer": { "@type": "Answer", "text": "No. Importing again can overwrite the stored sale. In the November 2025 report, updating the product made the sale appear after a lookup-table rebuild had not. Update one variable product and recheck the shop." } + }, + { + "@type": "Question", + "name": "The variation sale price is empty. Is this the same bug?", + "acceptedAnswer": { "@type": "Answer", "text": "No. The sale is not stored. Restore it from the pre-import export." } + }, + { + "@type": "Question", + "name": "Does a no-change bulk Update edit variation prices?", + "acceptedAnswer": { "@type": "Answer", "text": "The products-list bulk editor is not the variation editor. A November 2025 support reply suggested a no-change Update as a resync. Do not type a new price into that form while using it for this purpose." } + }, + { + "@type": "Question", + "name": "Can WriteLeash force the shop to show the sale?", + "acceptedAnswer": { "@type": "Answer", "text": "No. WriteLeash 0.2.2 does not regenerate product lookup tables. Its listing says a planned stored price is not a guaranteed shopper price." } + } + ] + } + ] +} +``` + +Structured data template only. Do not emit it until this article has a public canonical URL. Add `datePublished` on that day. The affiliation above is required on the page. + +When you are ready to change stored prices on purpose, with a preview of the before and after, [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/) is the plugin maintained with this guide. It will not repair a stale shop range. diff --git a/docs/marketing/323-seo-content/articles/restore-sale-prices-overwritten-by-import.md b/docs/marketing/323-seo-content/articles/restore-sale-prices-overwritten-by-import.md new file mode 100644 index 00000000..51ff08e2 --- /dev/null +++ b/docs/marketing/323-seo-content/articles/restore-sale-prices-overwritten-by-import.md @@ -0,0 +1,147 @@ +--- +title: "How to restore WooCommerce sale prices a CSV import overwrote" +slug: restore-sale-prices-overwritten-by-import +meta_description: "A mapped WooCommerce CSV column is a write. Put sale prices back from the pre-import export, and set every other column to Do not import." +h1: "How to restore WooCommerce sale prices a CSV import overwrote" +intent: "Diagnose a sale price, sale schedule, or active price that changed during a product CSV update, then restore the previous values." +failure_family: "Import or plugin overwrite of sale prices" +affiliation: "WriteLeash is our product. This guide is not an independent review." +canonical_status: UNPUBLISHED +date_revised: 2026-10-27 +--- + +# How to restore WooCommerce sale prices a CSV import overwrote + +**WriteLeash makes this guide.** We publish the [WriteLeash](https://wordpress.org/plugins/writeleash/) plugin. Everything in the recovery section uses WooCommerce's importer and an export you already have, or a backup. You do not need the plugin to do it. + +The usual mistake is a stock or title update that also contained price columns. WooCommerce's [CSV importer](https://woocommerce.com/document/product-csv-importer-exporter/) updates rows that match by ID or SKU when **Update existing products** is on. A column WooCommerce recognizes is mapped for you. Unrecognized columns are not imported. In WooCommerce 11.2 and later, a GTIN, UPC, EAN, or ISBN column defaults to **Do not import** and is used only when both ID and SKU are blank. The mapping screen's control for "do not touch this" is **Do not import**. + +## What "blank" means in the official schema + +The schema does not say a blank Sale price means "keep the current sale price." It does say what blank means for neighboring columns: + +- **Date sale price starts:** blank means no start date. +- **Date sale price ends:** blank means no end date. +- **Stock:** blank disables stock management. + +So a spreadsheet that looks empty is not automatically a no-op. On the mapping screen, set Sale price, both date columns, and Regular price to **Do not import** unless that file is the source of truth for those fields. + +There is a second, documented way to clear a sale without a CSV. On **Products > All Products > Bulk actions > Edit**, the [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) says **Set to regular price decreased by** with a blank value or 0 removes the sale price. + +On a variable product, the variation bulk action is different again. The [variable product guide](https://woocommerce.com/document/variable-product/) says **Set sale prices to regular prices decreased by** replaces any existing sale price and saves immediately. Entering 0 clears sale prices. Blank, non-numeric, or negative input leaves existing sale prices unchanged for that action. A regular price of 100 and an entry of 20% stores a sale price of 80. + +## A one-row example + +Before the import, two simple products: + +| SKU | Regular price | Sale price | Sale dates | +| --- | --- | --- | --- | +| CAP | 24.00 | 18.00 | none | +| HOODIE | 80.00 | 64.00 | none | + +You export the catalog, edit stock quantities, and clear the Sale price cells because you are not running a sale in that sheet. The Sale price header is still in the file. You import with **Update existing products** and leave Sale price mapped. + +Treat that as a price write until a one-row test proves otherwise. The safe file for a stock-only update has no Sale price column, or that column is set to **Do not import**. Keep the original export. It is the restore file. + +A related clear can happen when the regular price moves. WooCommerce's current product data store, read from trunk on 27 October 2026, clears a sale price on a simple product or a variation when a save updates the regular or sale price and the sale price is greater than or equal to the regular price. Variable and grouped parents are outside that particular check because their customer price comes from children. Source: [`class-wc-product-data-store-cpt.php`](https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php). If you raised a sale or lowered a regular price into that overlap, restoring only the regular price does not put the sale back. Restore both columns from the known-good export. + +## Put the sale prices back + +1. Pause any sync, feed, or scheduled import that might run the same file again. Restoring prices and then letting the job repeat is how the overwrite returns. +2. Take the export from before the bad import. If you do not have one, export prices from a database backup restored on staging. Do not restore that backup over the live database if the store has taken orders since. Orders would roll back with the catalog. +3. Make a CSV with ID or SKU, Sale price, Date sale price starts, and Date sale price ends. Include Regular price when the regular price also changed. Delete every other column, or map those columns to **Do not import**. +4. On staging, or on one live SKU, run the import with **Update existing products**. +5. Open the product. Confirm the sale price is strictly below the regular price, and that the dates match the file. A sale that is not below the regular price does not behave as an active discount. +6. Check the shop page, not only the editor. If the editor shows the right sale and the shop still shows the regular price, stop importing. That is a different failure, covered in [why an imported sale price can be saved and still not show](imported-sale-price-not-showing.md). +7. Import the remaining rows in batches you can spot-check. + +The [CSV guide](https://woocommerce.com/document/product-csv-importer-exporter/) also says to back up and to test a small file before a large one, and to split files that are too big for the server. Read the importer's skipped-row report before you run the file again. + +A 2021 [r/woocommerce thread](https://www.reddit.com/r/woocommerce/comments/noey3k/is_there_an_easy_way_to_raise_all_the_prices_in/) shows the habit that leads here: export the price, edit it in a spreadsheet, import it. That works when the sheet is the source of truth. It overwrites whatever the sheet no longer contains. + +## Stop the next overwrite + +- Keep a dated export of ID, SKU, Regular price, Sale price, and both date columns before every import. +- Map price and date columns to **Do not import** on stock-only or title-only files. +- Give a supplier file its own staging test. Supplier headers rarely match WooCommerce's schema. The CSV guide's section on supplier files says to normalize them and to test one parent plus a few variations first. +- If a plugin syncs products from another store, a sheet, or a marketplace, read which fields it sends. A plugin that sends a full product payload can write prices even when you only changed stock in the source. This guide did not audit a named sync plugin. Pause the sync and compare one SKU before and after a run. +- Do not use a second import as a way to "refresh" a variable product whose variations already show the correct sale. Refresh and overwrite are different jobs. + +## What WriteLeash does here, and what it does not + +**Directory plugin, checked 27 October 2026.** [WriteLeash 0.2.2](https://wordpress.org/plugins/writeleash/) does not watch the CSV importer and does not undo an import. If the sale price is already gone, WriteLeash has no record of the old value unless WriteLeash itself wrote that price and the job is still eligible for Undo. + +What a later WriteLeash price change does, on the published listing: + +- You choose Regular price or Sale price. A regular-price change is specified to preserve the existing sale price and sale schedule. Set can add a first sale price. A discount can be calculated from each product's reviewed regular price. Clear makes the sale price blank, not zero, and keeps its dates. +- A nonblank sale target has to stay below the regular price. Clear and sale discounts use the reviewed regular price as their basis. +- Preview is a separate step from approval. If the stored price WriteLeash is about to change no longer matches the Preview, the newer value stays and the row is a conflict. That check is not a guard around the CSV importer. Another tool can still write before or after the job. +- Undo restores eligible prices WriteLeash applied, within 30 days by default on the listing. It does not restore an import. It does not reverse orders or other plugins' effects. WriteLeash creates no backup. +- Scope: published core simple products and published variations of published core variable products, base currency, up to 1,000 selected products per new job in the tested configuration. Stock, sale dates, and orders are not changed by those price operations. WordPress 7.0 or newer and WooCommerce 10.0 through 11.x, with 7.0.1 and 7.1.2 exercised. Not every 7.x release is claimed. + +**Not the download.** After merged [pull request #330](https://github.com/MrDarkRoot/WriteLeash/pull/330), the GitHub default branch certifies WordPress 7.0 up to but not including 8.0 with WooCommerce 10.0 up to but not including 12.0, or WordPress 6.7 up to but not including 7.0 with WooCommerce 9.0 up to but not including 10.0. Cross pairs are refused. The directory plugin does not advertise the legacy pair. Grant-scoped stock changes in [issue #312](https://github.com/MrDarkRoot/WriteLeash/issues/312) are not a 0.2.2 feature you can turn on from the listing. Version 0.2.2's changelog mentions disabled-by-default foundations for bounded delegated price authority and does not document a sale-price lock. + +For a price log that covers imports, you need a tool that was recording before the import. [How to keep a price history](woocommerce-price-history.md) explains that limit. + +## FAQ + +### Does a blank Sale price cell leave the current sale price alone? + +The [CSV schema](https://woocommerce.com/document/product-csv-importer-exporter/) does not say that. It does say a blank sale date means no date, and a blank Stock cell disables stock management. Set Sale price to **Do not import** unless you intend to write it, and test one SKU. + +### The variation shows the right sale, but the shop shows the regular price. Should I import again? + +No. Read [why an imported sale price can be saved and still not show](imported-sale-price-not-showing.md). A second price file can overwrite a sale that was stored correctly. + +### Will WriteLeash detect that a plugin changed the sale price? + +No. Conflict checks run on the price WriteLeash is applying, against the Preview. They do not monitor the importer or other plugins. WriteLeash does not undo those writes. + +### Can I set the sale back with bulk edit instead of CSV? + +Only if you know the exact sale price for every row. **Set to regular price decreased by** with a blank or 0 removes the sale price on the products-list screen. That is an easy second mistake. A CSV of the old sale prices is the cleaner restore. + +```json +{ + "@context": "https://schema.org", + "@graph": [ + { + "@type": "Article", + "headline": "How to restore WooCommerce sale prices a CSV import overwrote", + "dateModified": "2026-10-27", + "description": "A mapped WooCommerce CSV column is a write. Put sale prices back from the pre-import export, and set every other column to Do not import.", + "author": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" }, + "publisher": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" } + }, + { + "@type": "FAQPage", + "mainEntity": [ + { + "@type": "Question", + "name": "Does a blank Sale price cell leave the current sale price alone?", + "acceptedAnswer": { "@type": "Answer", "text": "The WooCommerce CSV schema does not say that. Set Sale price to Do not import unless you intend to write it, and test one SKU." } + }, + { + "@type": "Question", + "name": "The variation shows the right sale, but the shop shows the regular price. Should I import again?", + "acceptedAnswer": { "@type": "Answer", "text": "No. That can be a display or lookup sync problem. A second price file can overwrite a sale that was stored correctly." } + }, + { + "@type": "Question", + "name": "Will WriteLeash detect that a plugin changed the sale price?", + "acceptedAnswer": { "@type": "Answer", "text": "No. WriteLeash checks the price it is about to apply against its Preview. It does not monitor the importer or other plugins, and it does not undo those writes." } + }, + { + "@type": "Question", + "name": "Can I set the sale back with bulk edit instead of CSV?", + "acceptedAnswer": { "@type": "Answer", "text": "Only if you know the exact sale price for every row. The products-list option Set to regular price decreased by, with a blank or 0, removes the sale price. A CSV of the old sale prices is the cleaner restore." } + } + ] + } + ] +} +``` + +Structured data template only. Do not emit it until this article has a public canonical URL. Add `datePublished` on that day. The affiliation above is required on the page. + +If you want reviewed sale-price changes from here on, with a preview and eligible undo of the prices WriteLeash itself writes, the listing is [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/). It will not repair the import that already ran. diff --git a/docs/marketing/323-seo-content/articles/restrict-woocommerce-price-changes.md b/docs/marketing/323-seo-content/articles/restrict-woocommerce-price-changes.md new file mode 100644 index 00000000..be317dba --- /dev/null +++ b/docs/marketing/323-seo-content/articles/restrict-woocommerce-price-changes.md @@ -0,0 +1,133 @@ +--- +title: "How to stop staff or an AI agent from changing WooCommerce prices" +slug: restrict-woocommerce-price-changes +meta_description: "WooCommerce has no separate edit-price capability. Remove product-edit access, write-capable API keys, and application passwords you do not trust." +h1: "How to stop staff or an AI agent from changing WooCommerce prices" +intent: "Reduce who can write product prices, using WordPress roles, REST keys, and application passwords, without pretending a hidden field is a lock." +failure_family: "Staff or AI-agent price changes" +affiliation: "WriteLeash is our product. This guide is not an independent review." +canonical_status: UNPUBLISHED +date_revised: 2026-10-27 +--- + +# How to stop staff or an AI agent from changing WooCommerce prices + +**WriteLeash makes this guide.** We publish the [WriteLeash](https://wordpress.org/plugins/writeleash/) plugin. The controls below are WordPress and WooCommerce. You can apply them without WriteLeash. The plugin section says, plainly, that the version on WordPress.org today does not lock staff or agents out of price fields. + +WooCommerce does not ship a permission called "edit prices." The [roles and capabilities guide](https://woocommerce.com/document/roles-capabilities/) says a Shop Manager can manage products: create, edit, delete, and publish products, including categories and tags. A person who can edit a product can change its regular price and its sale price, in the editor, in Quick Edit, in bulk edit, and in any tool that acts as that user. + +An AI agent is the same problem when it holds that user's password, an application password, a WooCommerce REST key with write access, or a plugin that writes products on the agent's behalf. + +## What core actually gives you + +**Users > All Users** shows the role. Administrators and Shop Managers are the usual price writers. Customers are not. + +The roles guide does not offer a warehouse role that can edit stock and cannot edit prices. It points at third-party role plugins and says WooCommerce does not endorse any specific one. The same page says WooCommerce support does not cover third-party plugins. Hiding the price box with CSS, or unchecking a checkbox that only hides a panel, is not a test. Test the path you are worried about: + +- Quick Edit on **Products > All Products** +- Bulk actions > Edit, and the variation **Bulk actions** menu inside a variable product +- **Products > Import** with **Update existing products** +- A REST client using that user's credentials + +In May 2023, the author of User Role Editor answered [Restricting Shop Manager Role](https://wordpress.org/support/topic/restricting-shop-manager-role/). The store wanted to block CSV import and export and stop product deletion. The reply says `edit_products` is the capability checked both for adding a product and for editing one, and that WooCommerce may reinitialize the `shop_manager` role on a later activation. The suggested approach there is a copied role, not a one-time edit of the built-in role. That thread is about import and delete, not about a dedicated price capability. It still describes the constraint you are working inside. + +A 2020 thread, [Restrict shop admin from editing orders prices](https://wordpress.org/support/topic/restrict-shop-admin-from-editing-orders-prices/), is about order line prices, not catalog prices. WooCommerce support said there was no built-in feature to change the Shop Manager role and pointed at a role plugin. Do not read that reply as a catalog-price procedure. + +## Keys and passwords that write prices + +**WooCommerce > Settings > Advanced > REST API.** The merchant documentation is [WooCommerce REST API](https://woocommerce.com/document/woocommerce-rest-api/). A key's permission is Read, Write, or Read/Write. A Write or Read/Write key can change products, including prices, for whatever that integration does. Revoke keys you do not recognize. Reporting tools can use Read. The developer overview is [Getting started with the WooCommerce REST API](https://developer.woocommerce.com/docs/getting-started-with-the-woocommerce-rest-api/). + +**Application passwords.** WordPress documents them in [Application Passwords](https://developer.wordpress.org/advanced-administration/security/application-passwords/). An application password authenticates as that WordPress user. If the user is a Shop Manager, the client can do what a Shop Manager can do, including product edits. Revoke application passwords from each user's profile when a contractor, a script, or an assistant is done. The integration notes from when the feature shipped are in the [core post from 5 November 2020](https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/). + +There is no directory stat in this research for how often an agent overwrites a price. What is public, on 27 October 2026, is that several plugins advertise that an assistant can write prices: + +- [StoreEdit AI for WooCommerce](https://wordpress.org/plugins/storeedit-ai/) says you can ask an assistant to raise regular prices or put a category on sale, and that a connected assistant acts as its own account. +- [AddSynapse](https://wordpress.org/plugins/addsynapse-store-assistant/) says approved writes can include prices, sales, and stock. +- [AI Agent by SiteGround](https://wordpress.org/plugins/sg-ai-studio/) lists creating and updating WooCommerce products, including price and stock, among the agent's tasks. +- [Wpbingo AI Commander](https://wordpress.org/plugins/wpbingo-ai-commander-for-woocommerce/) lists bulk regular and sale price commands. + +Those sentences are their listings, not a security review and not a recommendation. If you connect one, read which WordPress user or key it uses, disconnect it when you are finished, and export prices first. An approval card inside a chat is only as good as the plugin's own enforcement. Keep a [price export](woocommerce-price-history.md) either way. + +## A practical cut-down + +1. List every Administrator and Shop Manager. Remove the role from anyone who only needs to view orders or pack shipments. +2. If someone must edit products but must not see the importer, the User Role Editor reply removed `import` and `export` on a copied role so those buttons disappear. That reply also said WooCommerce may rebuild `shop_manager` the next time WooCommerce is activated, so retest after that. A hidden button is not a block on REST or on a direct import URL. +3. Do not expect that copied role to block prices while `edit_products` remains. Price is part of editing the product. +4. Revoke unused REST keys and application passwords. +5. Before a person or an assistant runs a bulk price change, export ID, SKU, Regular price, Sale price, and the sale dates. Name the file with the date. Prefer staging for the first run. +6. After the run, open two products and compare them with the export. The [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) has no undo. The repair is in [how to undo an accidental bulk price edit](undo-woocommerce-bulk-price-edit.md). + +Custom code can block `set_regular_price` for a role. That is a development job, and it has to cover CSV, REST, Quick Edit, and bulk edit or it is only a visual block. This guide does not include that code. + +## What WriteLeash does here, and what it does not + +**The installable plugin does not restrict staff or agents.** Checked 27 October 2026, [WriteLeash 0.2.2](https://wordpress.org/plugins/writeleash/) is a preview, conflict check, history, and eligible undo tool for price changes made through WriteLeash. A Shop Manager can still use the normal product editor, bulk edit, and importer. A REST key with write access can still change prices. The 0.2.2 changelog says the release added disabled-by-default foundations for bounded delegated price authority. The public listing does not document a grant screen or a staff lock. Do not turn those foundations on from this article. They are not the control described below. + +If someone uses WriteLeash for a price change, they get a before-and-after Preview, a separate approval, and a conflict when the stored price changed after the Preview. Eligible Undo, 30 days by default on the listing, restores prices WriteLeash applied when the product still matches. It does not undo a price that person changed in WooCommerce itself. Requirements on the listing: WordPress 7.0 or newer, WooCommerce 10.0 through 11.x. Exercised WordPress points are 7.0.1 and 7.1.2. Stock, sale dates, and orders are not changed by those price operations. + +**Repository work that is not the directory download.** [Issue #312](https://github.com/MrDarkRoot/WriteLeash/issues/312) and the readme on the default branch after [pull request #330](https://github.com/MrDarkRoot/WriteLeash/pull/330) describe an opt-in restriction for one WordPress user: monitored WooCommerce write paths are denied outside a matching execution frame, and price or stock jobs for that user go through a grant with a frozen scope, a budget, and an expiry. The same text says this is not a firewall, not a sandbox, and not a universal agent-safe guarantee. It does not cover administrators who are not that grant actor, direct SQL, hostile plugins, unmonitored write paths, orders, refunds, coupons, or user-0 system cron. Stock undo is not supported. That behavior is not what the Install button served on 27 October 2026. This guide does not walk through issuing a grant. + +Compatibility on that unreleased branch is a pair: WordPress 7.0 up to but not including 8.0 with WooCommerce 10.0 up to but not including 12.0, or WordPress 6.7 up to but not including 7.0 with WooCommerce 9.0 up to but not including 10.0. Do not mix those bands, and do not expect 0.2.2 to implement the legacy pair. + +## FAQ + +### Can I let a Shop Manager edit stock but not prices? + +Not with a core capability. The [roles guide](https://woocommerce.com/document/roles-capabilities/) ties product editing to one manage-products grant. A role editor that only hides the price field still leaves Quick Edit, bulk edit, CSV, and REST to test. + +### Does removing the Import button stop price changes? + +No. It can stop one screen. Bulk edit, Quick Edit, and a write-capable REST key remain. + +### Is WriteLeash the way to lock an AI agent out of prices today? + +No. The published 0.2.2 listing does not provide that lock. Use roles, REST key permissions, and application passwords. Treat the grant work in issue #312 as unpublished relative to the directory. + +### If I do let someone bulk-edit prices, what limits the damage? + +Export first. On the products screen, Update is the write, and there is no documented undo. WriteLeash helps only when the change is made through WriteLeash: preview, a separate approval, conflict retention for a price that moved after preview, and eligible undo of prices it applied. + +```json +{ + "@context": "https://schema.org", + "@graph": [ + { + "@type": "Article", + "headline": "How to stop staff or an AI agent from changing WooCommerce prices", + "dateModified": "2026-10-27", + "description": "WooCommerce has no separate edit-price capability. Remove product-edit access, write-capable API keys, and application passwords you do not trust.", + "author": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" }, + "publisher": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" } + }, + { + "@type": "FAQPage", + "mainEntity": [ + { + "@type": "Question", + "name": "Can I let a Shop Manager edit stock but not prices?", + "acceptedAnswer": { "@type": "Answer", "text": "Not with a core capability. Product editing is one grant. Hiding the price field still leaves Quick Edit, bulk edit, CSV, and REST to test." } + }, + { + "@type": "Question", + "name": "Does removing the Import button stop price changes?", + "acceptedAnswer": { "@type": "Answer", "text": "No. Bulk edit, Quick Edit, and a write-capable REST key can still change prices." } + }, + { + "@type": "Question", + "name": "Is WriteLeash the way to lock an AI agent out of prices today?", + "acceptedAnswer": { "@type": "Answer", "text": "No. WriteLeash 0.2.2 on WordPress.org does not provide that lock. Use roles, REST key permissions, and application passwords." } + }, + { + "@type": "Question", + "name": "If I do let someone bulk-edit prices, what limits the damage?", + "acceptedAnswer": { "@type": "Answer", "text": "Export first. WooCommerce bulk edit has no documented undo. WriteLeash helps when the change is made through WriteLeash, with a preview, separate approval, conflict retention, and eligible undo of prices it applied." } + } + ] + } + ] +} +``` + +Structured data template only. Do not emit it until this article has a public canonical URL. Add `datePublished` on that day. The affiliation above is required on the page. + +[WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/) is useful when the people who may change prices do that work through a preview. It is not a role editor, and it is not the agent lock described in unpublished repository work. diff --git a/docs/marketing/323-seo-content/articles/undo-woocommerce-bulk-price-edit.md b/docs/marketing/323-seo-content/articles/undo-woocommerce-bulk-price-edit.md new file mode 100644 index 00000000..08364baf --- /dev/null +++ b/docs/marketing/323-seo-content/articles/undo-woocommerce-bulk-price-edit.md @@ -0,0 +1,190 @@ +--- +title: "How to undo an accidental WooCommerce bulk price edit" +slug: undo-woocommerce-bulk-price-edit +meta_description: "WooCommerce bulk edit writes prices on Update and documents no undo. Restore them from a CSV or backup, and do not reverse a percentage with itself." +h1: "How to undo an accidental WooCommerce bulk price edit" +intent: "Recover regular or sale prices after the products-list bulk editor or the variation bulk actions wrote the wrong numbers." +failure_family: "Accidental bulk price edit" +affiliation: "WriteLeash is our product. This guide is not an independent review." +canonical_status: UNPUBLISHED +date_revised: 2026-10-27 +--- + +# How to undo an accidental WooCommerce bulk price edit + +**WriteLeash makes this guide.** We publish the [WriteLeash](https://wordpress.org/plugins/writeleash/) plugin. The recovery steps below use WooCommerce itself. You do not need WriteLeash to follow them. The section near the end says what the plugin does and what it does not do. + +WooCommerce's own [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) tells you to select products, choose **Edit**, change the Price or Sale field, and press **Update**. That page does not describe an undo button. Once Update finishes, the new prices are the stored prices. + +There are still ways to get the old numbers back. They depend on an export, a backup, or arithmetic you can check. They are not a hidden undo command. + +## Two different bulk editors + +Use the screen you actually used. They do not write the same rows. + +**Products > All Products > Bulk actions > Edit.** This is the screen in the [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/). Its Price field offers: + +- Change to +- Increase existing price by a fixed amount or a percent +- Decrease existing price by a fixed amount or a percent + +Its Sale field offers Change to, Increase existing sale price, Decrease existing sale price, and **Set to regular price decreased by**. The same guide says this screen works best with simple products and cannot edit the complexities of variable, grouped, or other complicated products. + +**A variable product > Variations > Bulk actions.** This is a different menu, documented on the [variable product page](https://woocommerce.com/document/variable-product/). Those actions apply to the variations of that one product. WooCommerce's current page says the change saves immediately. For **Set sale prices to regular prices decreased by**, a regular price of 100 and an entry of 15 stores a sale price of 85. An entry of 20% stores 80. Entering 0 clears existing sale prices. Blank, non-numeric, or negative input leaves existing sale prices unchanged for that action. Variations with no regular price are skipped. The sale price cannot go below zero. + +Quick Edit is a third path. The bulk editing guide says it is the same kind of form for one product, and it shows that product's current values. It also writes when you update. It is not an undo of a previous bulk edit. + +## A concrete simple-product example + +Store currency with two decimal places. Three published simple products, no sale prices: + +| SKU | Regular price before | After Decrease existing price by 20% | +| --- | --- | --- | +| HOODIE | 80.00 | 64.00 | +| CAP | 24.00 | 19.20 | +| MUG | 12.50 | 10.00 | + +Those three results are exact at two decimals: each old price times 0.8. A February 2026 thread, [bulk edit and decimal places](https://wordpress.org/support/topic/bulk-edit-price-decimal-places-bug/), is from a store on WooCommerce 10.4.3 and WordPress 6.9.1. Support said bulk edit saves with the store's decimal setting and, in that reply, with the usual two-decimal precision. The store owner then reported that export, edit, and import kept four decimals, and support agreed that workflow did. If your store keeps four decimal places, do not assume the bulk editor preserved them. + +## Why "increase by 20%" does not undo "decrease by 20%" + +Increasing the new prices by 20% does not return the old prices: + +| SKU | After the 20% decrease | Increase that result by 20% | Original | +| --- | --- | --- | --- | +| HOODIE | 64.00 | 76.80 | 80.00 | +| CAP | 19.20 | 23.04 | 24.00 | +| MUG | 10.00 | 12.00 | 12.50 | + +The inverse of "multiply by 0.8" is "multiply by 1.25", which is a 25% increase: + +| SKU | 25% increase of the decreased price | Original | +| --- | --- | --- | +| HOODIE | 80.00 | 80.00 | +| CAP | 24.00 | 24.00 | +| MUG | 12.50 | 12.50 | + +Use that inverse only when every product in the batch was decreased by the same percentage, the stored results match the arithmetic, and nobody has edited those prices since. A fixed decrease of 5.00 is reversed by a fixed increase of 5.00 under the same conditions. Rounding can break the reverse. At two decimals, 19.99 times 0.85 is 16.9915 and rounds to 16.99. That figure is arithmetic, not a price this research measured inside WooCommerce. Check the reverse on one product before you touch the rest. + +A merchant reported the same surprise in [woocommerce/woocommerce#17885](https://github.com/woocommerce/woocommerce/issues/17885) on 23 November 2017: after a percentage decrease, increasing by that same percentage did not put the old sale price back. The issue itself was closed the same day for a different reason. **Decrease existing sale price** does nothing unless the product already has a sale price. There is no percentage-calculation defect in that thread, and the thread names no later release that changes the arithmetic. Use the tables above. Do not treat a second bulk edit as undo unless you have checked the numbers. + +A bulk edit can also stop halfway. [woocommerce/woocommerce#37681](https://github.com/woocommerce/woocommerce/issues/37681), opened in April 2023, describes a sale-price bulk edit that hit a blank regular price, threw an error, and left the list partly updated. That bug is not a claim about today's code. It is a reason to export the current prices before you run a repair, so you can see which rows moved. + +## Restore the old prices without a plugin + +Work on a staging copy if you have one. On production, change one SKU first and read it back in the product editor. + +1. Stop. Do not run another bulk edit, import, or sync until you know the before-values. +2. Find a CSV exported before the mistake. WooCommerce's exporter is **Products > All Products > Export**. The [CSV guide](https://woocommerce.com/document/product-csv-importer-exporter/) says an update matches existing products by ID or SKU. +3. Build a restore file with only the identifier column and the price columns you intend to put back. On the column mapping screen, set every other column to **Do not import**. Turn on **Update existing products**. +4. Import one row. Open that product and confirm the regular price, the sale price, and the sale dates. Then import the rest in batches you can check. +5. If you have no pre-change export, restore a database backup onto staging, export the prices from staging, and import those prices into the live store with the same mapping. Do not restore the live database over a store that has taken orders since the backup. Those orders roll back with the prices. +6. An order line shows the amount that customer was charged. It is not a catalog history. Products that did not sell are missing from it. + +Installing a price-history plugin after the edit does not recreate the lost values. Those tools record from the moment they are active. See [how to keep a price history](woocommerce-price-history.md) for the habit that helps next time. + +If the bulk edit cleared sale prices, use [restore sale prices a CSV import overwrote](restore-sale-prices-overwritten-by-import.md). The products-list guide says **Set to regular price decreased by** with a blank value or 0 removes the sale price. That is a write, not a no-op. + +## What WriteLeash does here, and what it does not + +**Directory plugin, checked 27 October 2026.** [WriteLeash 0.2.2](https://wordpress.org/plugins/writeleash/) requires WordPress 7.0 or newer and WooCommerce 10.0 through 11.x. WordPress 7.0.1 and 7.1.2 were exercised. That is not a promise that every 7.x release was tested. + +If the bad write was the products-list bulk editor, Quick Edit, or the variation bulk actions, WriteLeash Undo does not reverse it. Undo restores eligible prices that WriteLeash itself applied, inside its window, when the current product still matches the saved record. The listing's default window is 30 days. Availability does not mean every row will restore. Undo does not reverse orders, completed sales, emails, webhooks, remote requests, external queues, or other plugins' effects. WriteLeash does not create a backup. + +If you make the next price change with WriteLeash, the useful part is earlier in the workflow: + +- Preview shows the stored before and after for the regular or sale price you chose. A separate approval is required. Changing the selection or the operation requires a new Preview. +- If the stored price WriteLeash is changing no longer matches the Preview, WriteLeash leaves the newer value and marks a conflict. Product name, SKU, and category alone do not cause that conflict. A value that changes away and then back may not be detected. +- Eligible Undo applies only to prices WriteLeash applied. The public listing says a changed relevant value can leave a row unrestored. In the 0.2.2 package, the undo code goes further on one case: restoring a regular price stops as a conflict when that restored regular price would be less than or equal to a sale price now stored on the product, instead of clearing the newer sale. A sale-price undo writes the saved sale price back through WooCommerce's product save. Neither case is a promise that every later sale survives. +- Scope on the 0.2.2 listing: published core simple products and published variations of published core variable products, in the base store currency, up to 1,000 selected products per new job in the tested configuration. Parent prices are not edited directly. Custom product types are unsupported. Multisite is unsupported. Real managed or shared hosting has not been tested. Ordinary price changes do not change sale dates, stock, or orders. Planned stored prices are not guaranteed shopper prices. + +**Not the download.** The GitHub default branch, after merged [pull request #330](https://github.com/MrDarkRoot/WriteLeash/pull/330), certifies pairs rather than every combination: WordPress 7.0 up to but not including 8.0 with WooCommerce 10.0 up to but not including 12.0, or WordPress 6.7 up to but not including 7.0 with WooCommerce 9.0 up to but not including 10.0. Other pairs are refused before a job is created. Do not install the directory plugin on WordPress 6.7 and expect that pair. Restricted-agent and stock-on-a-grant behavior in [issue #312](https://github.com/MrDarkRoot/WriteLeash/issues/312) is not part of the 0.2.2 listing. + +Some other bulk editors preview before they save, or undo only before save. [PW WooCommerce Bulk Edit](https://wordpress.org/plugins/pw-bulk-edit/) says nothing is written until you click Save, and you can undo before that. That is a different moment from restoring a price that is already stored. Read the current listing of any tool you install. This guide is not a ranking. + +## A short rule for the next sale + +Export ID, SKU, Regular price, Sale price, and both sale-date columns. Name the file with the date. Run the bulk edit on a category or a handful of SKUs you can count. Open two products and compare them with the export. Then do the rest. + +If you want that preview and the option to restore eligible prices from the tool that wrote them, [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/) is the plugin this guide is about. It will not undo the bulk edit you have already saved. + +## FAQ + +### Does WooCommerce include an undo for bulk price edits? + +The [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) and the [variation bulk-action section](https://woocommerce.com/document/variable-product/) describe the write. They do not describe an undo control. A backup, an older export, or a history tool that was already recording are the recovery paths. + +### Will product revisions put the old price back? + +Do not plan on it. Confirm on a staging copy, on one product, whether restoring a revision restores `_regular_price` and `_sale_price`. This guide did not find WooCommerce documenting revisions as a price undo. + +### Can I undo a 20% decrease by increasing 20%? + +No. In the example above, a 20% decrease is reversed by a 25% increase, and only when the stored prices are exactly the decreased values and nothing else has changed them. + +### Will WriteLeash undo a bulk edit I already ran in WooCommerce? + +No. WriteLeash Undo restores eligible prices WriteLeash applied. A native bulk edit is outside that history. + +```json +{ + "@context": "https://schema.org", + "@graph": [ + { + "@type": "Article", + "headline": "How to undo an accidental WooCommerce bulk price edit", + "dateModified": "2026-10-27", + "description": "WooCommerce bulk edit writes prices on Update and documents no undo. Restore them from a CSV or backup, and do not reverse a percentage with itself.", + "author": { + "@type": "Organization", + "name": "WriteLeash", + "url": "https://wordpress.org/plugins/writeleash/" + }, + "publisher": { + "@type": "Organization", + "name": "WriteLeash", + "url": "https://wordpress.org/plugins/writeleash/" + } + }, + { + "@type": "FAQPage", + "mainEntity": [ + { + "@type": "Question", + "name": "Does WooCommerce include an undo for bulk price edits?", + "acceptedAnswer": { + "@type": "Answer", + "text": "The official bulk editing guide and the variation bulk-action section describe the write. They do not describe an undo control. Recovery uses a backup, an older export, or a history tool that was already recording." + } + }, + { + "@type": "Question", + "name": "Will product revisions put the old price back?", + "acceptedAnswer": { + "@type": "Answer", + "text": "Do not plan on it. Confirm on a staging copy whether restoring a revision restores the regular and sale prices. WooCommerce does not document revisions as a price undo." + } + }, + { + "@type": "Question", + "name": "Can I undo a 20% decrease by increasing 20%?", + "acceptedAnswer": { + "@type": "Answer", + "text": "No. A 20% decrease is reversed by a 25% increase only when the stored prices are exactly the decreased values and nothing else has changed them." + } + }, + { + "@type": "Question", + "name": "Will WriteLeash undo a bulk edit I already ran in WooCommerce?", + "acceptedAnswer": { + "@type": "Answer", + "text": "No. WriteLeash Undo restores eligible prices WriteLeash applied. A native WooCommerce bulk edit is outside that history." + } + } + ] + } + ] +} +``` + +Structured data template only. Do not emit it until this article has a public canonical URL. Add `datePublished` on that day. The affiliation above is required on the page. diff --git a/docs/marketing/323-seo-content/articles/woocommerce-price-history.md b/docs/marketing/323-seo-content/articles/woocommerce-price-history.md new file mode 100644 index 00000000..6aa6385c --- /dev/null +++ b/docs/marketing/323-seo-content/articles/woocommerce-price-history.md @@ -0,0 +1,171 @@ +--- +title: "How to keep a WooCommerce price history without writing code" +slug: woocommerce-price-history +meta_description: "WooCommerce does not ship a catalog price log. Keep dated CSV exports, and use a history plugin only for changes made after you install it." +h1: "How to keep a WooCommerce price history without writing code" +intent: "Give a merchant a price audit trail they can open later, and separate that from order reports and from WriteLeash job history." +failure_family: "Price history and audit trail" +affiliation: "WriteLeash is our product. This guide is not an independent review." +canonical_status: UNPUBLISHED +date_revised: 2026-10-27 +--- + +# How to keep a WooCommerce price history without writing code + +**WriteLeash makes this guide.** We publish the [WriteLeash](https://wordpress.org/plugins/writeleash/) plugin. The export habit below does not use it. WriteLeash History, described later, is only the log of WriteLeash jobs. + +WooCommerce's [product management guide](https://woocommerce.com/document/managing-products/) and [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) tell you how to set a price and how to change many prices. They do not describe a screen that lists the previous regular price, the previous sale price, who changed them, and when. If you need that after a bad bulk edit, and you never saved a copy, core has nothing to open. + +That is not the same sentence as "there is no way to recover." A backup, an older export, or a plugin that was already recording can still hold the old number. [How to undo an accidental bulk price edit](undo-woocommerce-bulk-price-edit.md) walks through the restore. This page is how to make the next restore boring. + +## What is not a price history + +**Orders.** A line item stores the amount charged on that order. It helps when a product actually sold. It says nothing about products that did not sell, and it is not the catalog price at 9:00 if the order was placed at 16:00 after a second edit. + +**Analytics.** WooCommerce reports are built from orders. They answer what you sold. They do not answer what the regular price field used to contain. + +**Stock logs.** The [Inventory History](https://wordpress.org/plugins/inventory-history/) listing says WooCommerce does not save a log of product stock changes by default. Stock quantity and price are different fields. A stock log does not restore a sale price. + +**The EU 30-day lowest price.** Several plugins, including [Product Price History](https://wordpress.org/plugins/product-price-history/) and [WPNest Price History](https://wordpress.org/plugins/wpnest-price-history-for-woocommerce/), advertise a consumer-facing notice for discounted products. That is a disclosure on the product page. It is not an admin undo, and this article is not legal advice. If you sell to shoppers in the EU, read the rule that applies to you. Do not assume an admin CSV export satisfies it. + +**Revisions in the product editor.** This guide did not find WooCommerce documenting post revisions as a price undo. Prices live in product data. Prove a restore on staging, on one product, before you count on it. + +## A history you can keep without a developer + +### 1. Dated exports + +**Products > All Products > Export.** The [CSV guide](https://woocommerce.com/document/product-csv-importer-exporter/) explains the columns. For a price snapshot, keep: + +- ID +- SKU +- Type +- Name +- Regular price +- Sale price +- Date sale price starts +- Date sale price ends + +Leave the file named with the date, in a place that is not the same filename every week. A weekly export that overwrites `products.csv` is not a history. + +You can export a category or a selection when you are about to change that slice of the catalog. The guide shows **Export selected** from the product list. + +### 2. Export again immediately before a write + +Do this before: + +- Products-list bulk edit +- Variation bulk actions, which the [variable product guide](https://woocommerce.com/document/variable-product/) says save immediately +- A CSV update +- Connecting a sync tool or an assistant that can write prices + +The file from step 1 is the backup of the backup. The file from step 2 is the exact before-image of this change. + +### 3. A plugin log, installed before you need it + +These listings, read on 27 October 2026, describe recording that starts when the plugin is active: + +- [Product Price History](https://wordpress.org/plugins/product-price-history/) says it saves a record when a product's price changes, including through the REST API and importers, and that recording starts as soon as the plugin is active. +- [MiraiLit Product Change Tracker](https://wordpress.org/plugins/mirailit-product-change-tracker-for-woocommerce/) says it records price, stock, title, and weight from the product editor, quick edit, bulk edit, REST API, WP-CLI, importers, and stock changes from orders and refunds, with the old value, the new value, who did it, and when. +- [Bulk Price Editor](https://wordpress.org/plugins/bulk-price-editor-for-woocommerce/) 2.5.0, dated 1 September 2026 in the trunk readme checked on 27 October 2026, says each bulk update stores a snapshot of the previous prices. The same entry says a separate price-change record covers manual edits, imports, the API, and bulk updates, and can be turned off. Revert from that history is marked premium. The FAQ on the same readme still says the plugin does not have an undo feature and points at the preview plus a database backup. Read the version you install. Recording starts when the plugin is active. + +None of these sentences were re-tested in a store for this article. Install on staging, change one simple product and one variation by Quick Edit, by bulk edit, and by a one-row CSV, and see whether the log shows the old price. Then decide. + +Installing any of them after the bad edit does not reconstruct the old price. + +### 4. Know what your host backup contains + +Ask the host how far back backups go and whether a restore replaces the whole database. A full restore brings back old prices and also rolls back orders, coupons, and customer changes made after that backup. The safer pattern is: restore the backup on staging, export the price columns, import those columns into the live store with every other column set to **Do not import**. + +## How to read a snapshot when something looks wrong + +Open the product and write down the regular price, the sale price, and the dates you see now. Find the newest export from before the incident. Diff those columns on the SKU. Three different outcomes: + +| What you see | What to do | +| --- | --- | +| The editor matches the old export, and the shop does not | Do not import prices again. See [why a saved sale price might not show](imported-sale-price-not-showing.md). | +| The editor shows a new sale or a blank sale, and the export has the old one | Restore from that export. See [sale prices a CSV import overwrote](restore-sale-prices-overwritten-by-import.md). | +| You have no export and no backup | You do not have the old catalog price. Orders may hint at it for products that sold. Guessing with a reverse percentage is the risky path in [undo a bulk price edit](undo-woocommerce-bulk-price-edit.md). | + +## What WriteLeash History is + +**Directory plugin, checked 27 October 2026.** [WriteLeash 0.2.2](https://wordpress.org/plugins/writeleash/) says History shows who changed what and when, and that eligible prices can be restored within the Undo window, 30 days by default. Read that as the history of WriteLeash jobs: results, conflicts, and whether Undo is available. + +It does not record: + +- Quick Edit +- The products-list bulk editor +- Variation bulk actions +- The CSV importer +- Another plugin's save +- A REST write that did not go through WriteLeash + +Undo availability does not guarantee restoration. A later price change, a product that is no longer eligible, a missing record, or an expired window can leave the row unrestored. Undo does not reverse orders, completed sales, emails, webhooks, remote requests, external queues, or other plugins' effects. The Preview CSV is the saved Preview, not a live catalog export, and it does not apply changes. + +Scope on that listing: published core simple products and published variations of published core variable products, base store currency, up to 1,000 selected products per new job in the tested configuration. WordPress 7.0 or newer, with 7.0.1 and 7.1.2 exercised. WooCommerce 10.0 through 11.x. Multisite is unsupported. Real managed or shared hosting has not been tested. Price operations do not change stock, sale dates, or orders. + +**Not the download.** The default branch after [pull request #330](https://github.com/MrDarkRoot/WriteLeash/pull/330) uses compatibility pairs: WordPress 7.0 up to but not including 8.0 with WooCommerce 10.0 up to but not including 12.0, or WordPress 6.7 up to but not including 7.0 with WooCommerce 9.0 up to but not including 10.0. The 0.2.2 listing does not advertise the legacy pair. An append-only grant audit in [issue #312](https://github.com/MrDarkRoot/WriteLeash/issues/312) is not a catalog price history and is not in the published listing. + +WriteLeash is one log of one tool's price writes. The dated CSV is the log of the catalog. Use both if you use WriteLeash. The CSV still matters, because most overwrites never pass through the plugin. + +## FAQ + +### Where do I click to see every past product price? + +Core does not provide that screen. Use a dated export, a backup, or a history plugin that was recording at the time of the change. + +### Does WriteLeash History show CSV imports and bulk edits? + +It shows WriteLeash jobs. It does not show the products-list bulk editor, variation bulk actions, or the CSV importer. + +### Will a 30-day price chart on the product page let me undo a price? + +No. A shopper-facing lowest-price notice is not an admin restore. Eligible Undo inside WriteLeash is also not that chart. It only restores eligible prices WriteLeash applied, for 30 days by default on the 0.2.2 listing. + +### How many exports do I need? + +One immediately before each bulk change, plus an older copy you do not overwrite. Weekly is a reasonable extra if prices change often. There is no directory statistic behind a specific frequency. + +```json +{ + "@context": "https://schema.org", + "@graph": [ + { + "@type": "Article", + "headline": "How to keep a WooCommerce price history without writing code", + "dateModified": "2026-10-27", + "description": "WooCommerce does not ship a catalog price log. Keep dated CSV exports, and use a history plugin only for changes made after you install it.", + "author": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" }, + "publisher": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" } + }, + { + "@type": "FAQPage", + "mainEntity": [ + { + "@type": "Question", + "name": "Where do I click to see every past product price?", + "acceptedAnswer": { "@type": "Answer", "text": "WooCommerce core does not provide that screen. Use a dated export, a backup, or a history plugin that was recording at the time of the change." } + }, + { + "@type": "Question", + "name": "Does WriteLeash History show CSV imports and bulk edits?", + "acceptedAnswer": { "@type": "Answer", "text": "It shows WriteLeash jobs. It does not show the products-list bulk editor, variation bulk actions, or the CSV importer." } + }, + { + "@type": "Question", + "name": "Will a 30-day price chart on the product page let me undo a price?", + "acceptedAnswer": { "@type": "Answer", "text": "No. A shopper-facing lowest-price notice is not an admin restore. WriteLeash Undo only restores eligible prices WriteLeash applied, for 30 days by default on the 0.2.2 listing." } + }, + { + "@type": "Question", + "name": "How many exports do I need?", + "acceptedAnswer": { "@type": "Answer", "text": "One immediately before each bulk change, plus an older copy you do not overwrite. There is no statistic behind a specific weekly frequency." } + } + ] + } + ] +} +``` + +Structured data template only. Do not emit it until this article has a public canonical URL. Add `datePublished` on that day. The affiliation above is required on the page. + +When the price change itself should carry a preview and an eligible restore, [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/) is the tool this guide is attached to. Keep the CSV export anyway. diff --git a/docs/marketing/323-seo-content/claims-audit.md b/docs/marketing/323-seo-content/claims-audit.md new file mode 100644 index 00000000..b6304d23 --- /dev/null +++ b/docs/marketing/323-seo-content/claims-audit.md @@ -0,0 +1,60 @@ +# Claims audit for the #323 articles + +Auditor: content pass on 27 October 2026, against the WordPress.org listing, the 0.2.2 zip in `archives/wporg-v0.2.2/`, and `origin/main` at `3be6805` (merge of #330). Articles were not browser-published, so structured data was not tested in Google's rich-results tool. Status for that check is `NOT_TESTED`. + +## Release split + +| Surface | What it is | What the articles may say | +| --- | --- | --- | +| WordPress.org WriteLeash 0.2.2 | The installable plugin. Listing fetched 2026-10-27. Stable tag 0.2.2. | Preview, separate approval, conflict retention, History of its own jobs, eligible price Undo, 30-day default window. Does not change stock, sale dates, or orders. Requires WordPress 7.0 or newer and WooCommerce 10.0 through 11.x. Exercised WordPress versions named on the listing: 7.0.1 and 7.1.2. | +| 0.2.2 zip | Contains `class-grant-repository.php` and `class-grant-schema.php`. Does not contain a stock mutator, perimeter class, or grant-admin class (zip listing filtered 2026-10-27). Changelog: disabled-by-default foundations for bounded delegated price authority. | Foundations exist in the zip and are not a documented staff or agent lock. Articles must not give grant setup steps. | +| 0.2.2 undo code | `class-woo-undo-mutator.php` throws `UNDO_CONFLICT` when a regular-price restore would be less than or equal to the current sale price, with a comment that this avoids clearing a newer sale. | Allowed in the undo article, as a conflict, not as "the sale is always kept and the regular price always restores." | +| `origin/main` `3be6805` | Merged #330. Not published to WordPress.org by that PR. Pair rule in `Free_Support_Contract::support_band()`. Readme describes restricted-agent access and stock only on an opt-in grant. Plugin header version on that commit is 0.2.0. | Describe as repository behavior that is not the directory download. State both pairs and that cross pairs are refused. Do not tell a merchant to install 0.2.2 on WordPress 6.7. | + +## Article claim results + +| Claim | Result | Note | +| --- | --- | --- | +| Products-list bulk edit writes on Update and the official guide has no undo | PASS | [Bulk Editing Products](https://woocommerce.com/document/bulk-editing-products/), fetched 2026-10-27. | +| Variation bulk actions save immediately, and 0 clears sale prices | PASS | [Variable products](https://woocommerce.com/document/variable-product/), fetched 2026-10-27. | +| A 20% decrease is not undone by a 20% increase | PASS | Arithmetic in the undo article uses exact two-decimal values. The 19.99 example is labeled as arithmetic, not a measured WooCommerce result. | +| Issue #17885 was a percentage bug fixed in WooCommerce 3.3.1 | Not claimed | The thread was re-read on 2026-10-27. It was closed the same day because Decrease existing sale price requires an existing sale. A later comment reports that the same percentage increase did not restore the sale. The undo article cites that comment and does not name WooCommerce 3.3.1. | +| Lookup-table rebuild fixed the November 2025 hidden sale | Not claimed | The WordPress.org poster had already rebuilt lookup tables. The sale appeared after a product Update. Support's no-change bulk Update and WP-CLI suggestion are labeled unconfirmed on that thread. | +| Blank sale-price CSV cells are documented as "leave unchanged" | Not claimed | Articles tell the reader the schema does not say that, and to use Do not import. | +| Blank sale dates mean no date; blank Stock disables stock management | PASS | CSV schema, fetched 2026-10-27. | +| Products-list "Set to regular price decreased by" with blank or 0 removes the sale | PASS | Bulk editing guide. | +| Sale price greater than or equal to regular price is cleared on simple/variation save | PASS with scope | Trunk data store, retrieved 2026-10-27. Variable and grouped parents are excluded in that check. Not re-run as a live import. | +| November 2025 variable sale was stored but not shown until update | PASS | WordPress.org thread, re-read 2026-10-27. Lookup rebuild, cache clear, and variation sync had already failed for that poster. Reddit follow-up marked as search-retrieved; direct fetch 403. | +| `wp wc product lookup regenerate --force` always exists | Not claimed | Articles say confirm with `wp help wc product`. This task did not run WP-CLI. `NOT_TESTED` as an executed command. | +| Shop Manager product editing includes prices; no core price-only capability | PASS | Roles guide, fetched 2026-10-27. | +| WriteLeash 0.2.2 locks staff or AI agents | Not claimed | Articles say it does not. | +| WriteLeash 0.2.2 undoes native bulk edits or CSV imports | Not claimed | Articles say it does not. | +| WriteLeash changes stock in the directory plugin | Not claimed | 0.2.2 listing says stock is not changed. Main-branch grant stock is labeled unpublished. | +| Pair rule applies to the 0.2.2 download | Not claimed | Pair rule is attributed to the default branch after #330. | +| Every WordPress 7.x and WooCommerce combination works | Not claimed | Listing names two exercised WordPress versions. Branch text refuses cross pairs. | +| Search volume, ranking difficulty, or expected traffic | Not claimed | Evidence table uses `UNKNOWN`. | +| Competitor is unsafe or inferior | Not claimed | Other plugins are described from their own listings. | +| JSON-LD is live and valid for rich results | NOT_TESTED | Templates only. `datePublished` omitted until a real URL exists. | +| Procedural steps executed on a store | NOT_TESTED | Steps cite official docs and threads. No WooCommerce install was driven for this content pass. | + +## Link check + +HTTP 200 on 27 October 2026 for the WooCommerce docs, WordPress.org plugin pages, GitHub issues, and the application-password developer page used in the articles. Reddit thread URLs returned 403 to an unauthenticated client. Their text was retrieved through search the same day and is labeled that way in [keyword-evidence.md](keyword-evidence.md). + +## Editorial + +| Check | Result | +| --- | --- | +| Affiliation in the first screen of each article | PASS | +| Recovery section usable without installing WriteLeash | PASS | +| One primary CTA to the WordPress.org listing | PASS | +| Internal links between the five articles | PASS, relative Markdown links | +| No plugin telemetry | PASS | +| No readme or runtime plugin edit in this change | PASS | + +## Open limits + +- The trunk data-store sale-clear behavior was read from source, not executed. +- The no-change bulk Update resync was a 2025 support suggestion. The WordPress.org thread does not confirm it was run. It is not a lab result on WooCommerce 10.x or 11.x. +- Bulk Price Editor 2.5.0 claims were taken from the trunk readme on 2026-10-27. The plugin was not installed. The FAQ on that same readme still says there is no undo feature. Revert is marked premium. +- Grant foundations inside the 0.2.2 zip were not exercised. Articles do not enable them. diff --git a/docs/marketing/323-seo-content/keyword-evidence.md b/docs/marketing/323-seo-content/keyword-evidence.md new file mode 100644 index 00000000..afb27cc0 --- /dev/null +++ b/docs/marketing/323-seo-content/keyword-evidence.md @@ -0,0 +1,56 @@ +# Keyword evidence for issue #323 + +Collected 27 October 2026. Volume is `UNKNOWN` unless a source states a number. No Search Console export, keyword-planner export, or ranking-difficulty source was available. Confidence is about the demand evidence, not about a traffic forecast. + +| ID | Merchant language (not a stuffed keyword) | Intent | Source | Date | Volume | Confidence | Article | +| --- | --- | --- | --- | --- | --- | --- | --- | +| K1 | Bulk edit Price and Sale fields, then **Update**. No undo is documented. | Recovery after a products-list bulk price change | [WooCommerce: Bulk Editing Products](https://woocommerce.com/document/bulk-editing-products/) | Page fetched 2026-10-27. The guide describes Update and does not describe undo. | UNKNOWN | HIGH for the mechanism. The page is documentation, not a complaint count. | [Undo a bulk price edit](articles/undo-woocommerce-bulk-price-edit.md) | +| K2 | "setting it back to the original price (using the same percentage) when choosing Increase existing sale price … does not reset the price" | Repair a percentage bulk edit | [woocommerce/woocommerce#17885](https://github.com/woocommerce/woocommerce/issues/17885) | 2017-11-23 | UNKNOWN | MEDIUM. The issue was closed the same day because Decrease existing sale price does nothing unless a sale price already exists. The inverse-percentage comment is a merchant report, not a confirmed calculation defect, and the thread does not mention WooCommerce 3.3.1. | Undo article | +| K3 | A bulk sale update "stops the bulk update, leaving the product list in a half-updated state." A blank sale also became 0 in one decrease path. | Partial overwrite, then no undo | [woocommerce/woocommerce#37681](https://github.com/woocommerce/woocommerce/issues/37681) | 2023-04-12 | UNKNOWN | MEDIUM. Closed bug. Evidence of partial writes, not of current crash behavior. | Undo article | +| K4 | FAQ: "Can I undo price changes?" The plugin does not have an undo feature; preview before confirm. Changelog 2.5.0 also records each bulk update's previous prices, marks revert premium, and records manual, import, API, and bulk price changes. | Commercial demand for undo and a price log | [Bulk Price Editor for WooCommerce](https://wordpress.org/plugins/bulk-price-editor-for-woocommerce/) trunk readme | Readme fetched 2026-10-27. Changelog 2.5.0 dated 2026-09-01. Stable tag on that readme: 2.5.1. | UNKNOWN | MEDIUM. A plugin FAQ is demand-shaped, not a query log. The FAQ and the 2.5.0 changelog describe different recovery features. | Undo article, history article | +| K5 | "Can I undo a change? Yes, until you save. Nothing is written to your store until you click Save." | Merchants look for a safety net around bulk price edits | [PW WooCommerce Bulk Edit](https://wordpress.org/plugins/pw-bulk-edit/) | Listing fetched 2026-10-27 | UNKNOWN | MEDIUM. Pre-save undo is a different mechanism from post-save recovery. | Undo article | +| K6 | Variation bulk actions "save the new price immediately." Entering 0 clears sale prices. Blank or invalid input leaves sale prices unchanged for that one action. | Variation price writes with no documented undo | [WooCommerce: Variable products](https://woocommerce.com/document/variable-product/), section "How to bulk edit all variations of a product" | Page fetched 2026-10-27 | UNKNOWN | HIGH for the mechanism | Undo article, sale-price article | +| K7 | Products-list bulk edit "works best with Simple products, and cannot edit the complexities of variable, grouped, or other complicated products." | Wrong screen for variation prices | Same bulk-editing guide as K1 | Fetched 2026-10-27 | UNKNOWN | HIGH | Undo article, display article | +| K8 | Bulk edit rounded a 4-decimal price to 2 decimals. Support called that expected. CSV import kept 4 decimals. | Bulk edit is a different writer from CSV | [Bulk edit price decimal places bug?](https://wordpress.org/support/topic/bulk-edit-price-decimal-places-bug/) | 2026-02-04. Store on WooCommerce 10.4.3. | UNKNOWN | HIGH. One store, one support reply. | Undo article | +| K9 | "Update existing products" matches by ID or SKU. Columns you do not want written must be set to **Do not import**. | Prevent an import from writing price columns | [Product CSV Importer and Exporter](https://woocommerce.com/document/product-csv-importer-exporter/) | Fetched 2026-10-27 | UNKNOWN | HIGH | Sale-price article | +| K10 | Schema: blank "Date sale price starts" means no start date. Blank end date means no end date. Blank Stock disables stock management. Regular price and Sale price are not documented as "blank means leave unchanged." | Empty mapped cells are not a safe no-op | Same CSV guide, schema table | Fetched 2026-10-27 | UNKNOWN | HIGH for the columns the schema defines. Sale-price blank behavior is not given its own sentence; the article tells readers to use Do not import and a one-row test. | Sale-price article | +| K11 | "Set to regular price decreased by" with a blank or 0 "will remove the Sales Price." | Accidental sale-price clear from the products list | Bulk-editing guide, Sale field | Fetched 2026-10-27 | UNKNOWN | HIGH | Sale-price article | +| K12 | Imported variation sale prices showed on each variation, but the variable product still showed the regular price until a manual Update. About 1,000 products. | Display/sync, often mistaken for a failed import | [Variable product sale prices not showing after CSV import](https://wordpress.org/support/topic/variable-product-sale-prices-not-showing-after-csv-import/) | 2025-11-25 | UNKNOWN | HIGH | Display article | +| K13 | Same report, then a no-change bulk update worked for the poster | Same intent as K12 | [r/woocommerce thread](https://www.reddit.com/r/woocommerce/comments/1p67r2v/variable_product_sale_prices_not_showing_after/) | 2025-11-25 | UNKNOWN | MEDIUM. Search retrieval on 2026-10-27. Direct HTTP fetch from this environment returned 403. | Display article | +| K14 | "I uploaded a CSV with the sale prices… I can see the sales prices on the backend; however, on the frontend, it's not showing." Force-save made them register. | Same display failure | [r/woocommerce thread](https://www.reddit.com/r/woocommerce/comments/1p7pld9/imported_sale_prices_but_theyre_not_showing/) | 2025-11-27 | UNKNOWN | MEDIUM. Same 403 limit on a direct fetch. | Display article | +| K15 | "Is there an easy way to raise all the prices in my shop by $1?" About 500 products. Replies include export, add 1, import. | Bulk price change via CSV | [r/woocommerce thread](https://www.reddit.com/r/woocommerce/comments/noey3k/is_there_an_easy_way_to_raise_all_the_prices_in/) | 2021-05-30 | UNKNOWN | MEDIUM. Older. Same 403 limit. Shows the export/edit/import habit that causes K9–K11. | Sale-price article | +| K16 | Shop Manager "Manage products" includes create, edit, delete, and publish. The roles guide does not list a separate price capability. | Staff can change prices because they can edit products | [WooCommerce roles and capabilities](https://woocommerce.com/document/roles-capabilities/) | Fetched 2026-10-27 | UNKNOWN | HIGH | Staff/agent article | +| K17 | "the same `edit_products` capability is checked as to allow to add new product and allow to edit existing products." WooCommerce may reinitialize `shop_manager`. | Cannot split "add product" from "edit product" with that one capability | [Restricting Shop Manager Role](https://wordpress.org/support/topic/restricting-shop-manager-role/) | 2023-05-10 | UNKNOWN | HIGH for the capability fact. The thread is about import/export and delete, not prices specifically. | Staff/agent article | +| K18 | "Out of the box, WooCommerce does not have a feature using which you can change the capability of Shop Manager role." | Adjacent: no built-in role editor | [Restrict shop admin from editing orders prices](https://wordpress.org/support/topic/restrict-shop-admin-from-editing-orders-prices/) | 2020-08-25 | UNKNOWN | LOW for product prices. The thread is about order line prices. Cited only as adjacent. | Staff/agent article | +| K19 | Current plugin listings advertise AI or assistant writes to product prices, stock, and sales, often through a connected account or key. Examples, not an endorsement: [StoreEdit AI](https://wordpress.org/plugins/storeedit-ai/), [AddSynapse](https://wordpress.org/plugins/addsynapse-store-assistant/), [AI Agent by SiteGround](https://wordpress.org/plugins/sg-ai-studio/), [Wpbingo AI Commander](https://wordpress.org/plugins/wpbingo-ai-commander-for-woocommerce/). | Operators are connecting assistants that claim they can change prices | Listings fetched 2026-10-27 | StoreEdit listing date on the page: 2026-10-23. AddSynapse: 2026-10-22. SiteGround agent: 2026-10-16. Wpbingo: 2026-10-06. | UNKNOWN | MEDIUM. Listings prove the feature is being offered. They do not prove a count of accidental overwrites. | Staff/agent article | +| K20 | "By default, WooCommerce does not save any kind of log or history for product stock changes." | Core has no stock-change log. Price history is a related gap, not the same feature. | [Inventory History](https://wordpress.org/plugins/inventory-history/) | Listing fetched 2026-10-27 | UNKNOWN | MEDIUM. The sentence is about stock. The price article does not reuse it as a price-log claim. | History article, as a boundary | +| K21 | Plugins whose listings say they record product price changes, including paths such as admin, REST, CSV, or bulk edit. Recording starts when the plugin is active. | Merchants pay for a price log because core does not show one | [Product Price History](https://wordpress.org/plugins/product-price-history/), [MiraiLit Product Change Tracker](https://wordpress.org/plugins/mirailit-product-change-tracker-for-woocommerce/), [WPNest Price History](https://wordpress.org/plugins/wpnest-price-history-for-woocommerce/) | Fetched 2026-10-27. Product Price History published 2025-11-20. MiraiLit 2026-09-21. WPNest 2026-05-20. | UNKNOWN | MEDIUM. Category evidence. Omnibus 30-day lowest price is a consumer notice, not an admin undo. | History article | + +## Queries that were not used as if they had volume + +These phrases match the issue brief. They were **not** found as a Search Console query, a keyword-tool export, or a thread title in this pass. Articles may answer the underlying task. They do not claim these strings are popular searches. + +| Phrase | Volume | Why it is still covered | +| --- | --- | --- | +| "undo WooCommerce bulk edit" | UNKNOWN | K1–K8 show the task. No query log. | +| "CSV import overwrote sale price" | UNKNOWN | K9–K15 show the mechanism and neighboring reports. No thread used that exact title. | +| "stop an AI agent changing WooCommerce prices" | UNKNOWN | K19 shows assistants that advertise price writes. No incident thread with a store's lost prices was found. | +| "WooCommerce price history without a developer" | UNKNOWN | K21 shows the plugin category. No query log. | + +## Competing results, without a ranking claim + +No rank tracker was available. These are the kinds of pages a merchant already meets. This is not a claim that WriteLeash outranks them. + +- Official WooCommerce docs for [bulk editing](https://woocommerce.com/document/bulk-editing-products/), [variable products](https://woocommerce.com/document/variable-product/), [CSV](https://woocommerce.com/document/product-csv-importer-exporter/), and [roles](https://woocommerce.com/document/roles-capabilities/). +- WordPress.org support threads for one store's import or bulk-edit incident. +- Bulk-editor plugins that preview before save, or that keep a history of their own runs. +- Price-history plugins aimed at EU lowest-price disclosure or at an admin change log. +- The [WriteLeash 0.2.2 listing](https://wordpress.org/plugins/writeleash/). Active installations on that page: fewer than 10. That is a directory bucket, not article traffic. + +## Gap the articles actually fill + +The official docs explain how to bulk edit and import. They do not walk through restoring the previous prices, the percentage inverse, the difference between a stored sale and a stale variable-product range, or the fact that `edit_products` is not a price permission. The articles stay on that gap. They do not pretend to be a neutral review of bulk-editor plugins. + +## Distribution opportunities that are realistic + +See [measurement.md](measurement.md). Short version: there is no project site to publish to. WordPress.org support forums are not an advertising channel. r/WordPress rules, as already recorded in `docs/launch-v0.2.md`, do not make these drafts postable. The honest next step is a founder-approved site, then Search Console on real URLs. diff --git a/docs/marketing/323-seo-content/measurement.md b/docs/marketing/323-seo-content/measurement.md new file mode 100644 index 00000000..131c3763 --- /dev/null +++ b/docs/marketing/323-seo-content/measurement.md @@ -0,0 +1,33 @@ +# Measurement plan for issue #323 + +Checked 27 October 2026. No tracking code is added to the WordPress plugin. The 0.2.2 listing already says the plugin has no tracking. + +## What can be measured today + +| Signal | Status | Evidence | +| --- | --- | --- | +| Published article URLs | NOT_AVAILABLE | No page has been published. See [publication-manifest.json](publication-manifest.json). | +| Search impressions | NOT_AVAILABLE | No Search Console property or export is in the repository. | +| Search clicks | NOT_AVAILABLE | Same. | +| Referral visits from the articles | NOT_AVAILABLE | There is no project site and no site-analytics property in the repository. | +| Plugin installs attributable to an article | NOT_AVAILABLE | WordPress.org shows an active-installation bucket for [WriteLeash](https://wordpress.org/plugins/writeleash/): fewer than 10, as read on 27 October 2026. The directory does not give plugin authors a per-article install count. | +| On-site plugin telemetry | Not used | Do not add it. | + +## What to turn on after a real URL exists + +1. Verify the live URL returns the article, the disclosure, and one link to `https://wordpress.org/plugins/writeleash/`. +2. Add the property in Google Search Console and Bing Webmaster Tools only for a host the project controls. Record impressions and clicks for each article URL. Until that property exists, both stay `NOT_AVAILABLE`. +3. Keep the WordPress.org link as a normal link. Query parameters were not added. WordPress.org's public plugin stats are not an article-referral report, so a `utm_` parameter would not create an attributable install number. Do not describe UTM clicks as installs. +4. Once a quarter, note the directory's active-installation bucket and the date. A bucket change is not proof that an article caused an install. +5. Do not add a phone-home, a pixel, or an install beacon to the plugin. + +## Baselines already recorded + +- Directory version: 0.2.2 +- Listing last modified: 18 October 2026, as shown on the plugin page on 27 October 2026 +- Active installations: fewer than 10 +- Article URLs: none + +## Reviews and forums + +Do not ask for reviews from this content set. Do not post the articles into the WooCommerce support forum. [docs/launch-v0.2.md](../../launch-v0.2.md) already marks forum promotion and unmodified AI posts on r/WordPress as out of bounds. diff --git a/docs/marketing/323-seo-content/publication-manifest.json b/docs/marketing/323-seo-content/publication-manifest.json new file mode 100644 index 00000000..18c74bd4 --- /dev/null +++ b/docs/marketing/323-seo-content/publication-manifest.json @@ -0,0 +1,78 @@ +{ + "issue": 323, + "generated_on": "2026-10-27", + "publication_status": "BLOCKED", + "blockers": [ + "GitHub Pages for MrDarkRoot/WriteLeash returned HTTP 404 on 2026-10-27.", + "The repository has no blog, MDX, Hugo, Astro, or other publishing pipeline.", + "docs/launch-v0.2.md leaves the decision to publish with the founder.", + "No external account was created. WordPress.org SVN was not updated." + ], + "install_url": "https://wordpress.org/plugins/writeleash/", + "directory_version_checked": "0.2.2", + "repository_head_described": "3be6805", + "analytics": { + "search_console": "NOT_AVAILABLE", + "bing_webmaster": "NOT_AVAILABLE", + "referral_visits": "NOT_AVAILABLE", + "attributable_installs": "NOT_AVAILABLE", + "plugin_telemetry_added": false + }, + "articles": [ + { + "slug": "undo-woocommerce-bulk-price-edit", + "file": "articles/undo-woocommerce-bulk-price-edit.md", + "title": "How to undo an accidental WooCommerce bulk price edit", + "meta_description": "WooCommerce bulk edit writes prices on Update and documents no undo. Restore them from a CSV or backup, and do not reverse a percentage with itself.", + "h1": "How to undo an accidental WooCommerce bulk price edit", + "failure_family": "accidental bulk price edit", + "evidence_ids": ["K1", "K2", "K3", "K4", "K5", "K6", "K7", "K8"], + "live_url": null, + "structured_data": "template-only-until-canonical-url" + }, + { + "slug": "restore-sale-prices-overwritten-by-import", + "file": "articles/restore-sale-prices-overwritten-by-import.md", + "title": "How to restore WooCommerce sale prices a CSV import overwrote", + "meta_description": "A mapped WooCommerce CSV column is a write. Put sale prices back from the pre-import export, and set every other column to Do not import.", + "h1": "How to restore WooCommerce sale prices a CSV import overwrote", + "failure_family": "import or plugin sale-price overwrite", + "evidence_ids": ["K9", "K10", "K11", "K6", "K15"], + "live_url": null, + "structured_data": "template-only-until-canonical-url" + }, + { + "slug": "restrict-woocommerce-price-changes", + "file": "articles/restrict-woocommerce-price-changes.md", + "title": "How to stop staff or an AI agent from changing WooCommerce prices", + "meta_description": "WooCommerce has no separate edit-price capability. Remove product-edit access, write-capable API keys, and application passwords you do not trust.", + "h1": "How to stop staff or an AI agent from changing WooCommerce prices", + "failure_family": "staff or AI-agent price changes", + "evidence_ids": ["K16", "K17", "K18", "K19"], + "live_url": null, + "structured_data": "template-only-until-canonical-url" + }, + { + "slug": "woocommerce-price-history", + "file": "articles/woocommerce-price-history.md", + "title": "How to keep a WooCommerce price history without writing code", + "meta_description": "WooCommerce does not ship a catalog price log. Keep dated CSV exports, and use a history plugin only for changes made after you install it.", + "h1": "How to keep a WooCommerce price history without writing code", + "failure_family": "price history and audit trail", + "evidence_ids": ["K20", "K21", "K4"], + "live_url": null, + "structured_data": "template-only-until-canonical-url" + }, + { + "slug": "imported-sale-price-not-showing", + "file": "articles/imported-sale-price-not-showing.md", + "title": "Why an imported WooCommerce sale price can be saved and still not show", + "meta_description": "If the variation editor shows the sale and the shop shows the regular price, do not import prices again. Resync one product before you touch the file.", + "h1": "Why an imported WooCommerce sale price can be saved and still not show", + "failure_family": "stored sale hidden by a stale variable-product range", + "evidence_ids": ["K12", "K13", "K14", "K7"], + "live_url": null, + "structured_data": "template-only-until-canonical-url" + } + ] +} From 34a18951bbbdee9f35f564f8d1d023800e4a918d Mon Sep 17 00:00:00 2001 From: MrDarkRoot Date: Tue, 10 Nov 2026 18:37:16 +0700 Subject: [PATCH 2/3] docs(marketing,#323): publish the v0.3.0 price-overwrite guides Refresh the five articles for the shipped 0.3.0 listing, teach the restore first, and check in the static site plus its generator. GitHub Pages serves only that site from docs/323-seo-pages. Search volume stays unmeasured. --- docs/marketing/323-seo-content/README.md | 41 +- .../imported-sale-price-not-showing.md | 146 ++--- ...store-sale-prices-overwritten-by-import.md | 152 ++---- .../restrict-woocommerce-price-changes.md | 149 ++---- .../undo-woocommerce-bulk-price-edit.md | 185 ++----- .../articles/woocommerce-price-history.md | 159 ++---- docs/marketing/323-seo-content/build_site.py | 506 ++++++++++++++++++ .../marketing/323-seo-content/claims-audit.md | 100 ++-- .../323-seo-content/keyword-evidence.md | 22 +- docs/marketing/323-seo-content/measurement.md | 23 +- .../323-seo-content/publication-manifest.json | 94 ++-- docs/marketing/323-seo-content/site/.nojekyll | 0 .../323-seo-content/site/assets/site.css | 65 +++ .../index.html | 66 +++ .../marketing/323-seo-content/site/index.html | 36 ++ .../index.html | 67 +++ .../index.html | 61 +++ .../marketing/323-seo-content/site/robots.txt | 4 + .../323-seo-content/site/sitemap.xml | 9 + .../index.html | 73 +++ .../site/woocommerce-price-history/index.html | 73 +++ 21 files changed, 1363 insertions(+), 668 deletions(-) create mode 100644 docs/marketing/323-seo-content/build_site.py create mode 100644 docs/marketing/323-seo-content/site/.nojekyll create mode 100644 docs/marketing/323-seo-content/site/assets/site.css create mode 100644 docs/marketing/323-seo-content/site/imported-sale-price-not-showing/index.html create mode 100644 docs/marketing/323-seo-content/site/index.html create mode 100644 docs/marketing/323-seo-content/site/restore-sale-prices-overwritten-by-import/index.html create mode 100644 docs/marketing/323-seo-content/site/restrict-woocommerce-price-changes/index.html create mode 100644 docs/marketing/323-seo-content/site/robots.txt create mode 100644 docs/marketing/323-seo-content/site/sitemap.xml create mode 100644 docs/marketing/323-seo-content/site/undo-woocommerce-bulk-price-edit/index.html create mode 100644 docs/marketing/323-seo-content/site/woocommerce-price-history/index.html diff --git a/docs/marketing/323-seo-content/README.md b/docs/marketing/323-seo-content/README.md index 2205ad72..d2ed5bf4 100644 --- a/docs/marketing/323-seo-content/README.md +++ b/docs/marketing/323-seo-content/README.md @@ -1,44 +1,35 @@ # SEO content for issue #323 -Status of this directory on 27 October 2026: **publication BLOCKED**. - -These files are the reviewable content set for -[issue #323](https://github.com/MrDarkRoot/WriteLeash/issues/323). -They are original merchant guides for accidental WooCommerce price overwrites. -They are not a live site, and they are not the WordPress.org listing. +Revised 10 November 2026. The five guides describe WordPress.org WriteLeash **0.3.0**. They are not the plugin listing, and they are not product docs under `docs/` outside this directory. ## What is here | File | Role | | --- | --- | -| [keyword-evidence.md](keyword-evidence.md) | Queries, sources, dates, volume, confidence | +| [keyword-evidence.md](keyword-evidence.md) | Queries, sources, dates. Volume is not measured | | [claims-audit.md](claims-audit.md) | What the articles may say about WriteLeash and WooCommerce | -| [measurement.md](measurement.md) | Attribution plan. Missing meters are `NOT_AVAILABLE` | +| [measurement.md](measurement.md) | Attribution plan. Missing meters stay `NOT_AVAILABLE` | | [publication-manifest.json](publication-manifest.json) | Slugs, metadata, live-URL status | -| [articles/](articles/) | Five articles, each able to stand alone | +| [articles/](articles/) | Five articles. Each one stands alone | +| [build_site.py](build_site.py) | Stdlib generator for the static site | +| [site/](site/) | Generated HTML, CSS, sitemap, and robots. Do not edit by hand | -## Publication +Regenerate with `python3 docs/marketing/323-seo-content/build_site.py` from the repository root. The script checks unique titles and descriptions, one visible CTA, canonicals, Article JSON-LD, and relative links. -No approved destination exists in this repository. +## Claim boundary -- GitHub Pages for `MrDarkRoot/WriteLeash` returned HTTP 404 on 27 October 2026. -- The repository has no blog, MDX site, Hugo, Astro, or other content pipeline. -- [docs/launch-v0.2.md](../../launch-v0.2.md) leaves the publish decision with the founder. -- This change does not create an external account, does not commit to WordPress.org SVN, and does not edit plugin runtime code. +The installable plugin is WordPress.org WriteLeash 0.3.0, listing opened 10 November 2026. Preview, conflict preservation, History, and eligible price Undo are in that download. Ordinary price jobs do not change stock. Stock Undo is not supported. Opt-in grants for bounded price and stock jobs stay off until an operator issues one. A restricted WordPress user is denied on documented monitored WooCommerce write paths outside a matching Execution Frame. -A reviewer can read the Markdown locally. Do not emit the JSON-LD templates until a page has a real canonical URL and a real `datePublished`. +That is not a firewall, not a sandbox, and not a universal agent-safe guarantee. Direct SQL, hostile plugins, and unmonitored writes are not covered. There is no guarantee when the grant store is unavailable. Undo does not reverse orders, emails, webhooks, or other plugins. -## Claim boundary used by every article +`wordpress/tests/release/claim-matrix-audit.php` reads `readme.txt`, `CLAIM-MATRIX.md`, and the distribution manifest. It does not scan this directory. It was not weakened. -The installable plugin is WordPress.org WriteLeash **0.2.2** (listing checked 27 October 2026). It is a price Preview / conflict / History / eligible Undo tool. It does not change stock. It does not document a staff or AI lock. +## Publication -[Pull request #330](https://github.com/MrDarkRoot/WriteLeash/pull/330) is merged on the GitHub default branch and is not the directory download. That branch certifies compatibility as pairs: WordPress 7.0 up to but not including 8.0 with WooCommerce 10.0 up to but not including 12.0, or WordPress 6.7 up to but not including 7.0 with WooCommerce 9.0 up to but not including 10.0. Cross pairs are refused. The articles say this so nobody installs 0.2.2 on the unreleased legacy pair. +Live host, checked HTTP 200 on 10 November 2026: `https://mrdarkroot.github.io/WriteLeash/`. -Restricted-agent and grant-scoped stock behavior is [issue #312](https://github.com/MrDarkRoot/WriteLeash/issues/312). It is not advertised here as something a merchant can turn on from the directory plugin. +GitHub Pages is enabled as a legacy build from branch `docs/323-seo-pages` at path `/`. That branch contains only the generated site (commit `3445680abd944e5260e5d3ade7cd5bceb29147cf`). It does not contain the repository `docs/` product documentation. -## Review +No workflow file was added. An unmapped file under `.github/workflows/` fails `.github/ci/ownership.py` (`Unmapped test harness`), and `path-ownership.json` is outside this change. Publishing the default branch `/` or `/docs` folder would publish product docs, which this set does not do. -1. Read [claims-audit.md](claims-audit.md) before editing an article. -2. Check that a recovery step still works without WriteLeash. -3. Keep the affiliation disclosure in the first screen of each article. -4. Do not add search-volume numbers. The evidence table marks volume `UNKNOWN` unless a dated source states a number. +Live URL status is in [publication-manifest.json](publication-manifest.json). diff --git a/docs/marketing/323-seo-content/articles/imported-sale-price-not-showing.md b/docs/marketing/323-seo-content/articles/imported-sale-price-not-showing.md index aba2ba94..e8c864f3 100644 --- a/docs/marketing/323-seo-content/articles/imported-sale-price-not-showing.md +++ b/docs/marketing/323-seo-content/articles/imported-sale-price-not-showing.md @@ -1,142 +1,92 @@ --- -title: "Why an imported WooCommerce sale price can be saved and still not show" +title: "An imported WooCommerce sale is saved but the shop shows full price" slug: imported-sale-price-not-showing -meta_description: "If the variation editor shows the sale and the shop shows the regular price, do not import prices again. Resync one product before you touch the file." -h1: "Why an imported WooCommerce sale price can be saved and still not show" -intent: "Separate a stored sale price from a stale variable-product price range, so a display bug is not repaired by another price import." -failure_family: "Import overwrite, misread as a missing sale" -affiliation: "WriteLeash is our product. This guide is not an independent review." -canonical_status: UNPUBLISHED -date_revised: 2026-10-27 +meta_description: "If the variation shows the sale and the shop shows the regular price, do not import again. Update one variable product, then recheck the shop." +h1: "An imported WooCommerce sale is saved but the shop shows full price" +card: "If the variation already shows the sale, do not import prices again. Update one variable product and check the shop." +intent: "Separate a stored sale price from a stale variable-product price range so a display bug is not repaired by another price import." +failure_family: "Stored sale hidden by a stale variable-product range" +affiliation: "WriteLeash publishes this guide. It is not an independent review." +canonical_status: INTENDED +date_revised: 2026-11-10 --- -# Why an imported WooCommerce sale price can be saved and still not show +# An imported WooCommerce sale is saved but the shop shows full price -**WriteLeash makes this guide.** We publish the [WriteLeash](https://wordpress.org/plugins/writeleash/) plugin. The checks below are WooCommerce admin steps. WriteLeash does not refresh a variable product's price range, and it should not be the tool you reach for when the editor already shows the right sale. +If the variation editor shows the sale and the shop still shows the regular price, do not import the price file again. Open that one variable product and press **Update** without changing the variation prices, then look at the shop in a logged-out browser. A second CSV can replace a sale that was already stored. -This failure looks like an overwrite. The shop, or the variable product's price range, still shows the regular price after a CSV import. The expensive mistake is to import a second price file. If the sale is already stored on the variation, a second file can replace it. [Restoring sale prices](restore-sale-prices-overwritten-by-import.md) is the other article. Use this one first to see which failure you have. - -## A report from November 2025 - -On 25 November 2025, a store imported about 1,000 products with variations through the WooCommerce CSV importer. The file included SKU, Sale price, sale dates, and Stock. Each variation showed the sale price and the dates. The variable product on the shop still showed the regular price. A manual Update on the product made the sale appear. The report is [Variable product sale prices not showing after CSV import](https://wordpress.org/support/topic/variable-product-sale-prices-not-showing-after-csv-import/). - -The original poster had already rebuilt product lookup tables, cleared cache, and synced variations. The sale still did not appear until a manual Update. WooCommerce support then suggested **Products > All Products > Bulk actions > Edit**, then **Apply**, then **Update** with no field changes. They also named `wp wc product lookup regenerate --force` if the host has WP-CLI. The WordPress.org thread was closed without a later confirmation that those steps were run. The same report on [r/woocommerce](https://www.reddit.com/r/woocommerce/comments/1p67r2v/variable_product_sale_prices_not_showing_after/) includes a search-retrieved follow-up that a bulk edit with no change worked for them. - -Two days later, [another r/woocommerce thread](https://www.reddit.com/r/woocommerce/comments/1p7pld9/imported_sale_prices_but_theyre_not_showing/) describes the same split: the backend showed the imported sale prices, the frontend did not, and saving the products again made the sale register. A comment suggested **WooCommerce > Status > Tools** and regenerating product lookup tables. - -Direct fetches of those Reddit URLs from this research environment returned HTTP 403 on 27 October 2026. The thread text was retrieved through search on the same day. The WordPress.org thread is the one to trust if the two ever disagree. - -This article did not re-run the import on WooCommerce 10 or 11. Try one product before you apply a resync to the catalog. +**WriteLeash publishes this guide.** It is not an independent review. The checks are WooCommerce admin steps. WriteLeash does not regenerate product lookup tables, and it is the wrong tool when the editor already shows the right sale. ## Confirm the sale is stored -Open the variation, not the variable parent. - -The [variable product guide](https://woocommerce.com/document/variable-product/) says each variation has its own regular price and its own optional sale price. Variations without a price do not show in the store. The parent can show a price range built from those variations. The products-list [bulk editor](https://woocommerce.com/document/bulk-editing-products/) says it cannot edit the complexities of variable products. Typing a sale into the parent's bulk-edit Price field is the wrong repair. +Open the variation, not the variable parent. The [variable product guide](https://woocommerce.com/document/variable-product/), opened on 10 November 2026, says each variation has its own regular price and its own optional sale price. Variations without a price do not show in the store. The parent can show a range built from the variations. On one affected variation, check: 1. Regular price is present. 2. Sale price is strictly below that regular price. -3. If sale dates are set, today's date in the store timezone falls inside them. The [CSV schema](https://woocommerce.com/document/product-csv-importer-exporter/) says a start date uses the start of that day and an end date uses the end of that day. A blank date means no date, not "leave the old date," when that column was imported. -4. The variation is enabled and published with the parent. +3. If sale dates are set, today in the store timezone falls inside them. The [CSV schema](https://woocommerce.com/document/product-csv-importer-exporter/) says a start date uses the start of that day and an end date uses the end of that day. A blank date means no date when that column was imported. It does not mean "leave the old date." +4. The variation is enabled, and the parent is published. + +If the sale field is empty, you do not have this display bug. Go to [restore sale prices a CSV import overwrote](restore-sale-prices-overwritten-by-import.md). If the field is filled and the shop is wrong, keep going. Do not upload another price CSV. + +The products-list [bulk editor](https://woocommerce.com/document/bulk-editing-products/) says bulk price changes apply to simple and external products, not to the individual variations of a variable product. Typing a sale into the parent's bulk-edit Price field is the wrong repair. -If the sale field is empty, you do not have this display bug. The import cleared or never wrote the sale. Go to [restore sale prices a CSV import overwrote](restore-sale-prices-overwritten-by-import.md). +## What one store reported in November 2025 -If the sale field is filled and the shop is wrong, keep going. Do not upload another price CSV. +On 25 November 2025 a store imported about 1,000 products with variations through the WooCommerce CSV importer. The file included SKU, Sale price, sale dates, and Stock. Each variation showed the sale price and the dates. The variable product on the shop still showed the regular price. A manual Update on the product made the sale appear. The report was opened again on 10 November 2026: [Variable product sale prices not showing after CSV import](https://wordpress.org/support/topic/variable-product-sale-prices-not-showing-after-csv-import/). The thread is closed. The original poster had already rebuilt product lookup tables, cleared cache, and synced variations. The sale still did not appear until a manual Update. -## Resync one product, then the batch +WooCommerce support suggested **Products > All Products > Bulk actions > Edit**, then **Apply**, then **Update** with no field changes. The current bulk-editing guide labels that menu **Bulk edit** rather than **Edit**. Support also named `wp wc product lookup regenerate --force` if the host has WP-CLI. The poster replied that they would try it. The thread was closed with no later confirmation that either step was run. This article did not re-run the import on WooCommerce 10 or 11. Try one product before you apply a resync to the catalog. -The product Update is what the original report says worked. The other steps were offered on that thread, or in a search-retrieved Reddit comment, and were not confirmed there. They are not a ranked guarantee for every host. +The same report on [r/woocommerce](https://www.reddit.com/r/woocommerce/comments/1p67r2v/variable_product_sale_prices_not_showing_after/) was search-retrieved on 27 October 2026, including a follow-up that a bulk edit with no change worked for that poster. A direct fetch returned HTTP 403, and the Reddit URL was not opened as a page on 10 November 2026. Two days after the original report, [another r/woocommerce thread](https://www.reddit.com/r/woocommerce/comments/1p7pld9/imported_sale_prices_but_theyre_not_showing/) was search-retrieved the same way: the backend showed the imported sale, the frontend did not, and saving the products again made the sale register. If the WordPress.org thread and a search snippet ever disagree, trust the WordPress.org thread. -1. Edit the variable product and press **Update** without changing the variation prices. That is what made the sale appear for the original report. -2. If you have many parents, the support reply suggested selecting them on **Products > All Products**, choosing **Edit**, pressing **Apply**, changing nothing, and pressing **Update**. Do a small batch first. The bulk editing guide warns that a large page of products can strain the server. This no-change Update is a resync attempt. It is not permission to set a new Price or Sale value while you are there. A blank **Set to regular price decreased by** removes sale prices. The WordPress.org thread does not confirm that this batch step was run. -3. The original report says **Tools → Product lookup tables → Rebuild** had already been tried, together with a cache clear and a variation sync, and the sale still did not appear. A Reddit comment suggested **WooCommerce > Status > Tools** again. Do not treat lookup regeneration as the fix for that store. This research did not execute the tool. -4. If you use WP-CLI, the support reply named `wp wc product lookup regenerate --force`. The WordPress.org thread does not confirm that command was run, and the poster had already rebuilt lookup tables in the admin without the sale appearing. Run `wp help wc product` on that server and confirm the subcommand exists before you use it. Do not paste it from this article into a host where `wp wc` is a different package. +## Resync one product, then a small batch -Afterward, check three variations: one that should be on sale, one that should not, and one with a future sale start date. Clear any full-page cache only after the editor and a logged-out browser agree. A cache can keep serving the old range after WooCommerce has already updated. +The product Update is what the original report says worked. The other steps were offered on that thread and were not confirmed there. They are not a guarantee for every host. -Also confirm you did not import the parent row's price and expect it to become the variation price. The customer-facing range comes from the variations. +1. Edit the variable product and press **Update** without changing the variation prices. Recheck the shop. +2. If you have many parents, the support reply suggested selecting them, choosing Edit, pressing Apply, changing nothing, and pressing Update. Use a small batch first. The bulk editing guide warns that a large page can strain the server. This no-change Update is a resync attempt. It is not permission to type a new Price or Sale value. Leave those fields on **No change**. A bulk edit that changes a regular or sale price clears scheduled sale dates. +3. The original report says rebuilding product lookup tables, clearing cache, and syncing variations had already failed for that store. Do not treat lookup regeneration as the fix that worked there. This research did not execute the tool. +4. If you use WP-CLI, support named `wp wc product lookup regenerate --force`. The thread does not confirm that command was run, and the poster had already rebuilt lookup tables in the admin. Run `wp help wc product` on that server and confirm the subcommand exists before you use it. Do not paste it onto a host where `wp wc` is a different package. + +Afterward, check three variations: one that should be on sale, one that should not, and one with a future sale start date. Clear a full-page cache only after the editor and a logged-out browser agree. Also confirm you did not import a parent-row price and expect it to become the variation price. ## Why this is not an undo problem -Nothing in the November 2025 report says the sale price was deleted. The data was on the variation. The parent range and the lookup used by the shop had not caught up until a later save. Overwriting the sale to "fix" the range can create the real data loss the other articles are about. +Nothing in the November 2025 report says the sale price was deleted. The data was on the variation. The parent range and the lookup the shop used had not caught up until a later save. Overwriting the sale to "fix" the range can create the data loss in the [CSV restore guide](restore-sale-prices-overwritten-by-import.md). A resync cannot invent a price that is no longer stored. A [dated price export](woocommerce-price-history.md) is how you tell the two cases apart. + +## What WriteLeash 0.3.0 does not refresh -If a later import did clear the sale, you need the pre-import export. A resync cannot invent a price that is no longer stored. A [dated price export](woocommerce-price-history.md) is how you tell those two cases apart. +The directory listing opened on 10 November 2026 is WriteLeash 0.3.0. It does not regenerate lookup tables and does not make a stored sale appear on the shop. The listing says planned stored prices are not guaranteed shopper prices. A correct stored sale that the theme or a cache still hides is outside the plugin. -## What WriteLeash does here, and what it does not +The same listing says WooCommerce refreshes variable parent price ranges after each variation change. That sentence is about a variation change WriteLeash is making, not about an import WriteLeash did not run. If you are unsure the stored sale is right, do not run a WriteLeash job to "refresh" it. The step that made the sale appear in the November 2025 report was updating the product. -**Directory plugin, checked 27 October 2026.** [WriteLeash 0.2.2](https://wordpress.org/plugins/writeleash/) does not regenerate lookup tables and does not make a stored sale appear on the shop. Its listing also says previewed prices are planned stored prices, not guaranteed shopper prices. A correct stored sale that the theme or a cache still hides is outside the plugin. +Eligible Undo restores prices WriteLeash applied, within 30 days on the listing screenshot, when the saved record and the product still allow it. It does not restore a CSV import, and it does not fix a stale range. Undo does not reverse orders, emails, webhooks, or other plugins. Stock Undo is not supported. Ordinary price jobs do not change stock. It is not a firewall, not a sandbox, and not a universal agent-safe guarantee. Direct SQL, hostile plugins, and unmonitored writes are not covered. There is no guarantee when the grant store is unavailable. -WriteLeash is relevant only if you decide to change prices on purpose: +Requirements on the listing: WooCommerce 10.0.0 or newer and below 12.0.0 on WordPress 7.0 up to but not including 8.0, or WordPress 6.7 below 7.0 with WooCommerce 9.0.0 below 10.0.0. Exercised pairs named there include WordPress 7.0.1 and 7.1.2, WordPress 6.7.2 with WooCommerce 9.0.4, and WordPress 6.8.3 with WooCommerce 9.9.7. Other pairs are refused before a job is created. Published core simple products and published variations of published core variable products, base currency, up to 1,000 selected products per new job in the tested configuration. Parent prices are not edited directly. -- You can set a sale, calculate one from the reviewed regular price, or clear a sale to blank rather than zero. Sale dates stay as they are. Stock and orders stay as they are. -- Preview and approval are separate. A nonblank sale target has to stay below the regular price. -- If you are still unsure whether the current stored sale is right, do not run a WriteLeash job to "refresh" it. The step that made the sale appear in the November 2025 report was updating the product. A lookup-table rebuild had already failed for that store. -- Eligible Undo restores prices WriteLeash applied, for 30 days by default on the listing. It does not restore a CSV import, and it does not fix a stale range. -- Requirements on the listing: WordPress 7.0 or newer (7.0.1 and 7.1.2 exercised) and WooCommerce 10.0 through 11.x. Published core simple products and published variations of published core variable products, base currency, up to 1,000 selected products per new job in the tested configuration. Parent prices are not edited directly. +## Related guides -**Not the download.** [Pull request #330](https://github.com/MrDarkRoot/WriteLeash/pull/330) on the default branch certifies pairs: WordPress 7.0 up to but not including 8.0 with WooCommerce 10.0 up to but not including 12.0, or WordPress 6.7 up to but not including 7.0 with WooCommerce 9.0 up to but not including 10.0. Do not install 0.2.2 onto the legacy pair. Nothing in that pair rule makes WriteLeash a cache tool. +- [Restore a sale the import actually cleared](restore-sale-prices-overwritten-by-import.md) +- [Undo a bulk price edit without a reverse percentage](undo-woocommerce-bulk-price-edit.md) +- [Keep a dated CSV so you can tell a hidden sale from a deleted one](woocommerce-price-history.md) ## FAQ ### The variation sale price is correct and the shop is wrong. Do I import the CSV again? -No. Importing again can write over the sale you just confirmed. In the November 2025 report, updating the product made the sale appear after a lookup-table rebuild had not. Update one variable product and recheck the shop. +No. Importing again can overwrite the stored sale. In the November 2025 report, updating the product made the sale appear after a lookup-table rebuild had not. Update one variable product and recheck the shop. ### The variation sale price is empty. Is this the same bug? -No. The sale is not stored. Use the pre-import export and [restore the sale prices](restore-sale-prices-overwritten-by-import.md). +No. The sale is not stored. Restore it from the pre-import export. A resync cannot invent a price that is gone. ### Does a no-change bulk Update edit variation prices? -The [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) says the products-list bulk editor does not handle variable-product complexity. The November 2025 support reply still suggested a no-change Update as a resync. Do not type a new price into that form while you use it for this purpose. +The products-list bulk editor does not apply price changes to individual variations. A November 2025 support reply still suggested a no-change Update as a resync, and the thread never confirmed it was run. Do not type a new price into that form while you use it for this purpose. ### Can WriteLeash force the shop to show the sale? -No. The 0.2.2 listing does not regenerate product lookup tables. It also warns that a planned stored price is not a guaranteed shopper price. - -```json -{ - "@context": "https://schema.org", - "@graph": [ - { - "@type": "Article", - "headline": "Why an imported WooCommerce sale price can be saved and still not show", - "dateModified": "2026-10-27", - "description": "If the variation editor shows the sale and the shop shows the regular price, do not import prices again. Resync one product before you touch the file.", - "author": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" }, - "publisher": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" } - }, - { - "@type": "FAQPage", - "mainEntity": [ - { - "@type": "Question", - "name": "The variation sale price is correct and the shop is wrong. Do I import the CSV again?", - "acceptedAnswer": { "@type": "Answer", "text": "No. Importing again can overwrite the stored sale. In the November 2025 report, updating the product made the sale appear after a lookup-table rebuild had not. Update one variable product and recheck the shop." } - }, - { - "@type": "Question", - "name": "The variation sale price is empty. Is this the same bug?", - "acceptedAnswer": { "@type": "Answer", "text": "No. The sale is not stored. Restore it from the pre-import export." } - }, - { - "@type": "Question", - "name": "Does a no-change bulk Update edit variation prices?", - "acceptedAnswer": { "@type": "Answer", "text": "The products-list bulk editor is not the variation editor. A November 2025 support reply suggested a no-change Update as a resync. Do not type a new price into that form while using it for this purpose." } - }, - { - "@type": "Question", - "name": "Can WriteLeash force the shop to show the sale?", - "acceptedAnswer": { "@type": "Answer", "text": "No. WriteLeash 0.2.2 does not regenerate product lookup tables. Its listing says a planned stored price is not a guaranteed shopper price." } - } - ] - } - ] -} -``` - -Structured data template only. Do not emit it until this article has a public canonical URL. Add `datePublished` on that day. The affiliation above is required on the page. - -When you are ready to change stored prices on purpose, with a preview of the before and after, [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/) is the plugin maintained with this guide. It will not repair a stale shop range. +No. WriteLeash 0.3.0 does not regenerate product lookup tables. Its listing says a planned stored price is not a guaranteed shopper price. Stock Undo is not supported. Undo does not reverse orders, emails, webhooks, or other plugins. + +WriteLeash 0.3.0 previews a price you choose to change and can undo eligible prices it applied. It will not repair a stale shop range. The directory listing is [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/). The source is the [WriteLeash repository](https://github.com/MrDarkRoot/WriteLeash). diff --git a/docs/marketing/323-seo-content/articles/restore-sale-prices-overwritten-by-import.md b/docs/marketing/323-seo-content/articles/restore-sale-prices-overwritten-by-import.md index 51ff08e2..ea801206 100644 --- a/docs/marketing/323-seo-content/articles/restore-sale-prices-overwritten-by-import.md +++ b/docs/marketing/323-seo-content/articles/restore-sale-prices-overwritten-by-import.md @@ -1,36 +1,43 @@ --- -title: "How to restore WooCommerce sale prices a CSV import overwrote" +title: "Restore WooCommerce sale prices a CSV import overwrote" slug: restore-sale-prices-overwritten-by-import -meta_description: "A mapped WooCommerce CSV column is a write. Put sale prices back from the pre-import export, and set every other column to Do not import." -h1: "How to restore WooCommerce sale prices a CSV import overwrote" -intent: "Diagnose a sale price, sale schedule, or active price that changed during a product CSV update, then restore the previous values." +meta_description: "A mapped Sale price column overwrites the stored sale. Restore it from the pre-import export, and set every other column to Do not import." +h1: "Restore WooCommerce sale prices a CSV import overwrote" +card: "Put the old sale prices back from the pre-import export. On the mapping screen, set every other column to Do not import." +intent: "Put back a sale price or sale schedule that a product CSV update changed, without writing the rest of the catalog again." failure_family: "Import or plugin overwrite of sale prices" -affiliation: "WriteLeash is our product. This guide is not an independent review." -canonical_status: UNPUBLISHED -date_revised: 2026-10-27 +affiliation: "WriteLeash publishes this guide. It is not an independent review." +canonical_status: INTENDED +date_revised: 2026-11-10 --- -# How to restore WooCommerce sale prices a CSV import overwrote +# Restore WooCommerce sale prices a CSV import overwrote -**WriteLeash makes this guide.** We publish the [WriteLeash](https://wordpress.org/plugins/writeleash/) plugin. Everything in the recovery section uses WooCommerce's importer and an export you already have, or a backup. You do not need the plugin to do it. +Stop the sync or the scheduled import, then put the old sale back from the export you saved before the bad file. On the column mapping screen, set every column you are not restoring to **Do not import**. Test one SKU before the rest of the file. A second full import is how a correct sale gets overwritten again. -The usual mistake is a stock or title update that also contained price columns. WooCommerce's [CSV importer](https://woocommerce.com/document/product-csv-importer-exporter/) updates rows that match by ID or SKU when **Update existing products** is on. A column WooCommerce recognizes is mapped for you. Unrecognized columns are not imported. In WooCommerce 11.2 and later, a GTIN, UPC, EAN, or ISBN column defaults to **Do not import** and is used only when both ID and SKU are blank. The mapping screen's control for "do not touch this" is **Do not import**. +**WriteLeash publishes this guide.** It is not an independent review. The restore uses WooCommerce's importer and an export you already have, or a backup. You do not need WriteLeash to do it. -## What "blank" means in the official schema +## Put the sale prices back -The schema does not say a blank Sale price means "keep the current sale price." It does say what blank means for neighboring columns: +1. Pause any sync, feed, or scheduled import that might run the same file again. +2. Take the export from before the bad import. The [CSV guide](https://woocommerce.com/document/product-csv-importer-exporter/), opened on 10 November 2026, says an update matches by ID or SKU when **Update existing products** is on. In WooCommerce 11.2 and later, a mapped GTIN, UPC, EAN, or ISBN is used only when both ID and SKU are blank. +3. If you do not have that export, restore a database backup on staging and export the price columns there. Do not restore that backup over the live database if the store has taken orders since. Orders would roll back with the catalog. +4. Make a CSV with ID or SKU, Sale price, Date sale price starts, and Date sale price ends. Include Regular price when the regular price also changed. Delete every other column, or map those columns to **Do not import**. +5. Run that file on one SKU. Open the product. The sale price has to be strictly below the regular price, and the dates have to match the file. +6. Check the shop page, not only the editor. If the editor is right and the shop still shows the regular price, stop. That is [a saved sale the shop does not show](imported-sale-price-not-showing.md). Do not upload another price file to "refresh" it. +7. Import the remaining rows in batches. Read the importer's skipped-row report before you run the file again. The guide says not to refresh or leave the page while the import is running, and to split a file the server cannot finish. -- **Date sale price starts:** blank means no start date. -- **Date sale price ends:** blank means no end date. -- **Stock:** blank disables stock management. +The usual mistake is a stock or title update that still contains a Sale price column. A column WooCommerce recognizes is mapped for you. Unrecognized columns are not imported. The control for "do not touch this" is **Do not import**. -So a spreadsheet that looks empty is not automatically a no-op. On the mapping screen, set Sale price, both date columns, and Regular price to **Do not import** unless that file is the source of truth for those fields. +## What a blank cell means -There is a second, documented way to clear a sale without a CSV. On **Products > All Products > Bulk actions > Edit**, the [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) says **Set to regular price decreased by** with a blank value or 0 removes the sale price. +The schema on that same page does not say a blank Sale price means "keep the current sale price." It does say what blank means for neighboring columns: -On a variable product, the variation bulk action is different again. The [variable product guide](https://woocommerce.com/document/variable-product/) says **Set sale prices to regular prices decreased by** replaces any existing sale price and saves immediately. Entering 0 clears sale prices. Blank, non-numeric, or negative input leaves existing sale prices unchanged for that action. A regular price of 100 and an entry of 20% stores a sale price of 80. +- **Date sale price starts:** blank means no start date. +- **Date sale price ends:** blank means no end date. +- **Stock:** blank disables stock management. -## A one-row example +A spreadsheet that looks empty is not automatically a no-op. Set Sale price, both date columns, and Regular price to **Do not import** unless that file is the source of truth for those fields. Test one row even then. Before the import, two simple products: @@ -39,109 +46,58 @@ Before the import, two simple products: | CAP | 24.00 | 18.00 | none | | HOODIE | 80.00 | 64.00 | none | -You export the catalog, edit stock quantities, and clear the Sale price cells because you are not running a sale in that sheet. The Sale price header is still in the file. You import with **Update existing products** and leave Sale price mapped. +You export the catalog to edit stock, and you clear the Sale price cells because that sheet is not the sale. The Sale price header is still in the file. You import with **Update existing products** and leave Sale price mapped. Treat that as a price write until a one-row test proves otherwise. The safe stock-only file has no Sale price column, or that column is set to **Do not import**. Keep the original export. It is the restore file. -Treat that as a price write until a one-row test proves otherwise. The safe file for a stock-only update has no Sale price column, or that column is set to **Do not import**. Keep the original export. It is the restore file. +There is a second way to clear a sale that is not a CSV. On a variable product, the [variation bulk action](https://woocommerce.com/document/variable-product/) opened on 10 November 2026 saves immediately. **Set sale prices to regular prices decreased by** replaces any existing sale price. Entering 0 clears sale prices. Blank, non-numeric, or negative input leaves existing sale prices unchanged for that action. A regular price of 100 and an entry of 20% stores a sale price of 80. -A related clear can happen when the regular price moves. WooCommerce's current product data store, read from trunk on 27 October 2026, clears a sale price on a simple product or a variation when a save updates the regular or sale price and the sale price is greater than or equal to the regular price. Variable and grouped parents are outside that particular check because their customer price comes from children. Source: [`class-wc-product-data-store-cpt.php`](https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php). If you raised a sale or lowered a regular price into that overlap, restoring only the regular price does not put the sale back. Restore both columns from the known-good export. +On the products list, the [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) opened the same day says **Set to regular price decreased by** overrides the sale with the regular price decreased by a fixed amount or a percent, and that you should check the result. It also says a bulk edit that changes a regular or sale price clears the scheduled sale start and end dates. The October 2026 text of that page said a blank or 0 on that option removes the sale. The November page does not. This pass did not execute a blank sale field. Leave the field on **No change** unless you mean to write it. Products-list price edits apply to simple and external products, not to the variations of a variable product. -## Put the sale prices back - -1. Pause any sync, feed, or scheduled import that might run the same file again. Restoring prices and then letting the job repeat is how the overwrite returns. -2. Take the export from before the bad import. If you do not have one, export prices from a database backup restored on staging. Do not restore that backup over the live database if the store has taken orders since. Orders would roll back with the catalog. -3. Make a CSV with ID or SKU, Sale price, Date sale price starts, and Date sale price ends. Include Regular price when the regular price also changed. Delete every other column, or map those columns to **Do not import**. -4. On staging, or on one live SKU, run the import with **Update existing products**. -5. Open the product. Confirm the sale price is strictly below the regular price, and that the dates match the file. A sale that is not below the regular price does not behave as an active discount. -6. Check the shop page, not only the editor. If the editor shows the right sale and the shop still shows the regular price, stop importing. That is a different failure, covered in [why an imported sale price can be saved and still not show](imported-sale-price-not-showing.md). -7. Import the remaining rows in batches you can spot-check. - -The [CSV guide](https://woocommerce.com/document/product-csv-importer-exporter/) also says to back up and to test a small file before a large one, and to split files that are too big for the server. Read the importer's skipped-row report before you run the file again. +A sale can also disappear when the regular price moves under it. WooCommerce's product data store, read from trunk on 27 October 2026 and not re-run for this pass, clears a sale price on a simple product or a variation when a save updates the regular or sale price and the sale price is greater than or equal to the regular price. Variable and grouped parents are outside that particular check. Source: [`class-wc-product-data-store-cpt.php`](https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php). If you only restore the regular price, the sale may stay gone. Restore both columns from the known-good export. -A 2021 [r/woocommerce thread](https://www.reddit.com/r/woocommerce/comments/noey3k/is_there_an_easy_way_to_raise_all_the_prices_in/) shows the habit that leads here: export the price, edit it in a spreadsheet, import it. That works when the sheet is the source of truth. It overwrites whatever the sheet no longer contains. +A 2021 [r/woocommerce thread](https://www.reddit.com/r/woocommerce/comments/noey3k/is_there_an_easy_way_to_raise_all_the_prices_in/) shows the habit that leads here: export, edit the price in a spreadsheet, import. The thread text was retrieved through search on 27 October 2026. A direct fetch from this environment returned HTTP 403 then, and the URL was not opened as a page on 10 November 2026. The export, edit, and import habit is also what the CSV guide is for. It overwrites whatever the sheet no longer contains. ## Stop the next overwrite -- Keep a dated export of ID, SKU, Regular price, Sale price, and both date columns before every import. +- Keep a dated export of ID, SKU, Regular price, Sale price, and both date columns before every import. [That file is the price history](woocommerce-price-history.md). - Map price and date columns to **Do not import** on stock-only or title-only files. -- Give a supplier file its own staging test. Supplier headers rarely match WooCommerce's schema. The CSV guide's section on supplier files says to normalize them and to test one parent plus a few variations first. -- If a plugin syncs products from another store, a sheet, or a marketplace, read which fields it sends. A plugin that sends a full product payload can write prices even when you only changed stock in the source. This guide did not audit a named sync plugin. Pause the sync and compare one SKU before and after a run. -- Do not use a second import as a way to "refresh" a variable product whose variations already show the correct sale. Refresh and overwrite are different jobs. +- Normalize a supplier file and test one parent plus a few variations before the full catalog. The CSV guide's supplier section says to do that, and to read the skipped-row report instead of importing the full file again. +- If a plugin sends a full product payload, it can write prices when you only changed stock in the source. This guide did not audit a named sync plugin. Pause the sync and compare one SKU before and after a run. +- Do not use [a reverse percentage](undo-woocommerce-bulk-price-edit.md) as a substitute for the old sale prices. You need the old numbers. -## What WriteLeash does here, and what it does not +## What WriteLeash 0.3.0 does not restore -**Directory plugin, checked 27 October 2026.** [WriteLeash 0.2.2](https://wordpress.org/plugins/writeleash/) does not watch the CSV importer and does not undo an import. If the sale price is already gone, WriteLeash has no record of the old value unless WriteLeash itself wrote that price and the job is still eligible for Undo. +The directory listing opened on 10 November 2026 is WriteLeash 0.3.0. It does not watch the CSV importer and does not undo an import. If the sale is already gone, WriteLeash has no record of the old value unless WriteLeash itself wrote that price and the job is still eligible for Undo. -What a later WriteLeash price change does, on the published listing: +On a later price change made in WriteLeash, you choose Regular price or Sale price. A regular-price change keeps the existing sale price and its dates. Clear makes the sale price blank, not zero, and keeps its dates. A nonblank sale target has to stay below the regular price. Preview writes nothing. Approval is separate. If the stored price WriteLeash is about to change no longer matches the Preview, the newer value stays and the row is a conflict. That check is not a guard around the importer. -- You choose Regular price or Sale price. A regular-price change is specified to preserve the existing sale price and sale schedule. Set can add a first sale price. A discount can be calculated from each product's reviewed regular price. Clear makes the sale price blank, not zero, and keeps its dates. -- A nonblank sale target has to stay below the regular price. Clear and sale discounts use the reviewed regular price as their basis. -- Preview is a separate step from approval. If the stored price WriteLeash is about to change no longer matches the Preview, the newer value stays and the row is a conflict. That check is not a guard around the CSV importer. Another tool can still write before or after the job. -- Undo restores eligible prices WriteLeash applied, within 30 days by default on the listing. It does not restore an import. It does not reverse orders or other plugins' effects. WriteLeash creates no backup. -- Scope: published core simple products and published variations of published core variable products, base currency, up to 1,000 selected products per new job in the tested configuration. Stock, sale dates, and orders are not changed by those price operations. WordPress 7.0 or newer and WooCommerce 10.0 through 11.x, with 7.0.1 and 7.1.2 exercised. Not every 7.x release is claimed. +Undo restores eligible prices WriteLeash applied. The listing screenshot describes a 30-day window. Undo does not reverse orders, emails, webhooks, or other plugins. WriteLeash creates no backup. Stock Undo is not supported. Ordinary price jobs do not change stock. It is not a firewall, not a sandbox, and not a universal agent-safe guarantee. Direct SQL, hostile plugins, and unmonitored writes are not covered. There is no guarantee when the grant store is unavailable. -**Not the download.** After merged [pull request #330](https://github.com/MrDarkRoot/WriteLeash/pull/330), the GitHub default branch certifies WordPress 7.0 up to but not including 8.0 with WooCommerce 10.0 up to but not including 12.0, or WordPress 6.7 up to but not including 7.0 with WooCommerce 9.0 up to but not including 10.0. Cross pairs are refused. The directory plugin does not advertise the legacy pair. Grant-scoped stock changes in [issue #312](https://github.com/MrDarkRoot/WriteLeash/issues/312) are not a 0.2.2 feature you can turn on from the listing. Version 0.2.2's changelog mentions disabled-by-default foundations for bounded delegated price authority and does not document a sale-price lock. +Scope on the listing: published core simple products and published variations of published core variable products, base currency, up to 1,000 selected products per new job in the tested configuration. WordPress and WooCommerce are accepted as pairs: WooCommerce 10.0.0 or newer and below 12.0.0 on WordPress 7.0 up to but not including 8.0, or WordPress 6.7 below 7.0 with WooCommerce 9.0.0 below 10.0.0. Exercised examples named on the listing: WordPress 7.0.1 and 7.1.2 on the modern line, WordPress 6.7.2 with WooCommerce 9.0.4, and WordPress 6.8.3 with WooCommerce 9.9.7. Other pairs are refused before a job is created. The directory "Tested up to" field read 7.1.4. That is not a claim that 7.1.4 was one of the exercised pairs. -For a price log that covers imports, you need a tool that was recording before the import. [How to keep a price history](woocommerce-price-history.md) explains that limit. +Opt-in grants for bounded price and stock jobs stay off until an operator issues one. Upgrade from 0.2.2 does not create a grant. They do not roll back a CSV. [Limiting who can write prices](restrict-woocommerce-price-changes.md) is still a role, a key, and a password problem first. + +## Related guides + +- [Undo a bulk price edit from the pre-change CSV](undo-woocommerce-bulk-price-edit.md) +- [A sale that is saved but missing on the shop](imported-sale-price-not-showing.md) +- [Keep the dated export that makes this restore possible](woocommerce-price-history.md) ## FAQ ### Does a blank Sale price cell leave the current sale price alone? -The [CSV schema](https://woocommerce.com/document/product-csv-importer-exporter/) does not say that. It does say a blank sale date means no date, and a blank Stock cell disables stock management. Set Sale price to **Do not import** unless you intend to write it, and test one SKU. +The CSV schema opened on 10 November 2026 does not say that. It does say a blank sale date means no date, and a blank Stock cell disables stock management. Set Sale price to Do not import unless you intend to write it, and test one SKU. ### The variation shows the right sale, but the shop shows the regular price. Should I import again? -No. Read [why an imported sale price can be saved and still not show](imported-sale-price-not-showing.md). A second price file can overwrite a sale that was stored correctly. +No. Read the guide on a saved sale that the shop does not show. A second price file can overwrite a sale that was stored correctly. -### Will WriteLeash detect that a plugin changed the sale price? +### Will WriteLeash detect that an import changed the sale price? -No. Conflict checks run on the price WriteLeash is applying, against the Preview. They do not monitor the importer or other plugins. WriteLeash does not undo those writes. +No. WriteLeash checks the price it is about to apply against its Preview. It does not monitor the importer, and it does not undo that write. Stock Undo is not supported. ### Can I set the sale back with bulk edit instead of CSV? -Only if you know the exact sale price for every row. **Set to regular price decreased by** with a blank or 0 removes the sale price on the products-list screen. That is an easy second mistake. A CSV of the old sale prices is the cleaner restore. - -```json -{ - "@context": "https://schema.org", - "@graph": [ - { - "@type": "Article", - "headline": "How to restore WooCommerce sale prices a CSV import overwrote", - "dateModified": "2026-10-27", - "description": "A mapped WooCommerce CSV column is a write. Put sale prices back from the pre-import export, and set every other column to Do not import.", - "author": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" }, - "publisher": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" } - }, - { - "@type": "FAQPage", - "mainEntity": [ - { - "@type": "Question", - "name": "Does a blank Sale price cell leave the current sale price alone?", - "acceptedAnswer": { "@type": "Answer", "text": "The WooCommerce CSV schema does not say that. Set Sale price to Do not import unless you intend to write it, and test one SKU." } - }, - { - "@type": "Question", - "name": "The variation shows the right sale, but the shop shows the regular price. Should I import again?", - "acceptedAnswer": { "@type": "Answer", "text": "No. That can be a display or lookup sync problem. A second price file can overwrite a sale that was stored correctly." } - }, - { - "@type": "Question", - "name": "Will WriteLeash detect that a plugin changed the sale price?", - "acceptedAnswer": { "@type": "Answer", "text": "No. WriteLeash checks the price it is about to apply against its Preview. It does not monitor the importer or other plugins, and it does not undo those writes." } - }, - { - "@type": "Question", - "name": "Can I set the sale back with bulk edit instead of CSV?", - "acceptedAnswer": { "@type": "Answer", "text": "Only if you know the exact sale price for every row. The products-list option Set to regular price decreased by, with a blank or 0, removes the sale price. A CSV of the old sale prices is the cleaner restore." } - } - ] - } - ] -} -``` - -Structured data template only. Do not emit it until this article has a public canonical URL. Add `datePublished` on that day. The affiliation above is required on the page. - -If you want reviewed sale-price changes from here on, with a preview and eligible undo of the prices WriteLeash itself writes, the listing is [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/). It will not repair the import that already ran. +Only if you know the exact sale price for every row. On a variable product, variation bulk actions save immediately, and entering 0 clears sale prices. A CSV of the old sale prices is the cleaner restore. Undo does not reverse orders, emails, webhooks, or other plugins. + +WriteLeash 0.3.0 previews a later price change and can undo eligible prices it applied. It will not repair the import that already ran. The directory listing is [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/). The source is the [WriteLeash repository](https://github.com/MrDarkRoot/WriteLeash). diff --git a/docs/marketing/323-seo-content/articles/restrict-woocommerce-price-changes.md b/docs/marketing/323-seo-content/articles/restrict-woocommerce-price-changes.md index be317dba..5352df92 100644 --- a/docs/marketing/323-seo-content/articles/restrict-woocommerce-price-changes.md +++ b/docs/marketing/323-seo-content/articles/restrict-woocommerce-price-changes.md @@ -1,133 +1,80 @@ --- -title: "How to stop staff or an AI agent from changing WooCommerce prices" +title: "Stop staff and AI tools from changing WooCommerce prices" slug: restrict-woocommerce-price-changes -meta_description: "WooCommerce has no separate edit-price capability. Remove product-edit access, write-capable API keys, and application passwords you do not trust." -h1: "How to stop staff or an AI agent from changing WooCommerce prices" -intent: "Reduce who can write product prices, using WordPress roles, REST keys, and application passwords, without pretending a hidden field is a lock." -failure_family: "Staff or AI-agent price changes" -affiliation: "WriteLeash is our product. This guide is not an independent review." -canonical_status: UNPUBLISHED -date_revised: 2026-10-27 +meta_description: "WooCommerce has no price-only role. Remove product-edit access and revoke write keys. An opt-in grant is a bounded job, not a lock on every account." +h1: "Stop staff and AI tools from changing WooCommerce prices" +card: "Take away product-edit access, and revoke REST keys and application passwords you do not trust. Core has no price-only role." +intent: "Reduce who can write product prices, using WordPress roles, REST keys, and application passwords, and state the opt-in grant boundary without calling it a lock." +failure_family: "Staff or AI-tool price changes" +affiliation: "WriteLeash publishes this guide. It is not an independent review." +canonical_status: INTENDED +date_revised: 2026-11-10 --- -# How to stop staff or an AI agent from changing WooCommerce prices +# Stop staff and AI tools from changing WooCommerce prices -**WriteLeash makes this guide.** We publish the [WriteLeash](https://wordpress.org/plugins/writeleash/) plugin. The controls below are WordPress and WooCommerce. You can apply them without WriteLeash. The plugin section says, plainly, that the version on WordPress.org today does not lock staff or agents out of price fields. +Remove product editing from anyone who should not change prices, then revoke REST keys and application passwords you do not recognize. WooCommerce does not ship a permission called "edit prices." A person who can edit a product can change its regular price and its sale price. An AI tool is the same problem when it holds that user's password, an application password, a Write key, or a plugin that saves products as that user. -WooCommerce does not ship a permission called "edit prices." The [roles and capabilities guide](https://woocommerce.com/document/roles-capabilities/) says a Shop Manager can manage products: create, edit, delete, and publish products, including categories and tags. A person who can edit a product can change its regular price and its sale price, in the editor, in Quick Edit, in bulk edit, and in any tool that acts as that user. +**WriteLeash publishes this guide.** It is not an independent review. The controls below are WordPress and WooCommerce. You can apply them without WriteLeash. An opt-in grant, described later, is a bounded job for one WordPress user. It is not a lock on the whole store. -An AI agent is the same problem when it holds that user's password, an application password, a WooCommerce REST key with write access, or a plugin that writes products on the agent's behalf. +## What to change first -## What core actually gives you +1. Open **Users > All Users**. List every Administrator and Shop Manager. Remove the Shop Manager or Administrator role from anyone who only needs to view orders or pack shipments. +2. Open **WooCommerce > Settings > Advanced > REST API**. The [REST API guide](https://woocommerce.com/document/woocommerce-rest-api/), opened on 10 November 2026, says a key is Read, Write, or Read/Write, and that each key is tied to a WordPress user. Revoke Write and Read/Write keys you do not recognize. A reporting tool can use Read. The legacy REST API is no longer in WooCommerce core. +3. On each user's profile, revoke application passwords for a contractor, a script, or an assistant that is finished. WordPress documents them in [Application Passwords](https://developer.wordpress.org/advanced-administration/security/application-passwords/), last modified 14 October 2026 and opened on 10 November 2026. An application password authenticates as that user for API access. It is not a wp-admin password. If the user is a Shop Manager, the client can do what a Shop Manager can do, including product edits. +4. Before a person or a tool runs a bulk price change, export ID, SKU, Regular price, Sale price, and both sale dates. Name the file with the date. [That export is the undo file](undo-woocommerce-bulk-price-edit.md). +5. After the run, open two products and compare them with the export. -**Users > All Users** shows the role. Administrators and Shop Managers are the usual price writers. Customers are not. +Hiding the price box with CSS is not a test. Test the path you are worried about: Quick Edit, products-list bulk edit, the variation **Bulk actions** menu, **Products > Import** with **Update existing products**, and a REST client using that user's credentials. -The roles guide does not offer a warehouse role that can edit stock and cannot edit prices. It points at third-party role plugins and says WooCommerce does not endorse any specific one. The same page says WooCommerce support does not cover third-party plugins. Hiding the price box with CSS, or unchecking a checkbox that only hides a panel, is not a test. Test the path you are worried about: +## Why a copied role still edits prices -- Quick Edit on **Products > All Products** -- Bulk actions > Edit, and the variation **Bulk actions** menu inside a variable product -- **Products > Import** with **Update existing products** -- A REST client using that user's credentials +The [roles and capabilities guide](https://woocommerce.com/document/roles-capabilities/), opened on 10 November 2026, says a Shop Manager can manage products: create, edit, delete, and publish products, including categories and tags. Customers are not price writers. The page does not list a warehouse role that can edit stock and cannot edit prices. It points at third-party role plugins and says WooCommerce does not endorse any specific one. WooCommerce support does not cover those plugins. -In May 2023, the author of User Role Editor answered [Restricting Shop Manager Role](https://wordpress.org/support/topic/restricting-shop-manager-role/). The store wanted to block CSV import and export and stop product deletion. The reply says `edit_products` is the capability checked both for adding a product and for editing one, and that WooCommerce may reinitialize the `shop_manager` role on a later activation. The suggested approach there is a copied role, not a one-time edit of the built-in role. That thread is about import and delete, not about a dedicated price capability. It still describes the constraint you are working inside. +In May 2023, the author of User Role Editor answered [Restricting Shop Manager Role](https://wordpress.org/support/topic/restricting-shop-manager-role/). The store wanted to block CSV import and export and stop product deletion. The reply says `edit_products` is the capability checked both for adding a product and for editing one, and that WooCommerce may reinitialize the `shop_manager` role on a later activation. The suggested approach there is a copied role, not a one-time edit of the built-in role. That thread is about import and delete, not a dedicated price capability. Removing `import` and `export` on a copied role can hide buttons. It does not block REST or a direct import URL, and it does not block prices while `edit_products` remains. Retest after WooCommerce is activated again. -A 2020 thread, [Restrict shop admin from editing orders prices](https://wordpress.org/support/topic/restrict-shop-admin-from-editing-orders-prices/), is about order line prices, not catalog prices. WooCommerce support said there was no built-in feature to change the Shop Manager role and pointed at a role plugin. Do not read that reply as a catalog-price procedure. +A 2020 thread, [Restrict shop admin from editing orders prices](https://wordpress.org/support/topic/restrict-shop-admin-from-editing-orders-prices/), is about order line prices, not catalog prices. Support said there was no built-in feature to change the Shop Manager role. Do not read that reply as a catalog-price procedure. -## Keys and passwords that write prices +There is no measured count in this research for how often an assistant overwrites a price. Search volume for that task was not measured. What is public is that plugins advertise price writes. [AddSynapse](https://wordpress.org/plugins/addsynapse-store-assistant/) was named in this set on 27 October 2026 as a listing that says approved writes can include prices, sales, and stock. Those sentences are the other plugin's listing, not a security review and not a recommendation. If you connect one, read which WordPress user or key it uses, disconnect it when you are finished, and [export prices first](woocommerce-price-history.md). An approval card in a chat is only as good as that plugin's own enforcement. -**WooCommerce > Settings > Advanced > REST API.** The merchant documentation is [WooCommerce REST API](https://woocommerce.com/document/woocommerce-rest-api/). A key's permission is Read, Write, or Read/Write. A Write or Read/Write key can change products, including prices, for whatever that integration does. Revoke keys you do not recognize. Reporting tools can use Read. The developer overview is [Getting started with the WooCommerce REST API](https://developer.woocommerce.com/docs/getting-started-with-the-woocommerce-rest-api/). +Custom code can refuse a price change for a role. That is a development job, and it has to cover CSV, REST, Quick Edit, and bulk edit or it is only a visual block. This guide does not include that code. -**Application passwords.** WordPress documents them in [Application Passwords](https://developer.wordpress.org/advanced-administration/security/application-passwords/). An application password authenticates as that WordPress user. If the user is a Shop Manager, the client can do what a Shop Manager can do, including product edits. Revoke application passwords from each user's profile when a contractor, a script, or an assistant is done. The integration notes from when the feature shipped are in the [core post from 5 November 2020](https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/). +## What an opt-in grant does, and what it does not -There is no directory stat in this research for how often an agent overwrites a price. What is public, on 27 October 2026, is that several plugins advertise that an assistant can write prices: +WriteLeash 0.3.0 is the directory version opened on 10 November 2026. The active-installation bucket was fewer than 10. The listing was last modified on 28 October 2026. -- [StoreEdit AI for WooCommerce](https://wordpress.org/plugins/storeedit-ai/) says you can ask an assistant to raise regular prices or put a category on sale, and that a connected assistant acts as its own account. -- [AddSynapse](https://wordpress.org/plugins/addsynapse-store-assistant/) says approved writes can include prices, sales, and stock. -- [AI Agent by SiteGround](https://wordpress.org/plugins/sg-ai-studio/) lists creating and updating WooCommerce products, including price and stock, among the agent's tasks. -- [Wpbingo AI Commander](https://wordpress.org/plugins/wpbingo-ai-commander-for-woocommerce/) lists bulk regular and sale price commands. +Grants are opt-in jobs for bounded price and stock changes. They stay off until an operator issues one. Upgrade from 0.2.2 does not create a grant. No WordPress user is restricted until that grant exists. Ordinary price jobs do not change stock. Stock changes only on a grant, inside its scope, budget, and expiry. Stock Undo is not supported. -Those sentences are their listings, not a security review and not a recommendation. If you connect one, read which WordPress user or key it uses, disconnect it when you are finished, and export prices first. An approval card inside a chat is only as good as the plugin's own enforcement. Keep a [price export](woocommerce-price-history.md) either way. +A restricted WordPress user is denied on documented monitored WooCommerce write paths outside a matching Execution Frame. Those paths, in the plugin's grant contract, are WooCommerce REST product writes, product save, stock helpers, direct price and stock meta, and trash or delete. People who are not that restricted user keep normal WooCommerce behavior. WriteLeash does not intercept them. A Shop Manager who is not the grant actor can still edit prices in the product editor, in bulk edit, and in the importer. -## A practical cut-down +It is not a firewall, not a sandbox, and not a universal agent-safe guarantee. Direct SQL, hostile plugins, and unmonitored writes are not covered. There is no guarantee when the grant store is unavailable. The boundary does not cover administrators who are not the grant actor, third-party hook side effects, orders, refunds, coupons, tax, options, arbitrary meta, or a system cron running as user 0. The restricted account cannot remove its own restriction. This guide does not walk through issuing a grant. -1. List every Administrator and Shop Manager. Remove the role from anyone who only needs to view orders or pack shipments. -2. If someone must edit products but must not see the importer, the User Role Editor reply removed `import` and `export` on a copied role so those buttons disappear. That reply also said WooCommerce may rebuild `shop_manager` the next time WooCommerce is activated, so retest after that. A hidden button is not a block on REST or on a direct import URL. -3. Do not expect that copied role to block prices while `edit_products` remains. Price is part of editing the product. -4. Revoke unused REST keys and application passwords. -5. Before a person or an assistant runs a bulk price change, export ID, SKU, Regular price, Sale price, and the sale dates. Name the file with the date. Prefer staging for the first run. -6. After the run, open two products and compare them with the export. The [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) has no undo. The repair is in [how to undo an accidental bulk price edit](undo-woocommerce-bulk-price-edit.md). +Human Preview, separate approval, Apply, and eligible price Undo are unchanged. Preview writes nothing. If the stored price WriteLeash is changing, or another checked setting, no longer matches the Preview, the newer value stays and the row is a conflict. Product name, SKU, and category alone do not conflict. Eligible Undo restores prices WriteLeash applied, within 30 days on the listing screenshot, when the saved details and the product still allow it. Undo does not reverse orders, emails, webhooks, or other plugins. WriteLeash creates no backup. It does not undo a price someone already changed in WooCommerce itself. -Custom code can block `set_regular_price` for a role. That is a development job, and it has to cover CSV, REST, Quick Edit, and bulk edit or it is only a visual block. This guide does not include that code. +Requirements on the listing: WooCommerce 10.0.0 or newer and below 12.0.0 on WordPress 7.0 up to but not including 8.0, or WordPress 6.7 below 7.0 with WooCommerce 9.0.0 below 10.0.0. Exercised pairs named there: WordPress 7.0.1 and 7.1.2 on the modern line, WordPress 6.7.2 with WooCommerce 9.0.4, and WordPress 6.8.3 with WooCommerce 9.9.7. Other pairs are refused before a job is created. The "Tested up to" field read 7.1.4 and is not that exercised list. Scope is published core simple products and published variations of published core variable products, base currency, up to 1,000 selected products per new job in the tested configuration. Multisite is unsupported. Real managed or shared hosting has not been tested. -## What WriteLeash does here, and what it does not +## Related guides -**The installable plugin does not restrict staff or agents.** Checked 27 October 2026, [WriteLeash 0.2.2](https://wordpress.org/plugins/writeleash/) is a preview, conflict check, history, and eligible undo tool for price changes made through WriteLeash. A Shop Manager can still use the normal product editor, bulk edit, and importer. A REST key with write access can still change prices. The 0.2.2 changelog says the release added disabled-by-default foundations for bounded delegated price authority. The public listing does not document a grant screen or a staff lock. Do not turn those foundations on from this article. They are not the control described below. - -If someone uses WriteLeash for a price change, they get a before-and-after Preview, a separate approval, and a conflict when the stored price changed after the Preview. Eligible Undo, 30 days by default on the listing, restores prices WriteLeash applied when the product still matches. It does not undo a price that person changed in WooCommerce itself. Requirements on the listing: WordPress 7.0 or newer, WooCommerce 10.0 through 11.x. Exercised WordPress points are 7.0.1 and 7.1.2. Stock, sale dates, and orders are not changed by those price operations. - -**Repository work that is not the directory download.** [Issue #312](https://github.com/MrDarkRoot/WriteLeash/issues/312) and the readme on the default branch after [pull request #330](https://github.com/MrDarkRoot/WriteLeash/pull/330) describe an opt-in restriction for one WordPress user: monitored WooCommerce write paths are denied outside a matching execution frame, and price or stock jobs for that user go through a grant with a frozen scope, a budget, and an expiry. The same text says this is not a firewall, not a sandbox, and not a universal agent-safe guarantee. It does not cover administrators who are not that grant actor, direct SQL, hostile plugins, unmonitored write paths, orders, refunds, coupons, or user-0 system cron. Stock undo is not supported. That behavior is not what the Install button served on 27 October 2026. This guide does not walk through issuing a grant. - -Compatibility on that unreleased branch is a pair: WordPress 7.0 up to but not including 8.0 with WooCommerce 10.0 up to but not including 12.0, or WordPress 6.7 up to but not including 7.0 with WooCommerce 9.0 up to but not including 10.0. Do not mix those bands, and do not expect 0.2.2 to implement the legacy pair. +- [Undo a bulk price edit from the pre-change CSV](undo-woocommerce-bulk-price-edit.md) +- [Restore sale prices a CSV import overwrote](restore-sale-prices-overwritten-by-import.md) +- [Keep a dated export before the next price change](woocommerce-price-history.md) ## FAQ ### Can I let a Shop Manager edit stock but not prices? -Not with a core capability. The [roles guide](https://woocommerce.com/document/roles-capabilities/) ties product editing to one manage-products grant. A role editor that only hides the price field still leaves Quick Edit, bulk edit, CSV, and REST to test. +Not with a core capability. The roles guide ties product editing to one manage-products grant. A role editor that only hides the price field still leaves Quick Edit, bulk edit, CSV, and REST to test. ### Does removing the Import button stop price changes? -No. It can stop one screen. Bulk edit, Quick Edit, and a write-capable REST key remain. - -### Is WriteLeash the way to lock an AI agent out of prices today? - -No. The published 0.2.2 listing does not provide that lock. Use roles, REST key permissions, and application passwords. Treat the grant work in issue #312 as unpublished relative to the directory. - -### If I do let someone bulk-edit prices, what limits the damage? - -Export first. On the products screen, Update is the write, and there is no documented undo. WriteLeash helps only when the change is made through WriteLeash: preview, a separate approval, conflict retention for a price that moved after preview, and eligible undo of prices it applied. - -```json -{ - "@context": "https://schema.org", - "@graph": [ - { - "@type": "Article", - "headline": "How to stop staff or an AI agent from changing WooCommerce prices", - "dateModified": "2026-10-27", - "description": "WooCommerce has no separate edit-price capability. Remove product-edit access, write-capable API keys, and application passwords you do not trust.", - "author": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" }, - "publisher": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" } - }, - { - "@type": "FAQPage", - "mainEntity": [ - { - "@type": "Question", - "name": "Can I let a Shop Manager edit stock but not prices?", - "acceptedAnswer": { "@type": "Answer", "text": "Not with a core capability. Product editing is one grant. Hiding the price field still leaves Quick Edit, bulk edit, CSV, and REST to test." } - }, - { - "@type": "Question", - "name": "Does removing the Import button stop price changes?", - "acceptedAnswer": { "@type": "Answer", "text": "No. Bulk edit, Quick Edit, and a write-capable REST key can still change prices." } - }, - { - "@type": "Question", - "name": "Is WriteLeash the way to lock an AI agent out of prices today?", - "acceptedAnswer": { "@type": "Answer", "text": "No. WriteLeash 0.2.2 on WordPress.org does not provide that lock. Use roles, REST key permissions, and application passwords." } - }, - { - "@type": "Question", - "name": "If I do let someone bulk-edit prices, what limits the damage?", - "acceptedAnswer": { "@type": "Answer", "text": "Export first. WooCommerce bulk edit has no documented undo. WriteLeash helps when the change is made through WriteLeash, with a preview, separate approval, conflict retention, and eligible undo of prices it applied." } - } - ] - } - ] -} -``` - -Structured data template only. Do not emit it until this article has a public canonical URL. Add `datePublished` on that day. The affiliation above is required on the page. - -[WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/) is useful when the people who may change prices do that work through a preview. It is not a role editor, and it is not the agent lock described in unpublished repository work. +No. It can hide one screen. Bulk edit, Quick Edit, and a write-capable REST key remain. + +### Does WriteLeash 0.3.0 lock every AI tool out of prices? + +No. A grant restricts one WordPress user, and only after an operator issues it. It is not a firewall. Accounts that are not that user can still edit products. Use roles, REST key permissions, and application passwords either way. + +### If someone may bulk-edit prices, what limits the damage? + +Export first. On the products screen, Update is the write, and the bulk editing guide has no undo. The repair is in the bulk-edit guide linked above. WriteLeash helps only when the change is made through WriteLeash. Stock Undo is not supported. Undo does not reverse orders, emails, webhooks, or other plugins. + +WriteLeash 0.3.0 is a preview and an eligible price Undo for changes it applies, plus an opt-in grant that stays off until you issue it. It is not a role editor. The directory listing is [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/). The source is the [WriteLeash repository](https://github.com/MrDarkRoot/WriteLeash). diff --git a/docs/marketing/323-seo-content/articles/undo-woocommerce-bulk-price-edit.md b/docs/marketing/323-seo-content/articles/undo-woocommerce-bulk-price-edit.md index 08364baf..26e2f2d9 100644 --- a/docs/marketing/323-seo-content/articles/undo-woocommerce-bulk-price-edit.md +++ b/docs/marketing/323-seo-content/articles/undo-woocommerce-bulk-price-edit.md @@ -1,54 +1,50 @@ --- -title: "How to undo an accidental WooCommerce bulk price edit" +title: "Undo a WooCommerce bulk price edit from the pre-change CSV" slug: undo-woocommerce-bulk-price-edit -meta_description: "WooCommerce bulk edit writes prices on Update and documents no undo. Restore them from a CSV or backup, and do not reverse a percentage with itself." -h1: "How to undo an accidental WooCommerce bulk price edit" +meta_description: "WooCommerce bulk edit writes prices on Update and has no undo. Restore them from a dated CSV. A 20% cut is not fixed by raising 20%." +h1: "Undo a WooCommerce bulk price edit from the pre-change CSV" +card: "Restore the old prices from a CSV taken before the bulk edit. Do not reverse a percentage cut with the same percentage." intent: "Recover regular or sale prices after the products-list bulk editor or the variation bulk actions wrote the wrong numbers." failure_family: "Accidental bulk price edit" -affiliation: "WriteLeash is our product. This guide is not an independent review." -canonical_status: UNPUBLISHED -date_revised: 2026-10-27 +affiliation: "WriteLeash publishes this guide. It is not an independent review." +canonical_status: INTENDED +date_revised: 2026-11-10 --- -# How to undo an accidental WooCommerce bulk price edit +# Undo a WooCommerce bulk price edit from the pre-change CSV -**WriteLeash makes this guide.** We publish the [WriteLeash](https://wordpress.org/plugins/writeleash/) plugin. The recovery steps below use WooCommerce itself. You do not need WriteLeash to follow them. The section near the end says what the plugin does and what it does not do. +Stop. Do not raise the prices by the same percentage you just cut, and do not upload another price file until you know the old numbers. WooCommerce writes the new prices when you press **Update**. The [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/), opened on 10 November 2026, does not describe an undo control. It says to edit the affected products again if a value is wrong. The repair is a CSV exported before the mistake: keep ID or SKU and the price columns you mean to put back, and set every other column to **Do not import**. -WooCommerce's own [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) tells you to select products, choose **Edit**, change the Price or Sale field, and press **Update**. That page does not describe an undo button. Once Update finishes, the new prices are the stored prices. +**WriteLeash publishes this guide.** It is not an independent review. The steps use WooCommerce. You do not need WriteLeash to follow them. -There are still ways to get the old numbers back. They depend on an export, a backup, or arithmetic you can check. They are not a hidden undo command. +## Restore the old prices first -## Two different bulk editors +Work on a staging copy if you have one. On a live store, change one SKU and read it back before you touch the rest. -Use the screen you actually used. They do not write the same rows. - -**Products > All Products > Bulk actions > Edit.** This is the screen in the [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/). Its Price field offers: - -- Change to -- Increase existing price by a fixed amount or a percent -- Decrease existing price by a fixed amount or a percent +1. Stop scheduled imports, sync tools, and a second bulk edit. A repair that runs twice is how the bad price returns. +2. Find a CSV from **Products > All Products > Export** that was saved before the edit. The [CSV guide](https://woocommerce.com/document/product-csv-importer-exporter/), opened the same day, matches updates by ID or SKU when **Update existing products** is on. +3. Build a restore file with the identifier and only the price columns you intend to write. Include **Date sale price starts** and **Date sale price ends** if a schedule was cleared. Delete every other column, or set those columns to **Do not import** on the mapping screen. +4. Import one row. Open the product and compare the regular price, the sale price, and both dates with the file. Then import the rest in batches you can check. +5. If you have no pre-change export, restore a database backup onto staging, export the price columns from staging, and import those columns into the live store with the same mapping. Do not restore the live database over a store that has taken orders since the backup. Those orders roll back with the prices. +6. An order line is the amount that customer was charged. It is not a catalog history. Products that did not sell are missing from it. -Its Sale field offers Change to, Increase existing sale price, Decrease existing sale price, and **Set to regular price decreased by**. The same guide says this screen works best with simple products and cannot edit the complexities of variable, grouped, or other complicated products. +A products-list bulk edit that changes a regular or sale price also clears the scheduled sale start and end dates. The same guide says to set the schedule again on each affected product if you still need it. Putting the date columns back from the old export is the direct way to do that. This pass did not re-run that clear in a store. -**A variable product > Variations > Bulk actions.** This is a different menu, documented on the [variable product page](https://woocommerce.com/document/variable-product/). Those actions apply to the variations of that one product. WooCommerce's current page says the change saves immediately. For **Set sale prices to regular prices decreased by**, a regular price of 100 and an entry of 15 stores a sale price of 85. An entry of 20% stores 80. Entering 0 clears existing sale prices. Blank, non-numeric, or negative input leaves existing sale prices unchanged for that action. Variations with no regular price are skipped. The sale price cannot go below zero. +Leave Price and Sale on **No change** unless you mean to write them. The guide says a field left on **No change** keeps its current value. The October 2026 text of that page said a blank or 0 on **Set to regular price decreased by** removes the sale. The page opened on 10 November 2026 no longer says that. Do not treat a blank box as either safe or as a documented clear. This research did not execute the blank field. -Quick Edit is a third path. The bulk editing guide says it is the same kind of form for one product, and it shows that product's current values. It also writes when you update. It is not an undo of a previous bulk edit. +If the editor shows the old sale and the shop still shows the regular price, stop importing. That is [a saved sale the shop does not show](imported-sale-price-not-showing.md). If the sale field itself is empty, use [the CSV sale restore](restore-sale-prices-overwritten-by-import.md). Installing a history plugin after the edit does not recreate the lost values. [Keep a dated export next time](woocommerce-price-history.md). -## A concrete simple-product example +## Do not reverse a percentage with itself Store currency with two decimal places. Three published simple products, no sale prices: -| SKU | Regular price before | After Decrease existing price by 20% | +| SKU | Regular price before | After a 20% decrease | | --- | --- | --- | | HOODIE | 80.00 | 64.00 | | CAP | 24.00 | 19.20 | | MUG | 12.50 | 10.00 | -Those three results are exact at two decimals: each old price times 0.8. A February 2026 thread, [bulk edit and decimal places](https://wordpress.org/support/topic/bulk-edit-price-decimal-places-bug/), is from a store on WooCommerce 10.4.3 and WordPress 6.9.1. Support said bulk edit saves with the store's decimal setting and, in that reply, with the usual two-decimal precision. The store owner then reported that export, edit, and import kept four decimals, and support agreed that workflow did. If your store keeps four decimal places, do not assume the bulk editor preserved them. - -## Why "increase by 20%" does not undo "decrease by 20%" - -Increasing the new prices by 20% does not return the old prices: +Those three results are exact at two decimals: each old price times 0.8. Increasing the new prices by 20% does not return the old prices: | SKU | After the 20% decrease | Increase that result by 20% | Original | | --- | --- | --- | --- | @@ -56,135 +52,62 @@ Increasing the new prices by 20% does not return the old prices: | CAP | 19.20 | 23.04 | 24.00 | | MUG | 10.00 | 12.00 | 12.50 | -The inverse of "multiply by 0.8" is "multiply by 1.25", which is a 25% increase: - -| SKU | 25% increase of the decreased price | Original | -| --- | --- | --- | -| HOODIE | 80.00 | 80.00 | -| CAP | 24.00 | 24.00 | -| MUG | 12.50 | 12.50 | +The inverse of multiplying by 0.8 is multiplying by 1.25, a 25% increase. That lands on 80.00, 24.00, and 12.50 only when every row in the batch was decreased by the same percentage, the stored results match the arithmetic, and nobody has edited those prices since. A fixed decrease of 5.00 is reversed by a fixed increase of 5.00 under the same conditions. Rounding can break the reverse. At two decimals, 19.99 times 0.85 is 16.9915 and rounds to 16.99. That figure is arithmetic, not a price this research measured inside WooCommerce. Check one product before you touch the rest. -Use that inverse only when every product in the batch was decreased by the same percentage, the stored results match the arithmetic, and nobody has edited those prices since. A fixed decrease of 5.00 is reversed by a fixed increase of 5.00 under the same conditions. Rounding can break the reverse. At two decimals, 19.99 times 0.85 is 16.9915 and rounds to 16.99. That figure is arithmetic, not a price this research measured inside WooCommerce. Check the reverse on one product before you touch the rest. +A merchant reported the same surprise in [woocommerce/woocommerce#17885](https://github.com/woocommerce/woocommerce/issues/17885) on 23 November 2017, as read for the 27 October 2026 pass: after a percentage decrease, increasing by that same percentage did not put the old sale price back. The issue was closed the same day for a different reason. **Decrease existing sale price** does nothing unless a sale price already exists. The thread does not name a later release that changes the arithmetic. -A merchant reported the same surprise in [woocommerce/woocommerce#17885](https://github.com/woocommerce/woocommerce/issues/17885) on 23 November 2017: after a percentage decrease, increasing by that same percentage did not put the old sale price back. The issue itself was closed the same day for a different reason. **Decrease existing sale price** does nothing unless the product already has a sale price. There is no percentage-calculation defect in that thread, and the thread names no later release that changes the arithmetic. Use the tables above. Do not treat a second bulk edit as undo unless you have checked the numbers. +A bulk edit can also stop halfway. [woocommerce/woocommerce#37681](https://github.com/woocommerce/woocommerce/issues/37681), opened in April 2023 and cited on 27 October 2026, describes a sale-price bulk edit that hit a blank regular price and left the list partly updated. That bug is not a claim about today's code. Export the current prices before a repair so you can see which rows moved. -A bulk edit can also stop halfway. [woocommerce/woocommerce#37681](https://github.com/woocommerce/woocommerce/issues/37681), opened in April 2023, describes a sale-price bulk edit that hit a blank regular price, threw an error, and left the list partly updated. That bug is not a claim about today's code. It is a reason to export the current prices before you run a repair, so you can see which rows moved. +A February 2026 support thread, [bulk edit and decimal places](https://wordpress.org/support/topic/bulk-edit-price-decimal-places-bug/), was read on 27 October 2026 and not re-opened for this pass. It was one store on WooCommerce 10.4.3. Support said bulk edit saved with the store's decimal setting. Do not assume a four-decimal price survived the bulk editor. Read the product after one row. -## Restore the old prices without a plugin +## Which bulk editor you used -Work on a staging copy if you have one. On production, change one SKU first and read it back in the product editor. +Use the screen you actually used. They do not write the same rows. -1. Stop. Do not run another bulk edit, import, or sync until you know the before-values. -2. Find a CSV exported before the mistake. WooCommerce's exporter is **Products > All Products > Export**. The [CSV guide](https://woocommerce.com/document/product-csv-importer-exporter/) says an update matches existing products by ID or SKU. -3. Build a restore file with only the identifier column and the price columns you intend to put back. On the column mapping screen, set every other column to **Do not import**. Turn on **Update existing products**. -4. Import one row. Open that product and confirm the regular price, the sale price, and the sale dates. Then import the rest in batches you can check. -5. If you have no pre-change export, restore a database backup onto staging, export the prices from staging, and import those prices into the live store with the same mapping. Do not restore the live database over a store that has taken orders since the backup. Those orders roll back with the prices. -6. An order line shows the amount that customer was charged. It is not a catalog history. Products that did not sell are missing from it. +**Products > All Products > Bulk actions > Bulk edit, then Apply.** The guide opened on 10 November 2026 says the Price field can change to a value, or increase or decrease the existing price by a fixed amount or a percent. The Sale field can change to a value, increase or decrease the existing sale, or set the sale to the regular price decreased by a fixed amount or a percent. It says to check the resulting sale price after that last option. By default, bulk price changes on this screen apply to simple and external products, not to the individual variations of a variable product. The edit applies to the products selected on the current page. A large page can strain the server. -Installing a price-history plugin after the edit does not recreate the lost values. Those tools record from the moment they are active. See [how to keep a price history](woocommerce-price-history.md) for the habit that helps next time. +**One variable product > Variations > Bulk actions.** This is a different menu, on the [variable product page](https://woocommerce.com/document/variable-product/) opened the same day. Those actions save immediately to the variations of that one product. For **Set sale prices to regular prices decreased by**, a regular price of 100 and an entry of 15 stores a sale price of 85. An entry of 20% stores 80. The action replaces any existing sale price. Entering 0 clears existing sale prices. Blank, non-numeric, or negative input leaves existing sale prices unchanged for that action. Cancel leaves them unchanged. Variations with no regular price are skipped. The sale price cannot go below zero. -If the bulk edit cleared sale prices, use [restore sale prices a CSV import overwrote](restore-sale-prices-overwritten-by-import.md). The products-list guide says **Set to regular price decreased by** with a blank value or 0 removes the sale price. That is a write, not a no-op. +Quick Edit is a third path. It shows that product's current values and writes when you update. It is not an undo of a previous bulk edit. -## What WriteLeash does here, and what it does not +## What WriteLeash 0.3.0 will and will not undo -**Directory plugin, checked 27 October 2026.** [WriteLeash 0.2.2](https://wordpress.org/plugins/writeleash/) requires WordPress 7.0 or newer and WooCommerce 10.0 through 11.x. WordPress 7.0.1 and 7.1.2 were exercised. That is not a promise that every 7.x release was tested. +The WordPress.org directory page was opened on 10 November 2026. The listed version is WriteLeash 0.3.0. The active-installation bucket was fewer than 10. The listing was last modified on 28 October 2026. The "Tested up to" field read 7.1.4. That field is not the list of versions the requirements text says were exercised. -If the bad write was the products-list bulk editor, Quick Edit, or the variation bulk actions, WriteLeash Undo does not reverse it. Undo restores eligible prices that WriteLeash itself applied, inside its window, when the current product still matches the saved record. The listing's default window is 30 days. Availability does not mean every row will restore. Undo does not reverse orders, completed sales, emails, webhooks, remote requests, external queues, or other plugins' effects. WriteLeash does not create a backup. +If the bad write was the products list, Quick Edit, or the variation bulk actions, WriteLeash Undo does not reverse it. Undo restores eligible prices that WriteLeash itself applied, when the saved details and the current product still allow it. The listing screenshot describes eligible Undo within 30 days. Availability does not mean every row will restore. Undo does not reverse orders, completed sales, emails, webhooks, remote requests, external queues, or other plugins' effects. WriteLeash does not create a backup. Stock Undo is not supported. -If you make the next price change with WriteLeash, the useful part is earlier in the workflow: +For a later change made in WriteLeash, Preview shows the before and after and writes nothing. Approval is a separate step. If the stored price WriteLeash is changing, or another checked setting, no longer matches the Preview, WriteLeash leaves the newer value and marks a conflict. Product name, SKU, and category alone do not cause that conflict. A value that moves away and comes back may not be detected. A regular-price change keeps the existing sale price and its dates. Ordinary price jobs do not change stock or orders. Clear makes a sale price blank, not zero. -- Preview shows the stored before and after for the regular or sale price you chose. A separate approval is required. Changing the selection or the operation requires a new Preview. -- If the stored price WriteLeash is changing no longer matches the Preview, WriteLeash leaves the newer value and marks a conflict. Product name, SKU, and category alone do not cause that conflict. A value that changes away and then back may not be detected. -- Eligible Undo applies only to prices WriteLeash applied. The public listing says a changed relevant value can leave a row unrestored. In the 0.2.2 package, the undo code goes further on one case: restoring a regular price stops as a conflict when that restored regular price would be less than or equal to a sale price now stored on the product, instead of clearing the newer sale. A sale-price undo writes the saved sale price back through WooCommerce's product save. Neither case is a promise that every later sale survives. -- Scope on the 0.2.2 listing: published core simple products and published variations of published core variable products, in the base store currency, up to 1,000 selected products per new job in the tested configuration. Parent prices are not edited directly. Custom product types are unsupported. Multisite is unsupported. Real managed or shared hosting has not been tested. Ordinary price changes do not change sale dates, stock, or orders. Planned stored prices are not guaranteed shopper prices. +Scope on that listing: published core simple products and published variations of published core variable products, in the base currency, up to 1,000 selected products per new job in the tested configuration. Parent prices are not edited directly. Custom product types are unsupported. Multisite is unsupported. Real managed or shared hosting has not been tested. Planned stored prices are not guaranteed shopper prices. -**Not the download.** The GitHub default branch, after merged [pull request #330](https://github.com/MrDarkRoot/WriteLeash/pull/330), certifies pairs rather than every combination: WordPress 7.0 up to but not including 8.0 with WooCommerce 10.0 up to but not including 12.0, or WordPress 6.7 up to but not including 7.0 with WooCommerce 9.0 up to but not including 10.0. Other pairs are refused before a job is created. Do not install the directory plugin on WordPress 6.7 and expect that pair. Restricted-agent and stock-on-a-grant behavior in [issue #312](https://github.com/MrDarkRoot/WriteLeash/issues/312) is not part of the 0.2.2 listing. +Requirements, from the listing and the plugin readme: WooCommerce 10.0 through 11.x on WordPress 7.0 up to 8.0 only (10.0.0 or newer, below 12.0.0), or the legacy band of WordPress 6.7 below 7.0 with WooCommerce 9.0.0 below 10.0.0. Exercised pairs named there: WordPress 7.0.1 and 7.1.2 on the modern line, WordPress 6.7.2 with WooCommerce 9.0.4, and WordPress 6.8.3 with WooCommerce 9.9.7. Other pairs are refused before a job is created. -Some other bulk editors preview before they save, or undo only before save. [PW WooCommerce Bulk Edit](https://wordpress.org/plugins/pw-bulk-edit/) says nothing is written until you click Save, and you can undo before that. That is a different moment from restoring a price that is already stored. Read the current listing of any tool you install. This guide is not a ranking. +Opt-in grants for bounded price and stock jobs shipped in 0.3.0. They stay off until an operator issues one. Upgrade from 0.2.2 does not create a grant. A restricted WordPress user is denied on documented monitored WooCommerce write paths outside a matching Execution Frame. It is not a firewall, not a sandbox, and not a universal agent-safe guarantee. Direct SQL, hostile plugins, and unmonitored writes are not covered. There is no guarantee when the grant store is unavailable. [Who can still change a price](restrict-woocommerce-price-changes.md) is a separate job from undoing one. -## A short rule for the next sale +Other bulk editors may preview before they save, or keep a snapshot of their own runs. [Bulk Price Editor for WooCommerce](https://wordpress.org/plugins/bulk-price-editor-for-woocommerce/) 2.5.1 was opened on 10 November 2026. Its FAQ still says the plugin does not have an undo feature. Its 2.5.0 changelog, dated 1 September 2026, says each bulk update stores previous prices and marks one-click revert as premium. Read the version you install. This guide is not a ranking. -Export ID, SKU, Regular price, Sale price, and both sale-date columns. Name the file with the date. Run the bulk edit on a category or a handful of SKUs you can count. Open two products and compare them with the export. Then do the rest. +## Related guides -If you want that preview and the option to restore eligible prices from the tool that wrote them, [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/) is the plugin this guide is about. It will not undo the bulk edit you have already saved. +- [Restore sale prices a CSV import overwrote](restore-sale-prices-overwritten-by-import.md) +- [Why a saved sale can be missing on the shop](imported-sale-price-not-showing.md) +- [Keep a WooCommerce price history with a dated CSV](woocommerce-price-history.md) ## FAQ ### Does WooCommerce include an undo for bulk price edits? -The [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) and the [variation bulk-action section](https://woocommerce.com/document/variable-product/) describe the write. They do not describe an undo control. A backup, an older export, or a history tool that was already recording are the recovery paths. +No. The bulk editing guide opened on 10 November 2026 describes Update and says to edit the products again if a value is wrong. It does not describe an undo control. A backup, an older export, or a history tool that was already recording are the recovery paths. + +### Will increasing by 20% undo a 20% decrease? + +No. In the example above, a 20% decrease is reversed by a 25% increase, and only when the stored prices are exactly the decreased values and nothing else has changed them. ### Will product revisions put the old price back? -Do not plan on it. Confirm on a staging copy, on one product, whether restoring a revision restores `_regular_price` and `_sale_price`. This guide did not find WooCommerce documenting revisions as a price undo. +Do not plan on it. This guide did not find WooCommerce documenting revisions as a price undo. Confirm on a staging copy, on one product, before you count on a revision to restore the regular price and the sale price. -### Can I undo a 20% decrease by increasing 20%? +### Will WriteLeash undo a bulk edit that already ran? -No. In the example above, a 20% decrease is reversed by a 25% increase, and only when the stored prices are exactly the decreased values and nothing else has changed them. +No. WriteLeash Undo restores eligible prices WriteLeash applied. A native bulk edit is outside that history. Stock Undo is not supported. Undo does not reverse orders, emails, webhooks, or other plugins. -### Will WriteLeash undo a bulk edit I already ran in WooCommerce? - -No. WriteLeash Undo restores eligible prices WriteLeash applied. A native bulk edit is outside that history. - -```json -{ - "@context": "https://schema.org", - "@graph": [ - { - "@type": "Article", - "headline": "How to undo an accidental WooCommerce bulk price edit", - "dateModified": "2026-10-27", - "description": "WooCommerce bulk edit writes prices on Update and documents no undo. Restore them from a CSV or backup, and do not reverse a percentage with itself.", - "author": { - "@type": "Organization", - "name": "WriteLeash", - "url": "https://wordpress.org/plugins/writeleash/" - }, - "publisher": { - "@type": "Organization", - "name": "WriteLeash", - "url": "https://wordpress.org/plugins/writeleash/" - } - }, - { - "@type": "FAQPage", - "mainEntity": [ - { - "@type": "Question", - "name": "Does WooCommerce include an undo for bulk price edits?", - "acceptedAnswer": { - "@type": "Answer", - "text": "The official bulk editing guide and the variation bulk-action section describe the write. They do not describe an undo control. Recovery uses a backup, an older export, or a history tool that was already recording." - } - }, - { - "@type": "Question", - "name": "Will product revisions put the old price back?", - "acceptedAnswer": { - "@type": "Answer", - "text": "Do not plan on it. Confirm on a staging copy whether restoring a revision restores the regular and sale prices. WooCommerce does not document revisions as a price undo." - } - }, - { - "@type": "Question", - "name": "Can I undo a 20% decrease by increasing 20%?", - "acceptedAnswer": { - "@type": "Answer", - "text": "No. A 20% decrease is reversed by a 25% increase only when the stored prices are exactly the decreased values and nothing else has changed them." - } - }, - { - "@type": "Question", - "name": "Will WriteLeash undo a bulk edit I already ran in WooCommerce?", - "acceptedAnswer": { - "@type": "Answer", - "text": "No. WriteLeash Undo restores eligible prices WriteLeash applied. A native WooCommerce bulk edit is outside that history." - } - } - ] - } - ] -} -``` - -Structured data template only. Do not emit it until this article has a public canonical URL. Add `datePublished` on that day. The affiliation above is required on the page. +WriteLeash 0.3.0 previews a price change and can undo eligible prices it applied. It will not undo the bulk edit you already saved. The directory listing is [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/). The source is the [WriteLeash repository](https://github.com/MrDarkRoot/WriteLeash). diff --git a/docs/marketing/323-seo-content/articles/woocommerce-price-history.md b/docs/marketing/323-seo-content/articles/woocommerce-price-history.md index 6aa6385c..c367f104 100644 --- a/docs/marketing/323-seo-content/articles/woocommerce-price-history.md +++ b/docs/marketing/323-seo-content/articles/woocommerce-price-history.md @@ -1,111 +1,87 @@ --- -title: "How to keep a WooCommerce price history without writing code" +title: "Keep a WooCommerce price history with a dated CSV" slug: woocommerce-price-history -meta_description: "WooCommerce does not ship a catalog price log. Keep dated CSV exports, and use a history plugin only for changes made after you install it." -h1: "How to keep a WooCommerce price history without writing code" -intent: "Give a merchant a price audit trail they can open later, and separate that from order reports and from WriteLeash job history." +meta_description: "WooCommerce has no catalog price log. Export ID, SKU, and prices before each bulk change. A history plugin only records what happens after you install it." +h1: "Keep a WooCommerce price history with a dated CSV" +card: "Save a dated CSV of ID, SKU, regular price, sale price, and both sale dates before the next bulk change." +intent: "Give a merchant a price audit trail they can open later, separate from order reports and from WriteLeash job history." failure_family: "Price history and audit trail" -affiliation: "WriteLeash is our product. This guide is not an independent review." -canonical_status: UNPUBLISHED -date_revised: 2026-10-27 +affiliation: "WriteLeash publishes this guide. It is not an independent review." +canonical_status: INTENDED +date_revised: 2026-11-10 --- -# How to keep a WooCommerce price history without writing code +# Keep a WooCommerce price history with a dated CSV -**WriteLeash makes this guide.** We publish the [WriteLeash](https://wordpress.org/plugins/writeleash/) plugin. The export habit below does not use it. WriteLeash History, described later, is only the log of WriteLeash jobs. +Export ID, SKU, Regular price, Sale price, and both sale-date columns, and name the file with the date, before the next bulk change. WooCommerce's product screens tell you how to set a price. They do not give you a page that lists the previous regular price, the previous sale price, who changed them, and when. If you need that after a bad edit and you never saved a copy, core has nothing to open. -WooCommerce's [product management guide](https://woocommerce.com/document/managing-products/) and [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) tell you how to set a price and how to change many prices. They do not describe a screen that lists the previous regular price, the previous sale price, who changed them, and when. If you need that after a bad bulk edit, and you never saved a copy, core has nothing to open. +**WriteLeash publishes this guide.** It is not an independent review. The export habit does not use the plugin. WriteLeash History, described later, is only the log of WriteLeash jobs. -That is not the same sentence as "there is no way to recover." A backup, an older export, or a plugin that was already recording can still hold the old number. [How to undo an accidental bulk price edit](undo-woocommerce-bulk-price-edit.md) walks through the restore. This page is how to make the next restore boring. +A backup, an older export, or a plugin that was already recording can still hold the old number. [Undo a bulk price edit](undo-woocommerce-bulk-price-edit.md) is the restore. This page is how to make the next restore boring. Search volume for "WooCommerce price history" was not measured. ## What is not a price history -**Orders.** A line item stores the amount charged on that order. It helps when a product actually sold. It says nothing about products that did not sell, and it is not the catalog price at 9:00 if the order was placed at 16:00 after a second edit. +**Orders.** A line item stores the amount charged on that order. It helps when a product actually sold. It says nothing about products that did not sell, and it is not the catalog price at 09:00 if the order was placed at 16:00 after a second edit. **Analytics.** WooCommerce reports are built from orders. They answer what you sold. They do not answer what the regular price field used to contain. -**Stock logs.** The [Inventory History](https://wordpress.org/plugins/inventory-history/) listing says WooCommerce does not save a log of product stock changes by default. Stock quantity and price are different fields. A stock log does not restore a sale price. +**Stock logs.** A stock-history plugin is a different field. A stock log does not restore a sale price. The [Inventory History](https://wordpress.org/plugins/inventory-history/) listing was read on 27 October 2026 as saying WooCommerce does not save a product stock-change log by default. That sentence is about stock. It was not re-opened for this pass, and it is not a price-log claim. -**The EU 30-day lowest price.** Several plugins, including [Product Price History](https://wordpress.org/plugins/product-price-history/) and [WPNest Price History](https://wordpress.org/plugins/wpnest-price-history-for-woocommerce/), advertise a consumer-facing notice for discounted products. That is a disclosure on the product page. It is not an admin undo, and this article is not legal advice. If you sell to shoppers in the EU, read the rule that applies to you. Do not assume an admin CSV export satisfies it. +**The EU 30-day lowest price.** Some plugins show a shopper-facing notice on discounted products. That is a disclosure on the product page. It is not an admin undo, and this article is not legal advice. If you sell into the EU, read the rule that applies to you. Do not assume an admin CSV satisfies it. -**Revisions in the product editor.** This guide did not find WooCommerce documenting post revisions as a price undo. Prices live in product data. Prove a restore on staging, on one product, before you count on it. +**Revisions in the product editor.** This guide did not find WooCommerce documenting post revisions as a price undo. Prove a restore on staging, on one product, before you count on it. ## A history you can keep without a developer -### 1. Dated exports +### Dated exports -**Products > All Products > Export.** The [CSV guide](https://woocommerce.com/document/product-csv-importer-exporter/) explains the columns. For a price snapshot, keep: +Go to **Products > All Products > Export**. The [CSV guide](https://woocommerce.com/document/product-csv-importer-exporter/), opened on 10 November 2026, explains the columns. For a price snapshot, keep ID, SKU, Type, Name, Regular price, Sale price, Date sale price starts, and Date sale price ends. -- ID -- SKU -- Type -- Name -- Regular price -- Sale price -- Date sale price starts -- Date sale price ends +Leave the file named with the date, in a place that is not the same filename every week. A weekly export that overwrites `products.csv` is not a history. You can export a category, or use **Export selected** from the product list, when you are about to change one slice of the catalog. -Leave the file named with the date, in a place that is not the same filename every week. A weekly export that overwrites `products.csv` is not a history. +### Export again immediately before a write -You can export a category or a selection when you are about to change that slice of the catalog. The guide shows **Export selected** from the product list. +Do this before a products-list bulk edit, before variation bulk actions, before a CSV update, and before you connect a sync tool or an assistant that can write prices. The [variable product guide](https://woocommerce.com/document/variable-product/) says variation bulk actions save immediately. The [bulk editing guide](https://woocommerce.com/document/bulk-editing-products/) says a products-list edit that changes a regular or sale price clears the scheduled sale dates, so the date columns belong in the snapshot. The file from the weekly export is the older copy. The file from this step is the before-image of this change. -### 2. Export again immediately before a write +### A plugin log, installed before you need it -Do this before: +[Bulk Price Editor for WooCommerce](https://wordpress.org/plugins/bulk-price-editor-for-woocommerce/) 2.5.1 was opened on 10 November 2026, including its trunk readme. Changelog 2.5.0, dated 1 September 2026, says each bulk update stores a snapshot of the previous prices, and that a separate price-change record can cover manual edits, imports, the API, and bulk updates. Revert from that history is marked premium. The FAQ on the same readme still says the plugin does not have an undo feature and points at the preview plus a database backup. Read the version you install. Recording starts when the plugin is active. -- Products-list bulk edit -- Variation bulk actions, which the [variable product guide](https://woocommerce.com/document/variable-product/) says save immediately -- A CSV update -- Connecting a sync tool or an assistant that can write prices +This pass did not re-test other history plugins in a store. On 27 October 2026 their listings said recording starts when the plugin is active: [Product Price History](https://wordpress.org/plugins/product-price-history/), [MiraiLit Product Change Tracker](https://wordpress.org/plugins/mirailit-product-change-tracker-for-woocommerce/), and [WPNest Price History](https://wordpress.org/plugins/wpnest-price-history-for-woocommerce/). Those pages were not re-opened on 10 November 2026. Install on staging, change one simple product and one variation by Quick Edit, by bulk edit, and by a one-row CSV, and see whether the log shows the old price. Installing any of them after the bad edit does not reconstruct the old price. -The file from step 1 is the backup of the backup. The file from step 2 is the exact before-image of this change. +### Know what the host backup contains -### 3. A plugin log, installed before you need it - -These listings, read on 27 October 2026, describe recording that starts when the plugin is active: - -- [Product Price History](https://wordpress.org/plugins/product-price-history/) says it saves a record when a product's price changes, including through the REST API and importers, and that recording starts as soon as the plugin is active. -- [MiraiLit Product Change Tracker](https://wordpress.org/plugins/mirailit-product-change-tracker-for-woocommerce/) says it records price, stock, title, and weight from the product editor, quick edit, bulk edit, REST API, WP-CLI, importers, and stock changes from orders and refunds, with the old value, the new value, who did it, and when. -- [Bulk Price Editor](https://wordpress.org/plugins/bulk-price-editor-for-woocommerce/) 2.5.0, dated 1 September 2026 in the trunk readme checked on 27 October 2026, says each bulk update stores a snapshot of the previous prices. The same entry says a separate price-change record covers manual edits, imports, the API, and bulk updates, and can be turned off. Revert from that history is marked premium. The FAQ on the same readme still says the plugin does not have an undo feature and points at the preview plus a database backup. Read the version you install. Recording starts when the plugin is active. - -None of these sentences were re-tested in a store for this article. Install on staging, change one simple product and one variation by Quick Edit, by bulk edit, and by a one-row CSV, and see whether the log shows the old price. Then decide. - -Installing any of them after the bad edit does not reconstruct the old price. - -### 4. Know what your host backup contains - -Ask the host how far back backups go and whether a restore replaces the whole database. A full restore brings back old prices and also rolls back orders, coupons, and customer changes made after that backup. The safer pattern is: restore the backup on staging, export the price columns, import those columns into the live store with every other column set to **Do not import**. +Ask the host how far back backups go and whether a restore replaces the whole database. A full restore brings back old prices and also rolls back orders, coupons, and customer changes made after that backup. The safer pattern is to restore the backup on staging, export the price columns, and import those columns into the live store with every other column set to **Do not import**. That import is the same repair as [sale prices a CSV overwrote](restore-sale-prices-overwritten-by-import.md). ## How to read a snapshot when something looks wrong -Open the product and write down the regular price, the sale price, and the dates you see now. Find the newest export from before the incident. Diff those columns on the SKU. Three different outcomes: +Open the product and write down the regular price, the sale price, and the dates you see now. Find the newest export from before the incident. Compare those columns on the SKU. | What you see | What to do | | --- | --- | -| The editor matches the old export, and the shop does not | Do not import prices again. See [why a saved sale price might not show](imported-sale-price-not-showing.md). | -| The editor shows a new sale or a blank sale, and the export has the old one | Restore from that export. See [sale prices a CSV import overwrote](restore-sale-prices-overwritten-by-import.md). | -| You have no export and no backup | You do not have the old catalog price. Orders may hint at it for products that sold. Guessing with a reverse percentage is the risky path in [undo a bulk price edit](undo-woocommerce-bulk-price-edit.md). | +| The editor matches the old export, and the shop does not | Do not import prices again. See [why a saved sale might not show](imported-sale-price-not-showing.md). | +| The editor shows a new sale or a blank sale, and the export has the old one | Restore from that export. | +| You have no export and no backup | You do not have the old catalog price. Orders may hint at it for products that sold. Guessing with a reverse percentage is the risky path in the bulk-edit guide. | ## What WriteLeash History is -**Directory plugin, checked 27 October 2026.** [WriteLeash 0.2.2](https://wordpress.org/plugins/writeleash/) says History shows who changed what and when, and that eligible prices can be restored within the Undo window, 30 days by default. Read that as the history of WriteLeash jobs: results, conflicts, and whether Undo is available. +The directory listing opened on 10 November 2026 is WriteLeash 0.3.0. History shows what finished, what conflicted, and whether Undo is available. Read that as the history of WriteLeash jobs. It is not a catalog price log. -It does not record: +It does not record Quick Edit, the products-list bulk editor, variation bulk actions, the CSV importer, another plugin's save, or a REST write that did not go through WriteLeash. An append-only grant audit records grant and denial events for a restricted user. It is not a history of every price in the catalog. -- Quick Edit -- The products-list bulk editor -- Variation bulk actions -- The CSV importer -- Another plugin's save -- A REST write that did not go through WriteLeash +Eligible Undo restores prices WriteLeash applied, within 30 days on the listing screenshot, when the saved details and the product still allow it. Availability does not guarantee restoration. Undo does not reverse orders, emails, webhooks, or other plugins. Stock Undo is not supported. Ordinary price jobs do not change stock. The Preview CSV is the saved Preview, not a live catalog export, and it does not apply changes. WriteLeash creates no backup. -Undo availability does not guarantee restoration. A later price change, a product that is no longer eligible, a missing record, or an expired window can leave the row unrestored. Undo does not reverse orders, completed sales, emails, webhooks, remote requests, external queues, or other plugins' effects. The Preview CSV is the saved Preview, not a live catalog export, and it does not apply changes. +It is not a firewall, not a sandbox, and not a universal agent-safe guarantee. Direct SQL, hostile plugins, and unmonitored writes are not covered. There is no guarantee when the grant store is unavailable. Opt-in grants stay off until an operator issues one. Upgrade from 0.2.2 does not create a grant. -Scope on that listing: published core simple products and published variations of published core variable products, base store currency, up to 1,000 selected products per new job in the tested configuration. WordPress 7.0 or newer, with 7.0.1 and 7.1.2 exercised. WooCommerce 10.0 through 11.x. Multisite is unsupported. Real managed or shared hosting has not been tested. Price operations do not change stock, sale dates, or orders. +Scope on the listing: published core simple products and published variations of published core variable products, base currency, up to 1,000 selected products per new job in the tested configuration. Pairs: WooCommerce 10.0.0 or newer and below 12.0.0 on WordPress 7.0 up to but not including 8.0, or WordPress 6.7 below 7.0 with WooCommerce 9.0.0 below 10.0.0. Exercised examples named on the listing: WordPress 7.0.1 and 7.1.2, WordPress 6.7.2 with WooCommerce 9.0.4, and WordPress 6.8.3 with WooCommerce 9.9.7. Other pairs are refused before a job is created. Multisite is unsupported. Real managed or shared hosting has not been tested. -**Not the download.** The default branch after [pull request #330](https://github.com/MrDarkRoot/WriteLeash/pull/330) uses compatibility pairs: WordPress 7.0 up to but not including 8.0 with WooCommerce 10.0 up to but not including 12.0, or WordPress 6.7 up to but not including 7.0 with WooCommerce 9.0 up to but not including 10.0. The 0.2.2 listing does not advertise the legacy pair. An append-only grant audit in [issue #312](https://github.com/MrDarkRoot/WriteLeash/issues/312) is not a catalog price history and is not in the published listing. +The dated CSV is the log of the catalog. WriteLeash History is the log of one tool's price writes. Use both if you use WriteLeash. The CSV still matters, because most overwrites never pass through the plugin. [Who is allowed to make the next change](restrict-woocommerce-price-changes.md) is a separate decision. -WriteLeash is one log of one tool's price writes. The dated CSV is the log of the catalog. Use both if you use WriteLeash. The CSV still matters, because most overwrites never pass through the plugin. +## Related guides + +- [Undo a bulk price edit from the pre-change CSV](undo-woocommerce-bulk-price-edit.md) +- [Restore sale prices a CSV import overwrote](restore-sale-prices-overwritten-by-import.md) +- [A sale that is saved but missing on the shop](imported-sale-price-not-showing.md) ## FAQ @@ -115,57 +91,14 @@ Core does not provide that screen. Use a dated export, a backup, or a history pl ### Does WriteLeash History show CSV imports and bulk edits? -It shows WriteLeash jobs. It does not show the products-list bulk editor, variation bulk actions, or the CSV importer. +It shows WriteLeash jobs: what finished, what conflicted, and whether Undo is available. It does not show the products-list bulk editor, variation bulk actions, or the CSV importer. ### Will a 30-day price chart on the product page let me undo a price? -No. A shopper-facing lowest-price notice is not an admin restore. Eligible Undo inside WriteLeash is also not that chart. It only restores eligible prices WriteLeash applied, for 30 days by default on the 0.2.2 listing. +No. A shopper-facing lowest-price notice is not an admin restore. Eligible Undo inside WriteLeash only restores eligible prices WriteLeash applied. Stock Undo is not supported. ### How many exports do I need? -One immediately before each bulk change, plus an older copy you do not overwrite. Weekly is a reasonable extra if prices change often. There is no directory statistic behind a specific frequency. - -```json -{ - "@context": "https://schema.org", - "@graph": [ - { - "@type": "Article", - "headline": "How to keep a WooCommerce price history without writing code", - "dateModified": "2026-10-27", - "description": "WooCommerce does not ship a catalog price log. Keep dated CSV exports, and use a history plugin only for changes made after you install it.", - "author": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" }, - "publisher": { "@type": "Organization", "name": "WriteLeash", "url": "https://wordpress.org/plugins/writeleash/" } - }, - { - "@type": "FAQPage", - "mainEntity": [ - { - "@type": "Question", - "name": "Where do I click to see every past product price?", - "acceptedAnswer": { "@type": "Answer", "text": "WooCommerce core does not provide that screen. Use a dated export, a backup, or a history plugin that was recording at the time of the change." } - }, - { - "@type": "Question", - "name": "Does WriteLeash History show CSV imports and bulk edits?", - "acceptedAnswer": { "@type": "Answer", "text": "It shows WriteLeash jobs. It does not show the products-list bulk editor, variation bulk actions, or the CSV importer." } - }, - { - "@type": "Question", - "name": "Will a 30-day price chart on the product page let me undo a price?", - "acceptedAnswer": { "@type": "Answer", "text": "No. A shopper-facing lowest-price notice is not an admin restore. WriteLeash Undo only restores eligible prices WriteLeash applied, for 30 days by default on the 0.2.2 listing." } - }, - { - "@type": "Question", - "name": "How many exports do I need?", - "acceptedAnswer": { "@type": "Answer", "text": "One immediately before each bulk change, plus an older copy you do not overwrite. There is no statistic behind a specific weekly frequency." } - } - ] - } - ] -} -``` - -Structured data template only. Do not emit it until this article has a public canonical URL. Add `datePublished` on that day. The affiliation above is required on the page. - -When the price change itself should carry a preview and an eligible restore, [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/) is the tool this guide is attached to. Keep the CSV export anyway. +One immediately before each bulk change, plus an older copy you do not overwrite. There is no measured search volume behind a weekly habit. Undo does not reverse orders, emails, webhooks, or other plugins. + +WriteLeash 0.3.0 keeps a history of its own price jobs and can undo eligible prices it applied. Keep the CSV anyway. The directory listing is [WriteLeash on WordPress.org](https://wordpress.org/plugins/writeleash/). The source is the [WriteLeash repository](https://github.com/MrDarkRoot/WriteLeash). diff --git a/docs/marketing/323-seo-content/build_site.py b/docs/marketing/323-seo-content/build_site.py new file mode 100644 index 00000000..ebae5780 --- /dev/null +++ b/docs/marketing/323-seo-content/build_site.py @@ -0,0 +1,506 @@ +#!/usr/bin/env python3 +"""Generate the #323 static guides from the Markdown articles. + +Stdlib only. Writes docs/marketing/323-seo-content/site/ and checks titles, +canonicals, Article JSON-LD, relative links, and the single visible CTA. +No tracking and no external JavaScript. +""" + +from __future__ import annotations + +import html +import json +import re +import shutil +import sys +from pathlib import Path + +ROOT = Path(__file__).resolve().parent +ARTICLES = ROOT / "articles" +SITE = ROOT / "site" +BASE = "https://mrdarkroot.github.io/WriteLeash" +PLUGIN = "https://wordpress.org/plugins/writeleash/" +REPO = "https://github.com/MrDarkRoot/WriteLeash" +PUBLISHED = "2026-11-10" +ORDER = [ + "undo-woocommerce-bulk-price-edit", + "restore-sale-prices-overwritten-by-import", + "imported-sale-price-not-showing", + "restrict-woocommerce-price-changes", + "woocommerce-price-history", +] + +CSS = """ +:root { + --bg: #f4f1ea; + --paper: #fffdfb; + --ink: #1c1915; + --muted: #3f3a34; + --line: #e3dbd0; + --link: #08445e; + --cta: #f6f1e6; + --max: 40rem; +} +* { box-sizing: border-box; } +html { scroll-behavior: auto; } +body { + margin: 0; + background: var(--bg); + color: var(--ink); + font-family: "Segoe UI", system-ui, sans-serif; + font-size: 1.0625rem; + line-height: 1.6; +} +a { color: var(--link); } +a:hover { text-decoration-thickness: 2px; } +a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; } +.skip { + position: absolute; + left: 0.5rem; + top: 0.5rem; + transform: translateY(-150%); + background: var(--paper); + padding: 0.4rem 0.7rem; +} +.skip:focus { transform: none; } +.wrap { max-width: 68rem; margin: 0 auto; padding: 1rem; } +header.site { + background: var(--paper); + border-bottom: 1px solid var(--line); +} +header.site .wrap { padding-top: 0.8rem; padding-bottom: 0.8rem; } +.brand { font-weight: 700; text-decoration: none; color: var(--ink); } +.brand span { color: var(--muted); font-weight: 500; } +nav ul { list-style: none; padding: 0; margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; } +nav a { text-decoration-thickness: 1px; } +main { max-width: calc(var(--max) + 2rem); margin: 0 auto; padding: 1.25rem 1rem 3rem; } +article, .index { background: var(--paper); border: 1px solid var(--line); padding: 1.1rem 1rem 1.4rem; } +h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 0.8rem; } +h2 { font-size: 1.28rem; line-height: 1.3; margin: 1.6rem 0 0.5rem; } +h3 { font-size: 1.08rem; line-height: 1.35; margin: 1.15rem 0 0.35rem; } +p, ul, ol { margin: 0.7rem 0; } +ul, ol { padding-left: 1.2rem; } +.meta { color: var(--muted); font-size: 0.95rem; margin-top: 0; } +table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.98rem; } +.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } +th, td { border: 1px solid var(--line); text-align: left; padding: 0.4rem 0.5rem; vertical-align: top; } +th { background: #f7f3eb; } +code { font-family: ui-monospace, monospace; font-size: 0.92em; } +.cta { background: var(--cta); border-left: 4px solid var(--link); padding: 0.8rem 0.9rem; margin-top: 1.4rem; } +.cards { list-style: none; padding: 0; } +.cards li { border-top: 1px solid var(--line); padding: 0.85rem 0; } +.cards a { font-weight: 650; } +footer.site { color: var(--muted); font-size: 0.95rem; padding: 0 1rem 2rem; max-width: calc(var(--max) + 2rem); margin: 0 auto; } +@media (max-width: 36rem) { + h1 { font-size: 1.45rem; } + main { padding-left: 0.75rem; padding-right: 0.75rem; } + article, .index { padding: 0.95rem 0.8rem 1.2rem; } +} +""" + + +def fail(message: str) -> None: + raise SystemExit(message) + + +def parse_front(text: str) -> tuple[dict[str, str], str]: + if not text.startswith("---\n"): + fail("missing front matter") + end = text.find("\n---\n", 4) + if end < 0: + fail("unclosed front matter") + raw = text[4:end] + body = text[end + 5 :] + meta: dict[str, str] = {} + for line in raw.splitlines(): + if not line.strip(): + continue + key, value = line.split(":", 1) + meta[key.strip()] = value.strip().strip('"') + return meta, body + + +def rewrite_href(href: str) -> str: + if href.startswith(("http://", "https://", "mailto:", "#")): + return href + path, anchor = href, "" + if "#" in path: + path, anchor = path.split("#", 1) + anchor = "#" + anchor + if path.endswith(".md"): + path = path[:-3] + "/" + if path and not path.startswith("../") and not path.startswith("/"): + path = "../" + path + return path + anchor + + +def format_inline(text: str) -> str: + parts = re.split(r"(`[^`]+`)", text) + out = [] + for part in parts: + if len(part) >= 2 and part.startswith("`") and part.endswith("`"): + out.append("" + html.escape(part[1:-1]) + "") + continue + escaped = html.escape(part) + escaped = re.sub(r"\*\*([^*]+)\*\*", r"\1", escaped) + out.append(escaped) + return "".join(out) + + +def inline(text: str) -> str: + parts = re.split(r"(\[[^\]]+\]\([^)]+\))", text) + out = [] + for part in parts: + match = re.fullmatch(r"\[([^\]]+)\]\(([^)]+)\)", part) + if not match: + out.append(format_inline(part)) + continue + href = rewrite_href(match.group(2).strip()) + out.append('' + format_inline(match.group(1)) + "") + return "".join(out) + + +def plain(text: str) -> str: + text = re.sub(r"\[([^\]]+)\]\([^)]+\)", r"\1", text) + text = text.replace("**", "").replace("`", "") + return re.sub(r"\s+", " ", text).strip() + + +def is_table_sep(line: str) -> bool: + cells = [cell.strip() for cell in line.strip().strip("|").split("|")] + return bool(cells) and all(re.fullmatch(r":?-{3,}:?", cell) for cell in cells) + + +def table_row(line: str, head: bool) -> str: + cells = [cell.strip() for cell in line.strip().strip("|").split("|")] + tag = "th" if head else "td" + scope = ' scope="col"' if head else "" + return "" + "".join(f"<{tag}{scope}>{inline(cell)}" for cell in cells) + "" + + +def render_markdown(body: str) -> tuple[str, list[tuple[str, str]]]: + lines = body.replace("\r\n", "\n").split("\n") + html_parts: list[str] = [] + faqs: list[tuple[str, str]] = [] + i = 0 + in_faq = False + while i < len(lines): + line = lines[i] + if not line.strip(): + i += 1 + continue + if line.startswith("```"): + i += 1 + while i < len(lines) and not lines[i].startswith("```"): + i += 1 + i += 1 + continue + if line.startswith("#"): + level = len(line) - len(line.lstrip("#")) + title = line[level:].strip() + if level == 2 and title == "FAQ": + in_faq = True + if level == 3 and in_faq: + i += 1 + answer: list[str] = [] + while i < len(lines) and not lines[i].startswith("#") and not lines[i].startswith("```"): + if lines[i].strip(): + answer.append(lines[i].strip()) + elif answer: + break + i += 1 + faqs.append((plain(title), plain(" ".join(answer)))) + html_parts.append(f"

{inline(title)}

") + if answer: + html_parts.append("

" + inline(" ".join(answer)) + "

") + continue + tag = f"h{min(level, 3)}" + html_parts.append(f"<{tag}>{inline(title)}") + i += 1 + continue + if line.startswith("|"): + rows = [] + while i < len(lines) and lines[i].startswith("|"): + rows.append(lines[i]) + i += 1 + body_rows = [] + head = rows[0] + start = 1 + if len(rows) > 1 and is_table_sep(rows[1]): + start = 2 + for row in rows[start:]: + body_rows.append(table_row(row, False)) + html_parts.append( + '
' + + table_row(head, True) + + "" + + "".join(body_rows) + + "
" + ) + continue + if re.match(r"^[-*] ", line): + items = [] + while i < len(lines) and re.match(r"^[-*] ", lines[i]): + items.append("
  • " + inline(lines[i][2:].strip()) + "
  • ") + i += 1 + html_parts.append("") + continue + if re.match(r"^\d+\. ", line): + items = [] + while i < len(lines) and re.match(r"^\d+\. ", lines[i]): + items.append("
  • " + inline(re.sub(r"^\d+\. ", "", lines[i]).strip()) + "
  • ") + i += 1 + html_parts.append("
      " + "".join(items) + "
    ") + continue + paragraph = [line.strip()] + i += 1 + while i < len(lines) and lines[i].strip() and not lines[i].startswith(("#", "|", "-", "*", "```")) and not re.match(r"^\d+\. ", lines[i]): + paragraph.append(lines[i].strip()) + i += 1 + raw = " ".join(paragraph) + css = ' class="cta"' if PLUGIN in raw and REPO in raw else "" + html_parts.append(f"{inline(raw)}

    ") + return "\n".join(html_parts), faqs + + +def page_shell(title: str, description: str, canonical: str, depth: str, main: str, schema: dict) -> str: + home = depth if depth else "./" + nav = [] + for slug in ORDER: + href = f"{depth}{slug}/" + nav.append(f'
  • {html.escape(load()[slug]["title"])}
  • ') + payload = json.dumps(schema, ensure_ascii=False, separators=(",", ":")).replace("<", "\\u003c") + css_href = f"{depth}assets/site.css" + return f""" + + + + +{html.escape(title)} + + + + + + + + +
    +
    +WriteLeash price overwrite guides + +
    +
    +
    +{main} +
    +

    WriteLeash publishes these guides. They are not an independent review. Revised {PUBLISHED}.

    + + +""" + + +_CACHE: dict[str, dict] | None = None + + +def load() -> dict[str, dict]: + global _CACHE + if _CACHE is not None: + return _CACHE + found = {} + for slug in ORDER: + path = ARTICLES / f"{slug}.md" + if not path.is_file(): + fail(f"missing article {path}") + meta, body = parse_front(path.read_text(encoding="utf-8")) + for key in ("title", "slug", "meta_description", "h1", "card"): + if not meta.get(key): + fail(f"{slug} missing {key}") + if meta["slug"] != slug or meta["h1"] != meta["title"]: + fail(f"{slug} title/h1/slug mismatch") + rendered, faqs = render_markdown(body) + if len(faqs) < 3: + fail(f"{slug} needs at least 3 FAQ questions, found {len(faqs)}") + found[slug] = {"meta": meta, "html": rendered, "faqs": faqs, "title": meta["title"], "description": meta["meta_description"], "card": meta["card"]} + _CACHE = found + return found + + +def article_schema(meta: dict, canonical: str, faqs: list[tuple[str, str]]) -> dict: + return { + "@context": "https://schema.org", + "@graph": [ + { + "@type": "Article", + "headline": meta["title"], + "description": meta["meta_description"], + "datePublished": PUBLISHED, + "dateModified": meta.get("date_revised", PUBLISHED), + "author": {"@type": "Organization", "name": "WriteLeash", "url": PLUGIN}, + "publisher": {"@type": "Organization", "name": "WriteLeash", "url": PLUGIN}, + "mainEntityOfPage": {"@type": "WebPage", "@id": canonical}, + }, + { + "@type": "FAQPage", + "mainEntity": [ + { + "@type": "Question", + "name": question, + "acceptedAnswer": {"@type": "Answer", "text": answer}, + } + for question, answer in faqs + ], + }, + ], + } + + +def build() -> None: + global _CACHE + _CACHE = None + pages = load() + if SITE.exists(): + shutil.rmtree(SITE) + (SITE / "assets").mkdir(parents=True) + (SITE / "assets" / "site.css").write_text(CSS.strip() + "\n", encoding="utf-8") + (SITE / ".nojekyll").write_text("", encoding="utf-8") + cards = [] + for slug in ORDER: + page = pages[slug] + cards.append( + "
  • " + + html.escape(page["title"]) + + "

    " + + html.escape(page["card"]) + + "

  • " + ) + canonical = f"{BASE}/{slug}/" + body_html = page["html"].replace( + "", + "\n

    Revised " + + PUBLISHED + + ". The repair uses WooCommerce. WriteLeash is optional.

    ", + 1, + ) + main = "
    \n" + body_html + "\n
    " + html_text = page_shell(page["title"], page["description"], canonical, "../", main, article_schema(page["meta"], canonical, page["faqs"])) + dest = SITE / slug / "index.html" + dest.parent.mkdir(parents=True) + dest.write_text(html_text, encoding="utf-8") + index_title = "Fix accidental WooCommerce price overwrites" + index_description = "Five guides for a bad WooCommerce price change: bulk edit, CSV sales, a hidden sale, who can edit prices, and a dated export." + index_main = f"""
    +

    {html.escape(index_title)}

    +

    These guides are the repair, not a product tour. Use the export or the product screen named in the guide. You do not need a plugin to follow them.

    +

    Revised {PUBLISHED}. Search volume for these tasks was not measured.

    +
      +{''.join(cards)} +
    +

    WriteLeash 0.3.0 previews a price change and can undo eligible prices it applied. It will not undo a bulk edit or import that already ran, and it is not a firewall. The directory listing is WriteLeash on WordPress.org. The source is the WriteLeash repository.

    +
    """ + index_schema = { + "@context": "https://schema.org", + "@type": "CollectionPage", + "name": index_title, + "description": index_description, + "url": BASE + "/", + "dateModified": PUBLISHED, + "isPartOf": {"@type": "WebSite", "name": "WriteLeash price overwrite guides", "url": BASE + "/"}, + } + (SITE / "index.html").write_text( + page_shell(index_title, index_description, BASE + "/", "", index_main, index_schema), + encoding="utf-8", + ) + urls = [BASE + "/"] + [f"{BASE}/{slug}/" for slug in ORDER] + body = ['', ''] + for url in urls: + body.append(f"{html.escape(url)}{PUBLISHED}") + body.append("") + (SITE / "sitemap.xml").write_text("\n".join(body) + "\n", encoding="utf-8") + (SITE / "robots.txt").write_text( + "User-agent: *\nAllow: /\n\nSitemap: " + BASE + "/sitemap.xml\n", + encoding="utf-8", + ) + check() + print(f"wrote {SITE}") + + +def visible_html(text: str) -> str: + text = re.sub(r"]*>.*?", "", text, flags=re.S) + return text + + +def check() -> None: + pages = load() + titles = set() + descriptions = set() + files = {"index.html": (SITE / "index.html").read_text(encoding="utf-8")} + for slug in ORDER: + files[f"{slug}/index.html"] = (SITE / slug / "index.html").read_text(encoding="utf-8") + if "google-analytics" in "\n".join(files.values()).lower() or "gtag(" in "\n".join(files.values()): + fail("tracking snippet found") + for rel, text in files.items(): + if text.count(' + + + +
    + +
    +
    +
    +

    An imported WooCommerce sale is saved but the shop shows full price

    +

    Revised 2026-11-10. The repair uses WooCommerce. WriteLeash is optional.

    +

    If the variation editor shows the sale and the shop still shows the regular price, do not import the price file again. Open that one variable product and press Update without changing the variation prices, then look at the shop in a logged-out browser. A second CSV can replace a sale that was already stored.

    +

    WriteLeash publishes this guide. It is not an independent review. The checks are WooCommerce admin steps. WriteLeash does not regenerate product lookup tables, and it is the wrong tool when the editor already shows the right sale.

    +

    Confirm the sale is stored

    +

    Open the variation, not the variable parent. The variable product guide, opened on 10 November 2026, says each variation has its own regular price and its own optional sale price. Variations without a price do not show in the store. The parent can show a range built from the variations.

    +

    On one affected variation, check:

    +
    1. Regular price is present.
    2. Sale price is strictly below that regular price.
    3. If sale dates are set, today in the store timezone falls inside them. The CSV schema says a start date uses the start of that day and an end date uses the end of that day. A blank date means no date when that column was imported. It does not mean "leave the old date."
    4. The variation is enabled, and the parent is published.
    +

    If the sale field is empty, you do not have this display bug. Go to restore sale prices a CSV import overwrote. If the field is filled and the shop is wrong, keep going. Do not upload another price CSV.

    +

    The products-list bulk editor says bulk price changes apply to simple and external products, not to the individual variations of a variable product. Typing a sale into the parent's bulk-edit Price field is the wrong repair.

    +

    What one store reported in November 2025

    +

    On 25 November 2025 a store imported about 1,000 products with variations through the WooCommerce CSV importer. The file included SKU, Sale price, sale dates, and Stock. Each variation showed the sale price and the dates. The variable product on the shop still showed the regular price. A manual Update on the product made the sale appear. The report was opened again on 10 November 2026: Variable product sale prices not showing after CSV import. The thread is closed. The original poster had already rebuilt product lookup tables, cleared cache, and synced variations. The sale still did not appear until a manual Update.

    +

    WooCommerce support suggested Products > All Products > Bulk actions > Edit, then Apply, then Update with no field changes. The current bulk-editing guide labels that menu Bulk edit rather than Edit. Support also named wp wc product lookup regenerate --force if the host has WP-CLI. The poster replied that they would try it. The thread was closed with no later confirmation that either step was run. This article did not re-run the import on WooCommerce 10 or 11. Try one product before you apply a resync to the catalog.

    +

    The same report on r/woocommerce was search-retrieved on 27 October 2026, including a follow-up that a bulk edit with no change worked for that poster. A direct fetch returned HTTP 403, and the Reddit URL was not opened as a page on 10 November 2026. Two days after the original report, another r/woocommerce thread was search-retrieved the same way: the backend showed the imported sale, the frontend did not, and saving the products again made the sale register. If the WordPress.org thread and a search snippet ever disagree, trust the WordPress.org thread.

    +

    Resync one product, then a small batch

    +

    The product Update is what the original report says worked. The other steps were offered on that thread and were not confirmed there. They are not a guarantee for every host.

    +
    1. Edit the variable product and press Update without changing the variation prices. Recheck the shop.
    2. If you have many parents, the support reply suggested selecting them, choosing Edit, pressing Apply, changing nothing, and pressing Update. Use a small batch first. The bulk editing guide warns that a large page can strain the server. This no-change Update is a resync attempt. It is not permission to type a new Price or Sale value. Leave those fields on No change. A bulk edit that changes a regular or sale price clears scheduled sale dates.
    3. The original report says rebuilding product lookup tables, clearing cache, and syncing variations had already failed for that store. Do not treat lookup regeneration as the fix that worked there. This research did not execute the tool.
    4. If you use WP-CLI, support named wp wc product lookup regenerate --force. The thread does not confirm that command was run, and the poster had already rebuilt lookup tables in the admin. Run wp help wc product on that server and confirm the subcommand exists before you use it. Do not paste it onto a host where wp wc is a different package.
    +

    Afterward, check three variations: one that should be on sale, one that should not, and one with a future sale start date. Clear a full-page cache only after the editor and a logged-out browser agree. Also confirm you did not import a parent-row price and expect it to become the variation price.

    +

    Why this is not an undo problem

    +

    Nothing in the November 2025 report says the sale price was deleted. The data was on the variation. The parent range and the lookup the shop used had not caught up until a later save. Overwriting the sale to "fix" the range can create the data loss in the CSV restore guide. A resync cannot invent a price that is no longer stored. A dated price export is how you tell the two cases apart.

    +

    What WriteLeash 0.3.0 does not refresh

    +

    The directory listing opened on 10 November 2026 is WriteLeash 0.3.0. It does not regenerate lookup tables and does not make a stored sale appear on the shop. The listing says planned stored prices are not guaranteed shopper prices. A correct stored sale that the theme or a cache still hides is outside the plugin.

    +

    The same listing says WooCommerce refreshes variable parent price ranges after each variation change. That sentence is about a variation change WriteLeash is making, not about an import WriteLeash did not run. If you are unsure the stored sale is right, do not run a WriteLeash job to "refresh" it. The step that made the sale appear in the November 2025 report was updating the product.

    +

    Eligible Undo restores prices WriteLeash applied, within 30 days on the listing screenshot, when the saved record and the product still allow it. It does not restore a CSV import, and it does not fix a stale range. Undo does not reverse orders, emails, webhooks, or other plugins. Stock Undo is not supported. Ordinary price jobs do not change stock. It is not a firewall, not a sandbox, and not a universal agent-safe guarantee. Direct SQL, hostile plugins, and unmonitored writes are not covered. There is no guarantee when the grant store is unavailable.

    +

    Requirements on the listing: WooCommerce 10.0.0 or newer and below 12.0.0 on WordPress 7.0 up to but not including 8.0, or WordPress 6.7 below 7.0 with WooCommerce 9.0.0 below 10.0.0. Exercised pairs named there include WordPress 7.0.1 and 7.1.2, WordPress 6.7.2 with WooCommerce 9.0.4, and WordPress 6.8.3 with WooCommerce 9.9.7. Other pairs are refused before a job is created. Published core simple products and published variations of published core variable products, base currency, up to 1,000 selected products per new job in the tested configuration. Parent prices are not edited directly.

    +

    Related guides

    + +

    FAQ

    +

    The variation sale price is correct and the shop is wrong. Do I import the CSV again?

    +

    No. Importing again can overwrite the stored sale. In the November 2025 report, updating the product made the sale appear after a lookup-table rebuild had not. Update one variable product and recheck the shop.

    +

    The variation sale price is empty. Is this the same bug?

    +

    No. The sale is not stored. Restore it from the pre-import export. A resync cannot invent a price that is gone.

    +

    Does a no-change bulk Update edit variation prices?

    +

    The products-list bulk editor does not apply price changes to individual variations. A November 2025 support reply still suggested a no-change Update as a resync, and the thread never confirmed it was run. Do not type a new price into that form while you use it for this purpose.

    +

    Can WriteLeash force the shop to show the sale?

    +

    No. WriteLeash 0.3.0 does not regenerate product lookup tables. Its listing says a planned stored price is not a guaranteed shopper price. Stock Undo is not supported. Undo does not reverse orders, emails, webhooks, or other plugins.

    +

    WriteLeash 0.3.0 previews a price you choose to change and can undo eligible prices it applied. It will not repair a stale shop range. The directory listing is WriteLeash on WordPress.org. The source is the WriteLeash repository.

    +
    +
    +

    WriteLeash publishes these guides. They are not an independent review. Revised 2026-11-10.

    + + diff --git a/docs/marketing/323-seo-content/site/index.html b/docs/marketing/323-seo-content/site/index.html new file mode 100644 index 00000000..558510fa --- /dev/null +++ b/docs/marketing/323-seo-content/site/index.html @@ -0,0 +1,36 @@ + + + + + +Fix accidental WooCommerce price overwrites + + + + + + + + +
    + +
    +
    +
    +

    Fix accidental WooCommerce price overwrites

    +

    These guides are the repair, not a product tour. Use the export or the product screen named in the guide. You do not need a plugin to follow them.

    +

    Revised 2026-11-10. Search volume for these tasks was not measured.

    + +

    WriteLeash 0.3.0 previews a price change and can undo eligible prices it applied. It will not undo a bulk edit or import that already ran, and it is not a firewall. The directory listing is WriteLeash on WordPress.org. The source is the WriteLeash repository.

    +
    +
    +

    WriteLeash publishes these guides. They are not an independent review. Revised 2026-11-10.

    + + diff --git a/docs/marketing/323-seo-content/site/restore-sale-prices-overwritten-by-import/index.html b/docs/marketing/323-seo-content/site/restore-sale-prices-overwritten-by-import/index.html new file mode 100644 index 00000000..9654e1b4 --- /dev/null +++ b/docs/marketing/323-seo-content/site/restore-sale-prices-overwritten-by-import/index.html @@ -0,0 +1,67 @@ + + + + + +Restore WooCommerce sale prices a CSV import overwrote + + + + + + + + +
    + +
    +
    +
    +

    Restore WooCommerce sale prices a CSV import overwrote

    +

    Revised 2026-11-10. The repair uses WooCommerce. WriteLeash is optional.

    +

    Stop the sync or the scheduled import, then put the old sale back from the export you saved before the bad file. On the column mapping screen, set every column you are not restoring to Do not import. Test one SKU before the rest of the file. A second full import is how a correct sale gets overwritten again.

    +

    WriteLeash publishes this guide. It is not an independent review. The restore uses WooCommerce's importer and an export you already have, or a backup. You do not need WriteLeash to do it.

    +

    Put the sale prices back

    +
    1. Pause any sync, feed, or scheduled import that might run the same file again.
    2. Take the export from before the bad import. The CSV guide, opened on 10 November 2026, says an update matches by ID or SKU when Update existing products is on. In WooCommerce 11.2 and later, a mapped GTIN, UPC, EAN, or ISBN is used only when both ID and SKU are blank.
    3. If you do not have that export, restore a database backup on staging and export the price columns there. Do not restore that backup over the live database if the store has taken orders since. Orders would roll back with the catalog.
    4. Make a CSV with ID or SKU, Sale price, Date sale price starts, and Date sale price ends. Include Regular price when the regular price also changed. Delete every other column, or map those columns to Do not import.
    5. Run that file on one SKU. Open the product. The sale price has to be strictly below the regular price, and the dates have to match the file.
    6. Check the shop page, not only the editor. If the editor is right and the shop still shows the regular price, stop. That is a saved sale the shop does not show. Do not upload another price file to "refresh" it.
    7. Import the remaining rows in batches. Read the importer's skipped-row report before you run the file again. The guide says not to refresh or leave the page while the import is running, and to split a file the server cannot finish.
    +

    The usual mistake is a stock or title update that still contains a Sale price column. A column WooCommerce recognizes is mapped for you. Unrecognized columns are not imported. The control for "do not touch this" is Do not import.

    +

    What a blank cell means

    +

    The schema on that same page does not say a blank Sale price means "keep the current sale price." It does say what blank means for neighboring columns:

    +
    • Date sale price starts: blank means no start date.
    • Date sale price ends: blank means no end date.
    • Stock: blank disables stock management.
    +

    A spreadsheet that looks empty is not automatically a no-op. Set Sale price, both date columns, and Regular price to Do not import unless that file is the source of truth for those fields. Test one row even then.

    +

    Before the import, two simple products:

    +
    SKURegular priceSale priceSale dates
    CAP24.0018.00none
    HOODIE80.0064.00none
    +

    You export the catalog to edit stock, and you clear the Sale price cells because that sheet is not the sale. The Sale price header is still in the file. You import with Update existing products and leave Sale price mapped. Treat that as a price write until a one-row test proves otherwise. The safe stock-only file has no Sale price column, or that column is set to Do not import. Keep the original export. It is the restore file.

    +

    There is a second way to clear a sale that is not a CSV. On a variable product, the variation bulk action opened on 10 November 2026 saves immediately. Set sale prices to regular prices decreased by replaces any existing sale price. Entering 0 clears sale prices. Blank, non-numeric, or negative input leaves existing sale prices unchanged for that action. A regular price of 100 and an entry of 20% stores a sale price of 80.

    +

    On the products list, the bulk editing guide opened the same day says Set to regular price decreased by overrides the sale with the regular price decreased by a fixed amount or a percent, and that you should check the result. It also says a bulk edit that changes a regular or sale price clears the scheduled sale start and end dates. The October 2026 text of that page said a blank or 0 on that option removes the sale. The November page does not. This pass did not execute a blank sale field. Leave the field on No change unless you mean to write it. Products-list price edits apply to simple and external products, not to the variations of a variable product.

    +

    A sale can also disappear when the regular price moves under it. WooCommerce's product data store, read from trunk on 27 October 2026 and not re-run for this pass, clears a sale price on a simple product or a variation when a save updates the regular or sale price and the sale price is greater than or equal to the regular price. Variable and grouped parents are outside that particular check. Source: class-wc-product-data-store-cpt.php. If you only restore the regular price, the sale may stay gone. Restore both columns from the known-good export.

    +

    A 2021 r/woocommerce thread shows the habit that leads here: export, edit the price in a spreadsheet, import. The thread text was retrieved through search on 27 October 2026. A direct fetch from this environment returned HTTP 403 then, and the URL was not opened as a page on 10 November 2026. The export, edit, and import habit is also what the CSV guide is for. It overwrites whatever the sheet no longer contains.

    +

    Stop the next overwrite

    +
    • Keep a dated export of ID, SKU, Regular price, Sale price, and both date columns before every import. That file is the price history.
    • Map price and date columns to Do not import on stock-only or title-only files.
    • Normalize a supplier file and test one parent plus a few variations before the full catalog. The CSV guide's supplier section says to do that, and to read the skipped-row report instead of importing the full file again.
    • If a plugin sends a full product payload, it can write prices when you only changed stock in the source. This guide did not audit a named sync plugin. Pause the sync and compare one SKU before and after a run.
    • Do not use a reverse percentage as a substitute for the old sale prices. You need the old numbers.
    +

    What WriteLeash 0.3.0 does not restore

    +

    The directory listing opened on 10 November 2026 is WriteLeash 0.3.0. It does not watch the CSV importer and does not undo an import. If the sale is already gone, WriteLeash has no record of the old value unless WriteLeash itself wrote that price and the job is still eligible for Undo.

    +

    On a later price change made in WriteLeash, you choose Regular price or Sale price. A regular-price change keeps the existing sale price and its dates. Clear makes the sale price blank, not zero, and keeps its dates. A nonblank sale target has to stay below the regular price. Preview writes nothing. Approval is separate. If the stored price WriteLeash is about to change no longer matches the Preview, the newer value stays and the row is a conflict. That check is not a guard around the importer.

    +

    Undo restores eligible prices WriteLeash applied. The listing screenshot describes a 30-day window. Undo does not reverse orders, emails, webhooks, or other plugins. WriteLeash creates no backup. Stock Undo is not supported. Ordinary price jobs do not change stock. It is not a firewall, not a sandbox, and not a universal agent-safe guarantee. Direct SQL, hostile plugins, and unmonitored writes are not covered. There is no guarantee when the grant store is unavailable.

    +

    Scope on the listing: published core simple products and published variations of published core variable products, base currency, up to 1,000 selected products per new job in the tested configuration. WordPress and WooCommerce are accepted as pairs: WooCommerce 10.0.0 or newer and below 12.0.0 on WordPress 7.0 up to but not including 8.0, or WordPress 6.7 below 7.0 with WooCommerce 9.0.0 below 10.0.0. Exercised examples named on the listing: WordPress 7.0.1 and 7.1.2 on the modern line, WordPress 6.7.2 with WooCommerce 9.0.4, and WordPress 6.8.3 with WooCommerce 9.9.7. Other pairs are refused before a job is created. The directory "Tested up to" field read 7.1.4. That is not a claim that 7.1.4 was one of the exercised pairs.

    +

    Opt-in grants for bounded price and stock jobs stay off until an operator issues one. Upgrade from 0.2.2 does not create a grant. They do not roll back a CSV. Limiting who can write prices is still a role, a key, and a password problem first.

    +

    Related guides

    + +

    FAQ

    +

    Does a blank Sale price cell leave the current sale price alone?

    +

    The CSV schema opened on 10 November 2026 does not say that. It does say a blank sale date means no date, and a blank Stock cell disables stock management. Set Sale price to Do not import unless you intend to write it, and test one SKU.

    +

    The variation shows the right sale, but the shop shows the regular price. Should I import again?

    +

    No. Read the guide on a saved sale that the shop does not show. A second price file can overwrite a sale that was stored correctly.

    +

    Will WriteLeash detect that an import changed the sale price?

    +

    No. WriteLeash checks the price it is about to apply against its Preview. It does not monitor the importer, and it does not undo that write. Stock Undo is not supported.

    +

    Can I set the sale back with bulk edit instead of CSV?

    +

    Only if you know the exact sale price for every row. On a variable product, variation bulk actions save immediately, and entering 0 clears sale prices. A CSV of the old sale prices is the cleaner restore. Undo does not reverse orders, emails, webhooks, or other plugins.

    +

    WriteLeash 0.3.0 previews a later price change and can undo eligible prices it applied. It will not repair the import that already ran. The directory listing is WriteLeash on WordPress.org. The source is the WriteLeash repository.

    +
    +
    +

    WriteLeash publishes these guides. They are not an independent review. Revised 2026-11-10.

    + + diff --git a/docs/marketing/323-seo-content/site/restrict-woocommerce-price-changes/index.html b/docs/marketing/323-seo-content/site/restrict-woocommerce-price-changes/index.html new file mode 100644 index 00000000..7a2ca87f --- /dev/null +++ b/docs/marketing/323-seo-content/site/restrict-woocommerce-price-changes/index.html @@ -0,0 +1,61 @@ + + + + + +Stop staff and AI tools from changing WooCommerce prices + + + + + + + + +
    + +
    +
    +
    +

    Stop staff and AI tools from changing WooCommerce prices

    +

    Revised 2026-11-10. The repair uses WooCommerce. WriteLeash is optional.

    +

    Remove product editing from anyone who should not change prices, then revoke REST keys and application passwords you do not recognize. WooCommerce does not ship a permission called "edit prices." A person who can edit a product can change its regular price and its sale price. An AI tool is the same problem when it holds that user's password, an application password, a Write key, or a plugin that saves products as that user.

    +

    WriteLeash publishes this guide. It is not an independent review. The controls below are WordPress and WooCommerce. You can apply them without WriteLeash. An opt-in grant, described later, is a bounded job for one WordPress user. It is not a lock on the whole store.

    +

    What to change first

    +
    1. Open Users > All Users. List every Administrator and Shop Manager. Remove the Shop Manager or Administrator role from anyone who only needs to view orders or pack shipments.
    2. Open WooCommerce > Settings > Advanced > REST API. The REST API guide, opened on 10 November 2026, says a key is Read, Write, or Read/Write, and that each key is tied to a WordPress user. Revoke Write and Read/Write keys you do not recognize. A reporting tool can use Read. The legacy REST API is no longer in WooCommerce core.
    3. On each user's profile, revoke application passwords for a contractor, a script, or an assistant that is finished. WordPress documents them in Application Passwords, last modified 14 October 2026 and opened on 10 November 2026. An application password authenticates as that user for API access. It is not a wp-admin password. If the user is a Shop Manager, the client can do what a Shop Manager can do, including product edits.
    4. Before a person or a tool runs a bulk price change, export ID, SKU, Regular price, Sale price, and both sale dates. Name the file with the date. That export is the undo file.
    5. After the run, open two products and compare them with the export.
    +

    Hiding the price box with CSS is not a test. Test the path you are worried about: Quick Edit, products-list bulk edit, the variation Bulk actions menu, Products > Import with Update existing products, and a REST client using that user's credentials.

    +

    Why a copied role still edits prices

    +

    The roles and capabilities guide, opened on 10 November 2026, says a Shop Manager can manage products: create, edit, delete, and publish products, including categories and tags. Customers are not price writers. The page does not list a warehouse role that can edit stock and cannot edit prices. It points at third-party role plugins and says WooCommerce does not endorse any specific one. WooCommerce support does not cover those plugins.

    +

    In May 2023, the author of User Role Editor answered Restricting Shop Manager Role. The store wanted to block CSV import and export and stop product deletion. The reply says edit_products is the capability checked both for adding a product and for editing one, and that WooCommerce may reinitialize the shop_manager role on a later activation. The suggested approach there is a copied role, not a one-time edit of the built-in role. That thread is about import and delete, not a dedicated price capability. Removing import and export on a copied role can hide buttons. It does not block REST or a direct import URL, and it does not block prices while edit_products remains. Retest after WooCommerce is activated again.

    +

    A 2020 thread, Restrict shop admin from editing orders prices, is about order line prices, not catalog prices. Support said there was no built-in feature to change the Shop Manager role. Do not read that reply as a catalog-price procedure.

    +

    There is no measured count in this research for how often an assistant overwrites a price. Search volume for that task was not measured. What is public is that plugins advertise price writes. AddSynapse was named in this set on 27 October 2026 as a listing that says approved writes can include prices, sales, and stock. Those sentences are the other plugin's listing, not a security review and not a recommendation. If you connect one, read which WordPress user or key it uses, disconnect it when you are finished, and export prices first. An approval card in a chat is only as good as that plugin's own enforcement.

    +

    Custom code can refuse a price change for a role. That is a development job, and it has to cover CSV, REST, Quick Edit, and bulk edit or it is only a visual block. This guide does not include that code.

    +

    What an opt-in grant does, and what it does not

    +

    WriteLeash 0.3.0 is the directory version opened on 10 November 2026. The active-installation bucket was fewer than 10. The listing was last modified on 28 October 2026.

    +

    Grants are opt-in jobs for bounded price and stock changes. They stay off until an operator issues one. Upgrade from 0.2.2 does not create a grant. No WordPress user is restricted until that grant exists. Ordinary price jobs do not change stock. Stock changes only on a grant, inside its scope, budget, and expiry. Stock Undo is not supported.

    +

    A restricted WordPress user is denied on documented monitored WooCommerce write paths outside a matching Execution Frame. Those paths, in the plugin's grant contract, are WooCommerce REST product writes, product save, stock helpers, direct price and stock meta, and trash or delete. People who are not that restricted user keep normal WooCommerce behavior. WriteLeash does not intercept them. A Shop Manager who is not the grant actor can still edit prices in the product editor, in bulk edit, and in the importer.

    +

    It is not a firewall, not a sandbox, and not a universal agent-safe guarantee. Direct SQL, hostile plugins, and unmonitored writes are not covered. There is no guarantee when the grant store is unavailable. The boundary does not cover administrators who are not the grant actor, third-party hook side effects, orders, refunds, coupons, tax, options, arbitrary meta, or a system cron running as user 0. The restricted account cannot remove its own restriction. This guide does not walk through issuing a grant.

    +

    Human Preview, separate approval, Apply, and eligible price Undo are unchanged. Preview writes nothing. If the stored price WriteLeash is changing, or another checked setting, no longer matches the Preview, the newer value stays and the row is a conflict. Product name, SKU, and category alone do not conflict. Eligible Undo restores prices WriteLeash applied, within 30 days on the listing screenshot, when the saved details and the product still allow it. Undo does not reverse orders, emails, webhooks, or other plugins. WriteLeash creates no backup. It does not undo a price someone already changed in WooCommerce itself.

    +

    Requirements on the listing: WooCommerce 10.0.0 or newer and below 12.0.0 on WordPress 7.0 up to but not including 8.0, or WordPress 6.7 below 7.0 with WooCommerce 9.0.0 below 10.0.0. Exercised pairs named there: WordPress 7.0.1 and 7.1.2 on the modern line, WordPress 6.7.2 with WooCommerce 9.0.4, and WordPress 6.8.3 with WooCommerce 9.9.7. Other pairs are refused before a job is created. The "Tested up to" field read 7.1.4 and is not that exercised list. Scope is published core simple products and published variations of published core variable products, base currency, up to 1,000 selected products per new job in the tested configuration. Multisite is unsupported. Real managed or shared hosting has not been tested.

    +

    Related guides

    + +

    FAQ

    +

    Can I let a Shop Manager edit stock but not prices?

    +

    Not with a core capability. The roles guide ties product editing to one manage-products grant. A role editor that only hides the price field still leaves Quick Edit, bulk edit, CSV, and REST to test.

    +

    Does removing the Import button stop price changes?

    +

    No. It can hide one screen. Bulk edit, Quick Edit, and a write-capable REST key remain.

    +

    Does WriteLeash 0.3.0 lock every AI tool out of prices?

    +

    No. A grant restricts one WordPress user, and only after an operator issues it. It is not a firewall. Accounts that are not that user can still edit products. Use roles, REST key permissions, and application passwords either way.

    +

    If someone may bulk-edit prices, what limits the damage?

    +

    Export first. On the products screen, Update is the write, and the bulk editing guide has no undo. The repair is in the bulk-edit guide linked above. WriteLeash helps only when the change is made through WriteLeash. Stock Undo is not supported. Undo does not reverse orders, emails, webhooks, or other plugins.

    +

    WriteLeash 0.3.0 is a preview and an eligible price Undo for changes it applies, plus an opt-in grant that stays off until you issue it. It is not a role editor. The directory listing is WriteLeash on WordPress.org. The source is the WriteLeash repository.

    +
    +
    +

    WriteLeash publishes these guides. They are not an independent review. Revised 2026-11-10.

    + + diff --git a/docs/marketing/323-seo-content/site/robots.txt b/docs/marketing/323-seo-content/site/robots.txt new file mode 100644 index 00000000..cbf77f29 --- /dev/null +++ b/docs/marketing/323-seo-content/site/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://mrdarkroot.github.io/WriteLeash/sitemap.xml diff --git a/docs/marketing/323-seo-content/site/sitemap.xml b/docs/marketing/323-seo-content/site/sitemap.xml new file mode 100644 index 00000000..87555868 --- /dev/null +++ b/docs/marketing/323-seo-content/site/sitemap.xml @@ -0,0 +1,9 @@ + + +https://mrdarkroot.github.io/WriteLeash/2026-11-10 +https://mrdarkroot.github.io/WriteLeash/undo-woocommerce-bulk-price-edit/2026-11-10 +https://mrdarkroot.github.io/WriteLeash/restore-sale-prices-overwritten-by-import/2026-11-10 +https://mrdarkroot.github.io/WriteLeash/imported-sale-price-not-showing/2026-11-10 +https://mrdarkroot.github.io/WriteLeash/restrict-woocommerce-price-changes/2026-11-10 +https://mrdarkroot.github.io/WriteLeash/woocommerce-price-history/2026-11-10 + diff --git a/docs/marketing/323-seo-content/site/undo-woocommerce-bulk-price-edit/index.html b/docs/marketing/323-seo-content/site/undo-woocommerce-bulk-price-edit/index.html new file mode 100644 index 00000000..43834a5f --- /dev/null +++ b/docs/marketing/323-seo-content/site/undo-woocommerce-bulk-price-edit/index.html @@ -0,0 +1,73 @@ + + + + + +Undo a WooCommerce bulk price edit from the pre-change CSV + + + + + + + + +
    + +
    +
    +
    +

    Undo a WooCommerce bulk price edit from the pre-change CSV

    +

    Revised 2026-11-10. The repair uses WooCommerce. WriteLeash is optional.

    +

    Stop. Do not raise the prices by the same percentage you just cut, and do not upload another price file until you know the old numbers. WooCommerce writes the new prices when you press Update. The bulk editing guide, opened on 10 November 2026, does not describe an undo control. It says to edit the affected products again if a value is wrong. The repair is a CSV exported before the mistake: keep ID or SKU and the price columns you mean to put back, and set every other column to Do not import.

    +

    WriteLeash publishes this guide. It is not an independent review. The steps use WooCommerce. You do not need WriteLeash to follow them.

    +

    Restore the old prices first

    +

    Work on a staging copy if you have one. On a live store, change one SKU and read it back before you touch the rest.

    +
    1. Stop scheduled imports, sync tools, and a second bulk edit. A repair that runs twice is how the bad price returns.
    2. Find a CSV from Products > All Products > Export that was saved before the edit. The CSV guide, opened the same day, matches updates by ID or SKU when Update existing products is on.
    3. Build a restore file with the identifier and only the price columns you intend to write. Include Date sale price starts and Date sale price ends if a schedule was cleared. Delete every other column, or set those columns to Do not import on the mapping screen.
    4. Import one row. Open the product and compare the regular price, the sale price, and both dates with the file. Then import the rest in batches you can check.
    5. If you have no pre-change export, restore a database backup onto staging, export the price columns from staging, and import those columns into the live store with the same mapping. Do not restore the live database over a store that has taken orders since the backup. Those orders roll back with the prices.
    6. An order line is the amount that customer was charged. It is not a catalog history. Products that did not sell are missing from it.
    +

    A products-list bulk edit that changes a regular or sale price also clears the scheduled sale start and end dates. The same guide says to set the schedule again on each affected product if you still need it. Putting the date columns back from the old export is the direct way to do that. This pass did not re-run that clear in a store.

    +

    Leave Price and Sale on No change unless you mean to write them. The guide says a field left on No change keeps its current value. The October 2026 text of that page said a blank or 0 on Set to regular price decreased by removes the sale. The page opened on 10 November 2026 no longer says that. Do not treat a blank box as either safe or as a documented clear. This research did not execute the blank field.

    +

    If the editor shows the old sale and the shop still shows the regular price, stop importing. That is a saved sale the shop does not show. If the sale field itself is empty, use the CSV sale restore. Installing a history plugin after the edit does not recreate the lost values. Keep a dated export next time.

    +

    Do not reverse a percentage with itself

    +

    Store currency with two decimal places. Three published simple products, no sale prices:

    +
    SKURegular price beforeAfter a 20% decrease
    HOODIE80.0064.00
    CAP24.0019.20
    MUG12.5010.00
    +

    Those three results are exact at two decimals: each old price times 0.8. Increasing the new prices by 20% does not return the old prices:

    +
    SKUAfter the 20% decreaseIncrease that result by 20%Original
    HOODIE64.0076.8080.00
    CAP19.2023.0424.00
    MUG10.0012.0012.50
    +

    The inverse of multiplying by 0.8 is multiplying by 1.25, a 25% increase. That lands on 80.00, 24.00, and 12.50 only when every row in the batch was decreased by the same percentage, the stored results match the arithmetic, and nobody has edited those prices since. A fixed decrease of 5.00 is reversed by a fixed increase of 5.00 under the same conditions. Rounding can break the reverse. At two decimals, 19.99 times 0.85 is 16.9915 and rounds to 16.99. That figure is arithmetic, not a price this research measured inside WooCommerce. Check one product before you touch the rest.

    +

    A merchant reported the same surprise in woocommerce/woocommerce#17885 on 23 November 2017, as read for the 27 October 2026 pass: after a percentage decrease, increasing by that same percentage did not put the old sale price back. The issue was closed the same day for a different reason. Decrease existing sale price does nothing unless a sale price already exists. The thread does not name a later release that changes the arithmetic.

    +

    A bulk edit can also stop halfway. woocommerce/woocommerce#37681, opened in April 2023 and cited on 27 October 2026, describes a sale-price bulk edit that hit a blank regular price and left the list partly updated. That bug is not a claim about today's code. Export the current prices before a repair so you can see which rows moved.

    +

    A February 2026 support thread, bulk edit and decimal places, was read on 27 October 2026 and not re-opened for this pass. It was one store on WooCommerce 10.4.3. Support said bulk edit saved with the store's decimal setting. Do not assume a four-decimal price survived the bulk editor. Read the product after one row.

    +

    Which bulk editor you used

    +

    Use the screen you actually used. They do not write the same rows.

    +

    Products > All Products > Bulk actions > Bulk edit, then Apply. The guide opened on 10 November 2026 says the Price field can change to a value, or increase or decrease the existing price by a fixed amount or a percent. The Sale field can change to a value, increase or decrease the existing sale, or set the sale to the regular price decreased by a fixed amount or a percent. It says to check the resulting sale price after that last option. By default, bulk price changes on this screen apply to simple and external products, not to the individual variations of a variable product. The edit applies to the products selected on the current page. A large page can strain the server.

    +

    One variable product > Variations > Bulk actions. This is a different menu, on the variable product page opened the same day. Those actions save immediately to the variations of that one product. For Set sale prices to regular prices decreased by, a regular price of 100 and an entry of 15 stores a sale price of 85. An entry of 20% stores 80. The action replaces any existing sale price. Entering 0 clears existing sale prices. Blank, non-numeric, or negative input leaves existing sale prices unchanged for that action. Cancel leaves them unchanged. Variations with no regular price are skipped. The sale price cannot go below zero.

    +

    Quick Edit is a third path. It shows that product's current values and writes when you update. It is not an undo of a previous bulk edit.

    +

    What WriteLeash 0.3.0 will and will not undo

    +

    The WordPress.org directory page was opened on 10 November 2026. The listed version is WriteLeash 0.3.0. The active-installation bucket was fewer than 10. The listing was last modified on 28 October 2026. The "Tested up to" field read 7.1.4. That field is not the list of versions the requirements text says were exercised.

    +

    If the bad write was the products list, Quick Edit, or the variation bulk actions, WriteLeash Undo does not reverse it. Undo restores eligible prices that WriteLeash itself applied, when the saved details and the current product still allow it. The listing screenshot describes eligible Undo within 30 days. Availability does not mean every row will restore. Undo does not reverse orders, completed sales, emails, webhooks, remote requests, external queues, or other plugins' effects. WriteLeash does not create a backup. Stock Undo is not supported.

    +

    For a later change made in WriteLeash, Preview shows the before and after and writes nothing. Approval is a separate step. If the stored price WriteLeash is changing, or another checked setting, no longer matches the Preview, WriteLeash leaves the newer value and marks a conflict. Product name, SKU, and category alone do not cause that conflict. A value that moves away and comes back may not be detected. A regular-price change keeps the existing sale price and its dates. Ordinary price jobs do not change stock or orders. Clear makes a sale price blank, not zero.

    +

    Scope on that listing: published core simple products and published variations of published core variable products, in the base currency, up to 1,000 selected products per new job in the tested configuration. Parent prices are not edited directly. Custom product types are unsupported. Multisite is unsupported. Real managed or shared hosting has not been tested. Planned stored prices are not guaranteed shopper prices.

    +

    Requirements, from the listing and the plugin readme: WooCommerce 10.0 through 11.x on WordPress 7.0 up to 8.0 only (10.0.0 or newer, below 12.0.0), or the legacy band of WordPress 6.7 below 7.0 with WooCommerce 9.0.0 below 10.0.0. Exercised pairs named there: WordPress 7.0.1 and 7.1.2 on the modern line, WordPress 6.7.2 with WooCommerce 9.0.4, and WordPress 6.8.3 with WooCommerce 9.9.7. Other pairs are refused before a job is created.

    +

    Opt-in grants for bounded price and stock jobs shipped in 0.3.0. They stay off until an operator issues one. Upgrade from 0.2.2 does not create a grant. A restricted WordPress user is denied on documented monitored WooCommerce write paths outside a matching Execution Frame. It is not a firewall, not a sandbox, and not a universal agent-safe guarantee. Direct SQL, hostile plugins, and unmonitored writes are not covered. There is no guarantee when the grant store is unavailable. Who can still change a price is a separate job from undoing one.

    +

    Other bulk editors may preview before they save, or keep a snapshot of their own runs. Bulk Price Editor for WooCommerce 2.5.1 was opened on 10 November 2026. Its FAQ still says the plugin does not have an undo feature. Its 2.5.0 changelog, dated 1 September 2026, says each bulk update stores previous prices and marks one-click revert as premium. Read the version you install. This guide is not a ranking.

    +

    Related guides

    + +

    FAQ

    +

    Does WooCommerce include an undo for bulk price edits?

    +

    No. The bulk editing guide opened on 10 November 2026 describes Update and says to edit the products again if a value is wrong. It does not describe an undo control. A backup, an older export, or a history tool that was already recording are the recovery paths.

    +

    Will increasing by 20% undo a 20% decrease?

    +

    No. In the example above, a 20% decrease is reversed by a 25% increase, and only when the stored prices are exactly the decreased values and nothing else has changed them.

    +

    Will product revisions put the old price back?

    +

    Do not plan on it. This guide did not find WooCommerce documenting revisions as a price undo. Confirm on a staging copy, on one product, before you count on a revision to restore the regular price and the sale price.

    +

    Will WriteLeash undo a bulk edit that already ran?

    +

    No. WriteLeash Undo restores eligible prices WriteLeash applied. A native bulk edit is outside that history. Stock Undo is not supported. Undo does not reverse orders, emails, webhooks, or other plugins.

    +

    WriteLeash 0.3.0 previews a price change and can undo eligible prices it applied. It will not undo the bulk edit you already saved. The directory listing is WriteLeash on WordPress.org. The source is the WriteLeash repository.

    +
    +
    +

    WriteLeash publishes these guides. They are not an independent review. Revised 2026-11-10.

    + + diff --git a/docs/marketing/323-seo-content/site/woocommerce-price-history/index.html b/docs/marketing/323-seo-content/site/woocommerce-price-history/index.html new file mode 100644 index 00000000..b675671d --- /dev/null +++ b/docs/marketing/323-seo-content/site/woocommerce-price-history/index.html @@ -0,0 +1,73 @@ + + + + + +Keep a WooCommerce price history with a dated CSV + + + + + + + + +
    + +
    +
    +
    +

    Keep a WooCommerce price history with a dated CSV

    +

    Revised 2026-11-10. The repair uses WooCommerce. WriteLeash is optional.

    +

    Export ID, SKU, Regular price, Sale price, and both sale-date columns, and name the file with the date, before the next bulk change. WooCommerce's product screens tell you how to set a price. They do not give you a page that lists the previous regular price, the previous sale price, who changed them, and when. If you need that after a bad edit and you never saved a copy, core has nothing to open.

    +

    WriteLeash publishes this guide. It is not an independent review. The export habit does not use the plugin. WriteLeash History, described later, is only the log of WriteLeash jobs.

    +

    A backup, an older export, or a plugin that was already recording can still hold the old number. Undo a bulk price edit is the restore. This page is how to make the next restore boring. Search volume for "WooCommerce price history" was not measured.

    +

    What is not a price history

    +

    Orders. A line item stores the amount charged on that order. It helps when a product actually sold. It says nothing about products that did not sell, and it is not the catalog price at 09:00 if the order was placed at 16:00 after a second edit.

    +

    Analytics. WooCommerce reports are built from orders. They answer what you sold. They do not answer what the regular price field used to contain.

    +

    Stock logs. A stock-history plugin is a different field. A stock log does not restore a sale price. The Inventory History listing was read on 27 October 2026 as saying WooCommerce does not save a product stock-change log by default. That sentence is about stock. It was not re-opened for this pass, and it is not a price-log claim.

    +

    The EU 30-day lowest price. Some plugins show a shopper-facing notice on discounted products. That is a disclosure on the product page. It is not an admin undo, and this article is not legal advice. If you sell into the EU, read the rule that applies to you. Do not assume an admin CSV satisfies it.

    +

    Revisions in the product editor. This guide did not find WooCommerce documenting post revisions as a price undo. Prove a restore on staging, on one product, before you count on it.

    +

    A history you can keep without a developer

    +

    Dated exports

    +

    Go to Products > All Products > Export. The CSV guide, opened on 10 November 2026, explains the columns. For a price snapshot, keep ID, SKU, Type, Name, Regular price, Sale price, Date sale price starts, and Date sale price ends.

    +

    Leave the file named with the date, in a place that is not the same filename every week. A weekly export that overwrites products.csv is not a history. You can export a category, or use Export selected from the product list, when you are about to change one slice of the catalog.

    +

    Export again immediately before a write

    +

    Do this before a products-list bulk edit, before variation bulk actions, before a CSV update, and before you connect a sync tool or an assistant that can write prices. The variable product guide says variation bulk actions save immediately. The bulk editing guide says a products-list edit that changes a regular or sale price clears the scheduled sale dates, so the date columns belong in the snapshot. The file from the weekly export is the older copy. The file from this step is the before-image of this change.

    +

    A plugin log, installed before you need it

    +

    Bulk Price Editor for WooCommerce 2.5.1 was opened on 10 November 2026, including its trunk readme. Changelog 2.5.0, dated 1 September 2026, says each bulk update stores a snapshot of the previous prices, and that a separate price-change record can cover manual edits, imports, the API, and bulk updates. Revert from that history is marked premium. The FAQ on the same readme still says the plugin does not have an undo feature and points at the preview plus a database backup. Read the version you install. Recording starts when the plugin is active.

    +

    This pass did not re-test other history plugins in a store. On 27 October 2026 their listings said recording starts when the plugin is active: Product Price History, MiraiLit Product Change Tracker, and WPNest Price History. Those pages were not re-opened on 10 November 2026. Install on staging, change one simple product and one variation by Quick Edit, by bulk edit, and by a one-row CSV, and see whether the log shows the old price. Installing any of them after the bad edit does not reconstruct the old price.

    +

    Know what the host backup contains

    +

    Ask the host how far back backups go and whether a restore replaces the whole database. A full restore brings back old prices and also rolls back orders, coupons, and customer changes made after that backup. The safer pattern is to restore the backup on staging, export the price columns, and import those columns into the live store with every other column set to Do not import. That import is the same repair as sale prices a CSV overwrote.

    +

    How to read a snapshot when something looks wrong

    +

    Open the product and write down the regular price, the sale price, and the dates you see now. Find the newest export from before the incident. Compare those columns on the SKU.

    +
    What you seeWhat to do
    The editor matches the old export, and the shop does notDo not import prices again. See why a saved sale might not show.
    The editor shows a new sale or a blank sale, and the export has the old oneRestore from that export.
    You have no export and no backupYou do not have the old catalog price. Orders may hint at it for products that sold. Guessing with a reverse percentage is the risky path in the bulk-edit guide.
    +

    What WriteLeash History is

    +

    The directory listing opened on 10 November 2026 is WriteLeash 0.3.0. History shows what finished, what conflicted, and whether Undo is available. Read that as the history of WriteLeash jobs. It is not a catalog price log.

    +

    It does not record Quick Edit, the products-list bulk editor, variation bulk actions, the CSV importer, another plugin's save, or a REST write that did not go through WriteLeash. An append-only grant audit records grant and denial events for a restricted user. It is not a history of every price in the catalog.

    +

    Eligible Undo restores prices WriteLeash applied, within 30 days on the listing screenshot, when the saved details and the product still allow it. Availability does not guarantee restoration. Undo does not reverse orders, emails, webhooks, or other plugins. Stock Undo is not supported. Ordinary price jobs do not change stock. The Preview CSV is the saved Preview, not a live catalog export, and it does not apply changes. WriteLeash creates no backup.

    +

    It is not a firewall, not a sandbox, and not a universal agent-safe guarantee. Direct SQL, hostile plugins, and unmonitored writes are not covered. There is no guarantee when the grant store is unavailable. Opt-in grants stay off until an operator issues one. Upgrade from 0.2.2 does not create a grant.

    +

    Scope on the listing: published core simple products and published variations of published core variable products, base currency, up to 1,000 selected products per new job in the tested configuration. Pairs: WooCommerce 10.0.0 or newer and below 12.0.0 on WordPress 7.0 up to but not including 8.0, or WordPress 6.7 below 7.0 with WooCommerce 9.0.0 below 10.0.0. Exercised examples named on the listing: WordPress 7.0.1 and 7.1.2, WordPress 6.7.2 with WooCommerce 9.0.4, and WordPress 6.8.3 with WooCommerce 9.9.7. Other pairs are refused before a job is created. Multisite is unsupported. Real managed or shared hosting has not been tested.

    +

    The dated CSV is the log of the catalog. WriteLeash History is the log of one tool's price writes. Use both if you use WriteLeash. The CSV still matters, because most overwrites never pass through the plugin. Who is allowed to make the next change is a separate decision.

    +

    Related guides

    + +

    FAQ

    +

    Where do I click to see every past product price?

    +

    Core does not provide that screen. Use a dated export, a backup, or a history plugin that was recording at the time of the change.

    +

    Does WriteLeash History show CSV imports and bulk edits?

    +

    It shows WriteLeash jobs: what finished, what conflicted, and whether Undo is available. It does not show the products-list bulk editor, variation bulk actions, or the CSV importer.

    +

    Will a 30-day price chart on the product page let me undo a price?

    +

    No. A shopper-facing lowest-price notice is not an admin restore. Eligible Undo inside WriteLeash only restores eligible prices WriteLeash applied. Stock Undo is not supported.

    +

    How many exports do I need?

    +

    One immediately before each bulk change, plus an older copy you do not overwrite. There is no measured search volume behind a weekly habit. Undo does not reverse orders, emails, webhooks, or other plugins.

    +

    WriteLeash 0.3.0 keeps a history of its own price jobs and can undo eligible prices it applied. Keep the CSV anyway. The directory listing is WriteLeash on WordPress.org. The source is the WriteLeash repository.

    +
    +
    +

    WriteLeash publishes these guides. They are not an independent review. Revised 2026-11-10.

    + + From c09c01f64ecf6280260d02356156b1c6531e35df Mon Sep 17 00:00:00 2001 From: MrDarkRoot Date: Tue, 10 Nov 2026 19:13:33 +0700 Subject: [PATCH 3/3] docs(marketing,#323): correct the live listing and site status The evidence note still called the directory 0.2.2 and said there was no project site. The listing opened 10 November 2026 is 0.3.0, and the guides are already on GitHub Pages. Article teaching is unchanged. --- docs/marketing/323-seo-content/claims-audit.md | 2 +- docs/marketing/323-seo-content/keyword-evidence.md | 4 ++-- docs/marketing/323-seo-content/measurement.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/marketing/323-seo-content/claims-audit.md b/docs/marketing/323-seo-content/claims-audit.md index c3898c4c..6b81964b 100644 --- a/docs/marketing/323-seo-content/claims-audit.md +++ b/docs/marketing/323-seo-content/claims-audit.md @@ -22,7 +22,7 @@ Auditor: content pass on 10 November 2026. No browser was available. Pages were | CSV blank sale price is not documented as "leave unchanged" | Still true on the [CSV guide](https://woocommerce.com/document/product-csv-importer-exporter/) opened 2026-11-10. Blank sale dates mean no date. Blank Stock disables stock management. **Do not import** remains the skip control. | | Shop Manager has no separate price capability | Still true on the [roles guide](https://woocommerce.com/document/roles-capabilities/) opened 2026-11-10. | | November 2025 variable sale was stored but hidden until Update | Thread re-opened 2026-11-10. Still unresolved in the replies. Support's no-change Update and WP-CLI line were not confirmed by the poster. | -| WriteLeash 0.2.2 is the installable plugin and has no staff lock | Removed. 0.3.0 is the listing. Grants are shipped and opt-in, not a lock on every user. | +| Earlier pass treated 0.2.2 as the installable plugin with no staff lock | Superseded on 10 November 2026. The listing opened that day is 0.3.0. Grants are shipped and opt-in, not a lock on every user. | | Pair rule is unpublished repository behavior | Removed. The pair rule is the 0.3.0 requirements text. | ## Article claim results diff --git a/docs/marketing/323-seo-content/keyword-evidence.md b/docs/marketing/323-seo-content/keyword-evidence.md index 80142d03..08cdee78 100644 --- a/docs/marketing/323-seo-content/keyword-evidence.md +++ b/docs/marketing/323-seo-content/keyword-evidence.md @@ -65,7 +65,7 @@ No rank tracker was available. These are the kinds of pages a merchant already m - WordPress.org support threads for one store's import or bulk-edit incident. - Bulk-editor plugins that preview before save, or that keep a history of their own runs. - Price-history plugins aimed at EU lowest-price disclosure or at an admin change log. -- The [WriteLeash 0.2.2 listing](https://wordpress.org/plugins/writeleash/). Active installations on that page: fewer than 10. That is a directory bucket, not article traffic. +- The [WriteLeash 0.3.0 listing](https://wordpress.org/plugins/writeleash/), opened 10 November 2026. Active installations on that page: fewer than 10. That is a directory bucket, not article traffic and not a search volume. The 27 October 2026 read of the same URL showed 0.2.2. That is not the current listing. ## Gap the articles actually fill @@ -73,4 +73,4 @@ The official docs explain how to bulk edit and import. They do not walk through ## Distribution opportunities that are realistic -See [measurement.md](measurement.md). Short version: there is no project site to publish to. WordPress.org support forums are not an advertising channel. r/WordPress rules, as already recorded in `docs/launch-v0.2.md`, do not make these drafts postable. The honest next step is a founder-approved site, then Search Console on real URLs. +See [measurement.md](measurement.md). The guides are live at [https://mrdarkroot.github.io/WriteLeash/](https://mrdarkroot.github.io/WriteLeash/), checked HTTP 200 on 10 November 2026. WordPress.org support forums are not an advertising channel. r/WordPress rules, as already recorded in `docs/launch-v0.2.md`, do not make these guides postable there. Search Console is not connected, so impressions and clicks on the live URLs are not measured. diff --git a/docs/marketing/323-seo-content/measurement.md b/docs/marketing/323-seo-content/measurement.md index fc75ea88..6d92c718 100644 --- a/docs/marketing/323-seo-content/measurement.md +++ b/docs/marketing/323-seo-content/measurement.md @@ -29,7 +29,7 @@ Checked 10 November 2026. No tracking code is added to the WordPress plugin or t - Tested up to, as displayed: 7.1.4. Exercised pairs are the ones named in the requirements text, not this field alone - Search volume: not measured -The 27 October 2026 baseline was directory version 0.2.2 and the same active-installation bucket. That version is no longer the listing. +On 27 October 2026 the directory page showed 0.2.2 and fewer than 10 active installations. On 10 November 2026 the same page showed 0.3.0 and the same bucket. 0.2.2 is not the current listing. The guides are live at https://mrdarkroot.github.io/WriteLeash/. ## Reviews and forums