diff --git a/docs/marketing/323-seo-content/README.md b/docs/marketing/323-seo-content/README.md new file mode 100644 index 0000000..d2ed5bf --- /dev/null +++ b/docs/marketing/323-seo-content/README.md @@ -0,0 +1,35 @@ +# SEO content for issue #323 + +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 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 stay `NOT_AVAILABLE` | +| [publication-manifest.json](publication-manifest.json) | Slugs, metadata, live-URL status | +| [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 | + +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. + +## Claim boundary + +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. + +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. + +`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. + +## Publication + +Live host, checked HTTP 200 on 10 November 2026: `https://mrdarkroot.github.io/WriteLeash/`. + +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. + +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. + +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 new file mode 100644 index 0000000..e8c864f --- /dev/null +++ b/docs/marketing/323-seo-content/articles/imported-sale-price-not-showing.md @@ -0,0 +1,92 @@ +--- +title: "An imported WooCommerce sale is saved but the shop shows full price" +slug: imported-sale-price-not-showing +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 +--- + +# An imported WooCommerce sale is saved but the shop shows full price + +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](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 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. + +## 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](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. + +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](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. + +## 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](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 + +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 + +- [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 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](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 new file mode 100644 index 0000000..ea80120 --- /dev/null +++ b/docs/marketing/323-seo-content/articles/restore-sale-prices-overwritten-by-import.md @@ -0,0 +1,103 @@ +--- +title: "Restore WooCommerce sale prices a CSV import overwrote" +slug: restore-sale-prices-overwritten-by-import +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 publishes this guide. It is not an independent review." +canonical_status: INTENDED +date_revised: 2026-11-10 +--- + +# Restore WooCommerce sale prices a CSV import overwrote + +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](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. + +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: + +| SKU | Regular price | Sale price | Sale dates | +| --- | --- | --- | --- | +| CAP | 24.00 | 18.00 | none | +| HOODIE | 80.00 | 64.00 | none | + +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](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. + +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. + +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, 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](woocommerce-price-history.md). +- 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](undo-woocommerce-bulk-price-edit.md) 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](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 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](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 new file mode 100644 index 0000000..5352df9 --- /dev/null +++ b/docs/marketing/323-seo-content/articles/restrict-woocommerce-price-changes.md @@ -0,0 +1,80 @@ +--- +title: "Stop staff and AI tools from changing WooCommerce prices" +slug: restrict-woocommerce-price-changes +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 +--- + +# Stop staff and AI tools from changing WooCommerce prices + +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](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. + +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](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 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. 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](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. + +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 + +- [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 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](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 new file mode 100644 index 0000000..26e2f2d --- /dev/null +++ b/docs/marketing/323-seo-content/articles/undo-woocommerce-bulk-price-edit.md @@ -0,0 +1,113 @@ +--- +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 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 publishes this guide. It is not an independent review." +canonical_status: INTENDED +date_revised: 2026-11-10 +--- + +# Undo a WooCommerce bulk price edit from the pre-change CSV + +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**. + +**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](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. + +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](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). + +## 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 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. 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 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](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 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 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. + +## 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](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. + +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](restrict-woocommerce-price-changes.md) 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](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. + +## Related guides + +- [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? + +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](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 new file mode 100644 index 0000000..c367f10 --- /dev/null +++ b/docs/marketing/323-seo-content/articles/woocommerce-price-history.md @@ -0,0 +1,104 @@ +--- +title: "Keep a WooCommerce price history with a dated CSV" +slug: woocommerce-price-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 publishes this guide. It is not an independent review." +canonical_status: INTENDED +date_revised: 2026-11-10 +--- + +# Keep a WooCommerce price history with a dated CSV + +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](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 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](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.** 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](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. + +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](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. + +### A plugin log, installed before you need it + +[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. + +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. + +### 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](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. 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 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 + +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](restrict-woocommerce-price-changes.md) is a separate decision. + +## 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 + +### 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](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 0000000..ebae578 --- /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} +
    + + + +""" + + +_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.

    + +

    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 0000000..558510f --- /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 0000000..9654e1b --- /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 0000000..7a2ca87 --- /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 0000000..cbf77f2 --- /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 0000000..8755586 --- /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 0000000..43834a5 --- /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 0000000..b675671 --- /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.

    +
    +
    + + +