Linux 软件免费装
Banner图

Nextial Order Archive – Archive Old Orders for WooCommerce

开发者 nextial
更新时间 2026年11月17日 00:16
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

database cleanup hpos archive orders old orders wp_postmeta

下载

0.1.4 0.2.0 0.1.3 0.3.0 0.1.2 0.1.1

详情介绍:

Before you install, you need: WooCommerce 8.2 or newer with compatibility mode off (WooCommerce → Settings → Advanced → Features), so orders live in one place only. Both order storages work: High-Performance Order Storage (HPOS) and the classic storage in wp_posts / wp_postmeta (since 0.2.0). Make a database backup before the first run. Stores with years of orders get a slow Orders screen, slow searches and heavy database queries. On shops without HPOS it is worse: every order adds dozens of rows to wp_postmeta, the table the whole site reads. Nextial Order Archive moves old, finished orders out of the live WooCommerce order tables into archive tables, so WooCommerce works on the orders that matter today. https://youtu.be/QfCGkjeeZkA Safe by design What to know

安装:

  1. Install and activate the plugin, then open WooCommerce → Order Archive.
  2. Choose statuses and age, then press Save and preview: nothing is moved.
  3. Make a database backup, then press Archive matching orders now.
  4. Optional: tick Run this rule every night.

屏幕截图:

  • "Archived orders" tab in the customer's My Account page.
  • Archived order detail in My Account (read-only).
  • Archived orders found by the normal WooCommerce order search.

常见问题:

Does it work without HPOS?

Yes, since 0.2.0. On the classic storage orders are archived out of wp_posts, wp_postmeta, the order items tables and the comments tables, with the same transaction and row-count checks. Compatibility mode must be off. Developers can switch this off with the filter nextial_oa_legacy_storage (return false).

Can I get an order back?

Yes, from WooCommerce → Order Archive → Archived orders → Restore. It returns with the same ID and all its data.

What happens to product stock when I archive or restore an order?

Nothing: stock is not touched. Archiving and restoring move the order's rows between tables; the order keeps its status, and no status change or stock event is fired, so WooCommerce does not reduce or increase stock again. Tested on HPOS and classic storage (stock identical before archiving, after archiving and after restoring).

Can I restore many orders at once?

Yes, free: tick several orders and press "Restore selected", or press "Restore all … archived orders" (with a search term: all the orders that match) and they come back in small background batches, like archiving. If one order cannot come back — for example its ID is taken by a new order — it is skipped and listed, and the others still return.

What happens to reports?

Nothing: WooCommerce Analytics keeps its own tables, which this plugin never changes.

What if I uninstall the plugin?

Settings are removed, the archive tables are kept. Reinstall the plugin to search or restore archived orders.

Can customers see their archived orders?

Yes. From 0.1.1 an "Archived orders" tab appears in the customer's My Account page, only if they have archived orders. It is read-only and shows only their own orders. Orders placed as a guest (no account) are not shown. You can switch the tab off in WooCommerce → Order Archive.

What about GDPR requests (export and erase personal data)?

Archived orders are included. WordPress → Tools → Export Personal Data adds a section "Archived orders" with the order, its items and the addresses. Tools → Erase Personal Data anonymises archived orders exactly when WooCommerce would anonymise live ones: only if "Remove personal data from orders on request" is on in WooCommerce → Settings → Accounts & Privacy. Totals, items, dates and country stay, so reports and accounting still add up.

Is it safe on a big store?

Each batch runs in one database transaction and every row count is checked before the live rows are removed; if anything differs, the batch is rolled back. Use the preview first and make a database backup before the first run.

更新日志:

0.3.0 0.2.0 0.1.4 0.1.3 0.1.2 0.1.1 0.1.0