Title: Orderloft – Archive Old Orders for WooCommerce
Author: Ali Nawaz
Published: <strong>November 19, 2026</strong>
Last modified: November 19, 2026

---

Search plugins

![](https://ps.w.org/orderloft/assets/banner-772x250.png?rev=3810719)

![](https://ps.w.org/orderloft/assets/icon-256x256.gif?rev=3810719)

# Orderloft – Archive Old Orders for WooCommerce

 By [Ali Nawaz](https://profiles.wordpress.org/imalinawaz/)

[Download](https://downloads.wordpress.org/plugin/orderloft.1.0.2.zip)

 * [Details](https://wordpress.org/plugins/orderloft/#description)
 * [Reviews](https://wordpress.org/plugins/orderloft/#reviews)
 *  [Installation](https://wordpress.org/plugins/orderloft/#installation)
 * [Development](https://wordpress.org/plugins/orderloft/#developers)

 [Support](https://wordpress.org/support/plugin/orderloft/)

## Description

A store that has sold for a few years carries every order it ever took. The Orders
screen gets slower, order search drags, and every plugin that looks up orders has
to wade through years of orders nobody opens. WooCommerce has no built-in way to
archive orders, so most owners either live with it or delete orders and lose their
sales history.

Orderloft moves old WooCommerce orders out of your live order tables into an archive.
Your Orders screen, order search and every plugin that queries orders work with 
a smaller set of recent orders, while the old ones stay safe, searchable and one
click away from being restored.

Pick an age and the statuses to archive, such as completed, refunded, cancelled 
and failed orders older than 12 months. Archive them now, or let Orderloft do it
every night.

**Free, with no Pro needed:** scheduled nightly archiving, one-click restore, archived
orders kept in WooCommerce Analytics, My Account order history, the WooCommerce 
Subscriptions check and WP-CLI commands.

**What moves, and what doesn’t**

Each order moves with everything that belongs to it: its refunds, line items and
item meta, addresses, order meta and order notes. The move happens inside one database
transaction, so if anything fails nothing changes. Row IDs are kept, so a restored
order has the same ID, order number, order key, items and history it had before.

Orderloft never deletes orders through WooCommerce, so **WooCommerce Analytics keeps
counting archived orders**. Your revenue, orders and product reports stay complete
after archiving.

**Features**

 * **Archive by age and status:** orders older than X months with the statuses you
   choose.
 * **Free nightly automatic archiving** at 03:00 site time, with a per-run limit
   so a large first archive is spread over several nights.
 * **Background batches** through Action Scheduler (part of WooCommerce), so big
   stores don’t time out.
 * **Archived orders screen:** search by order number, email or name, view a read-
   only copy of any order, and export the list to CSV.
 * **One-click restore**, single or in bulk. Restored orders are kept out of later
   automatic runs.
 * **Archive one order** from its edit screen.
 * **Old links keep working:** opening the edit link of an archived order shows 
   the archived copy instead of an error.
 * **Customers still see their history:** archived orders appear under My Account
   Orders as a read-only “Older orders” list (can be turned off).
 * **WooCommerce Subscriptions aware:** orders linked to a subscription that is 
   not cancelled or expired are kept in the live tables.
 * **Privacy tools:** archived orders are included in WordPress personal data exports,
   and erasure requests follow WooCommerce’s own “remove order data” setting.
 * **WP-CLI:** `wp orderloft status`, `wp orderloft archive`, `wp orderloft restore`.
 * **Works with every order storage:** High-Performance Order Storage (HPOS), HPOS
   with compatibility mode, and the legacy posts storage.

**Orderloft Pro**

Orderloft Pro is a separate add-on for stores that need more control or want the
archive out of the database. The free plugin keeps every feature above, and Pro 
adds:

 * **Unlimited archive rules:** combine order age in days, months or years with 
   statuses, payment methods, an order total range, customer roles or guest orders,
   refunds and product categories. Each rule has its own schedule, from hourly to
   weekly, and a preview of the orders it matches before anything moves.
 * **Offload the archive:** save archived orders as compressed files in S3-compatible
   storage (such as Amazon S3, Cloudflare R2, Backblaze B2 or Wasabi) or in a server
   folder.
 * **Free database space:** after each upload is verified, the archived orders are
   removed from the database. Restore them later into the archive or straight back
   to your live orders.
 * **GDPR anonymisation:** scrub names, addresses, emails, phone numbers and IP 
   addresses from old orders you only keep for tax, while totals, items and dates
   stay.
 * **Archive analytics, email reports and an activity log.**

Orderloft Pro costs from $29 a year, with a 14-day refund. [See Orderloft Pro](https://bealinawaz.com/wordpress-plugins/pro/orderloft/?utm_source=wordpress.org&utm_medium=plugin-readme&utm_campaign=orderloft).

**Custom development**

Need archiving to another database, custom retention rules, or help with a slow 
WooCommerce store? Orderloft is built and maintained by Ali Nawaz, a WordPress and
WooCommerce developer. [Get in touch](https://bealinawaz.com/contact-me/?utm_source=wordpress.org&utm_medium=plugin-readme&utm_campaign=orderloft).

## Screenshots

[⌊Overview: live and archived order counts, orders ready to archive, and the last
run.⌉⌊Overview: live and archived order counts, orders ready to archive, and the
last run.⌉[

Overview: live and archived order counts, orders ready to archive, and the last 
run.

[⌊Archived orders: search, view, restore and export.⌉⌊Archived orders: search, view,
restore and export.⌉[

Archived orders: search, view, restore and export.

[⌊Read-only view of an archived order.⌉⌊Read-only view of an archived order.⌉[

Read-only view of an archived order.

[⌊Settings: age, statuses, nightly archiving and batch sizes.⌉⌊Settings: age, statuses,
nightly archiving and batch sizes.⌉[

Settings: age, statuses, nightly archiving and batch sizes.

[⌊Customers see archived orders under My Account → Orders.⌉⌊Customers see archived
orders under My Account → Orders.⌉[

Customers see archived orders under My Account  Orders.

## Installation

 1. Install and activate WooCommerce, then this plugin.
 2. Go to **WooCommerce  Order Archive  Settings**.
 3. Choose how old orders must be and which statuses to archive. Optionally turn on
    automatic archiving.
 4. Back on the **Overview** tab, check the number of orders ready to archive and click**
    Archive now**.

Take a database backup before your first archive, as with any plugin that changes
many orders.

## FAQ

### Are archived orders deleted?

No. They are moved to archive tables in the same database (their names start with`
orderloft_`). You can view, search, export and restore them at any time.

### Is archiving the same as deleting old orders?

No. Deleting orders through WooCommerce removes them from your reports and from 
customers’ order history for good. Orderloft keeps every archived order: Analytics
still counts it, customers can still see it, and you can restore it with the same
ID and history.

### Will archiving change my WooCommerce Analytics reports?

No. Orderloft does not delete orders through WooCommerce, so the Analytics data 
for archived orders stays in place and your reports still include them.

### Does it make my store faster?

It keeps the live order tables smaller, which helps the Orders screen, order search,
customer pages and plugins that query orders on stores with many orders. The database
as a whole is the same size, because archived orders are kept in it.

### Does archiving free database space?

Not on its own. The free plugin moves orders into archive tables in the same database,
so the total size stays the same. Orderloft Pro can offload archived orders to S3-
compatible storage or a server folder and then remove them from the database after
a verified upload, which frees the space.

### Which orders are archived by default?

Completed, refunded, cancelled and failed orders older than 12 months. Processing,
on-hold and pending orders are not selected by default. You can change both rules.

### Can customers still see old orders?

Yes. Archived orders appear in a read-only “Older orders” table under My Account
Orders. You can turn this off in the settings.

### What happens to refunds?

Refunds move with their order and come back with it when you restore it.

### Does it work with HPOS?

Yes. It works with High-Performance Order Storage, HPOS with compatibility mode 
turned on, and the legacy posts storage. In compatibility mode, the posts copies
of an order move with it, so WooCommerce’s sync stays clean.

### Does it work with WooCommerce Subscriptions?

Orders linked to a subscription that is still active, on hold or pending cancellation
are skipped. You can turn this check off.

### What does my database need?

The order tables must use the InnoDB engine (the MySQL and MariaDB default), so 
every move can be rolled back. Orderloft checks this and refuses to run otherwise.

### What happens if I deactivate or delete the plugin?

Deactivating stops automatic archiving; archived orders stay in the archive tables.
Deleting the plugin removes its tables only when the archive is empty, so archived
orders are never lost by accident. Restore them first (Archived orders  select all
Restore, or `wp orderloft restore --all`), then delete the plugin to remove everything.

### What does Orderloft Pro add?

Unlimited archive rules with their own schedules and a preview, offloading to S3-
compatible storage or a server folder, removing offloaded orders from the database
to free space, GDPR anonymisation of old orders, and archive analytics, email reports
and an activity log. It is a separate add-on that needs this free plugin. See [Orderloft Pro](https://bealinawaz.com/wordpress-plugins/pro/orderloft/?utm_source=wordpress.org&utm_medium=plugin-readme&utm_campaign=orderloft).

### Can I archive from the command line?

Yes: `wp orderloft archive --older-than=24 --dry-run` shows how many orders match,
and `wp orderloft archive --status=completed,refunded --limit=5000` archives them.`
wp orderloft restore <id>` or `--all` restores.

### Is the plugin available in my language?

The plugin is ready for translation, and translations are made by volunteers on 
WordPress.org. You can help translate it into your language at [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/orderloft/).
Once a language is 90% translated, WordPress installs the translation automatically
through language packs. A translation template, languages/orderloft.pot, is included
for tools such as Poedit and Loco Translate.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Orderloft – Archive Old Orders for WooCommerce” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ Ali Nawaz ](https://profiles.wordpress.org/imalinawaz/)

[Translate “Orderloft – Archive Old Orders for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/orderloft)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/orderloft/), check 
out the [SVN repository](https://plugins.svn.wordpress.org/orderloft/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/orderloft/) by [RSS](https://plugins.trac.wordpress.org/log/orderloft/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.2 (2026-11-19)

 * The Overview tab and the plugin’s row on the Plugins screen mention the Orderloft
   Pro add-on. Both are hidden when Pro is active.
 * Readme: clearer description, Orderloft Pro section, new questions on deleting
   orders and database space.

#### 1.0.1 (2026-11-15)

 * Translations: a translation template (languages/orderloft.pot) is included, and
   the readme explains how to translate the plugin.
 * Right-to-left languages: the overview list uses logical CSS.

#### 1.0.0

 * First release: archive orders by age and status, free nightly automatic archiving,
   background batches, archived orders screen with search, view, CSV export and 
   restore, single-order archiving, My Account history, privacy export and erasure,
   WP-CLI commands, and support for HPOS, HPOS compatibility mode and legacy order
   storage.

## Meta

 *  Version **1.0.2**
 *  Last updated **15 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [archive orders](https://wordpress.org/plugins/tags/archive-orders/)[old orders](https://wordpress.org/plugins/tags/old-orders/)
   [order management](https://wordpress.org/plugins/tags/order-management/)[woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
   [woocommerce orders](https://wordpress.org/plugins/tags/woocommerce-orders/)
 *  [Advanced View](https://wordpress.org/plugins/orderloft/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/orderloft/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/orderloft/reviews/)

## Contributors

 *   [ Ali Nawaz ](https://profiles.wordpress.org/imalinawaz/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/orderloft/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.buymeacoffee.com/bealinawaz)