Back to blog
5 min read Export Guides

Export WooCommerce Orders with HPOS Enabled (No Compatibility Mode)

Since WooCommerce 8.2, new stores keep orders in High-Performance Order Storage (HPOS): their own tables wp_wc_orders, wp_wc_order_addresses, wp_wc_order_operational_data and wp_wc_orders_meta instead of wp_posts and wp_postmeta. Exports that read the posts tables directly, such as an SQL query or an old export plugin, then return no orders or rows with empty addresses and totals. Import Export by RockStarLab PRO reads orders through WooCommerce itself, so the export is the same whether the store uses HPOS or the legacy storage, including custom order fields stored in wp_wc_orders_meta.

PRO: WooCommerce order export is part of the PRO plugin. The test below used WooCommerce 11.2 with HPOS on and compatibility mode off, and Import Export by RockStarLab PRO 2.1.31.

Short Answer

In the plugin’s Export, choose WooCommerce Orders (8.0+), filter by status or date, pick the columns and export to CSV or Excel. You don’t need to turn on WooCommerce’s compatibility mode or sync orders back to the posts table first. Custom order fields added by checkout or delivery plugins appear in the Custom Fields group as meta_<name> columns.

Check How Your Store Stores Orders

Go to WooCommerce > Settings > Advanced > Features. Under Order data storage, our test store used High-performance order storage, with compatibility mode off:

WooCommerce Features settings with Order data storage set to High-performance order storage and compatibility mode turned off
HPOS on, compatibility mode off.

With compatibility mode off, WooCommerce stops copying orders to the posts table. In our store, wp_posts held 12 rows of the type shop_order_placehold, placeholders without addresses, items or totals, while wp_wc_orders held the actual orders. A query on wp_posts with post_type = 'shop_order' returned nothing. This is why exports built for the old storage come back empty.

Export the Orders

In Import Export by RockStarLab > Export, we chose WooCommerce Orders (8.0+). On the Filters step we added Status, In, processing, completed, which left 5 of the store’s 10 orders:

Order export Step 2 with the filter Status In processing, completed and 5 items available
Only processing and completed orders.

On the Fields step we dragged in Order Number, Order Date, Status, the billing name and email, Order Total, Item Name and Item Quantity from their groups, and delivery_slot from Custom Fields, a custom field we had added to each order, the way delivery and checkout plugins do:

Order export Step 3 with ten columns including Order Number, Status, billing name and email, Order Total, Item Name, Item Quantity and delivery_slot
Order columns and a custom field from wp_wc_orders_meta.

We exported to Excel. The file:

order_number order_status billing_first_name billing_last_name order_total item_name item_quantity meta_delivery_slot
2776 processing Anna Keller 49.00 Hoodie with Logo 1 Morning
2777 completed Marco Rossi 200.00 Belt | Hoodie with Pocket 3 | 1 Evening
2779 completed Lena Novak 34.00 T-Shirt | Cap 1 | 1 Afternoon
2782 completed Tom Becker 36.00 T-Shirt with Logo | T-Shirt 1 | 1 Evening
2781 processing Sofia Lima 54.00 Beanie with Logo | Beanie 2 | 1 Morning

The order date and billing email columns are in the file too; we left them out of the table. Every value came from the HPOS tables: addresses from wp_wc_order_addresses, totals from wp_wc_orders and the delivery slot from wp_wc_orders_meta.

Things to Know

  • Compatibility mode is not needed. Turning it on makes WooCommerce write every order to both storages. The export doesn’t depend on it.
  • Refunds. Refunds are separate records in WooCommerce. Use the Refunds column for the refunds of each order, or the WooCommerce Refunds export.
  • One row per order or per item. Item columns join several items with |. For one row per item, see exporting orders with one row per order item.
  • Moving orders to another store. The import writes orders through WooCommerce too, so it works with HPOS on either side. Export with the Order Items column, which carries the full line items, rather than only the Item Name and Item Quantity columns.
  • All custom fields at once. The Order Meta column carries the order’s custom fields as JSON, for example {"delivery_slot":"Evening"}.

With an AI agent

Import Export by RockStarLab gives AI agents its exports, imports and Content Sync as abilities. Through the WordPress MCP Adapter, WordPress itself offers an agent only read-only abilities for site, user and environment information, so without the plugin the agent cannot do the steps above (to connect an agent, see connecting Claude Code to WordPress). With it, one request is enough:

With Import Export by RockStarLab, list the processing orders with their number, total and delivery slot.

In our run, the agent called rsl-ie-pro/export-preview with the export type woo_order, the status processing and the fields order number, status, total and meta_delivery_slot. It returned orders 2776 (49.00, Morning) and 2781 (54.00, Morning).

FAQ

Why does my WooCommerce order export come back empty after enabling HPOS?

The export reads wp_posts and wp_postmeta, where WooCommerce no longer keeps orders when HPOS is on and compatibility mode is off. Use an export that reads orders through WooCommerce, which works with both storages.

Do I need compatibility mode to export orders?

No. Import Export by RockStarLab PRO exports orders from the HPOS tables directly through WooCommerce.

Are custom order fields exported with HPOS?

Yes. Custom fields stored in wp_wc_orders_meta appear in the Custom Fields group as meta_<name> columns.

Can I import orders into a store that uses HPOS?

Yes. The order import saves through WooCommerce, so the orders land in the HPOS tables, or in the posts tables on a legacy store.

Get the free plugin on WordPress.org. WooCommerce order export and import are part of PRO.

Dmitriy
About author

Dmitriy

WordPress Developer with 15+ years of commercial experience. Elite Author on ThemeForest and creator of custom WordPress plugins. Passionate about clean code, performance optimization, and building useful tools for the WordPress community.

JOIN THE CONVERSATION

Comments 0

Have a question or a tip to share? Leave it below.

Leave a comment

Your email address will not be published. Required fields are marked *

We store your name, email and comment to show and moderate it; your email is never published. Spam protection is provided by Cloudflare Turnstile and profile pictures by Gravatar. See our Privacy Policy.


Try the plugin with no risks!

New users get 1 month with access to all premium features. Experience the most powerful WordPress data engine today.

Download Now
Get PRO for FREE