Table of Contents

How Woocommerce stores orders in the database?

WooCommerce stores order data in the WordPress database similarly to how it stores product data, utilizing the existing WordPress database structure along with custom tables and relationships.

Here’s how WooCommerce organizes order data:

Database Tables

Key Fields in the Posts Table

When an order is created, a new row is inserted in the `wp_posts` table with the following key fields:

Key Fields in the Post Meta Table

The `wp_postmeta` table stores various metadata associated with each order. Some key metadata fields include:

Additional Tables for Woocommerce

WooCommerce may also create additional tables or use relationships for certain features, such as:

Order Statuses

WooCommerce has a predefined set of order statuses (like `pending`, `processing`, `completed`, `cancelled`, etc.) which are stored as part of the post meta. These statuses help manage the order workflow.

Extensions, plugins and Customizations

As with product data, many WooCommerce extensions or plugins might introduce their own tables or post types to manage additional order-related information, such as customer feedback, order notes, or processing logs.

How to export WooCommerce orders?

You can use the software FBL WP Export to export your orders.