Hello there,
To reply to your questions, yes – WooCommerce records all order data, here are the primary database tables involved in storing order information:
wp_posts
Table: Each order is stored as a post of type shop_order
. This table holds the basic order information, including the order ID, status, date, and other metadata.
wp_postmeta
Table: This table stores the order meta-data. It includes details like billing and shipping information, payment method, order total, and any custom data related to the order.
wp_woocommerce_order_items
Table: This table stores individual items associated with each order, such as the products purchased in the order.
wp_woocommerce_order_itemmeta
Table: This table stores meta-data for each order item, including product IDs, quantities, tax data, and other item-specific details.
wp_woocommerce_payment_tokens
and wp_woocommerce_payment_tokenmeta
Tables: These tables store payment token information if the site uses saved payment methods.
The WooCommerce data is stored in the same database as the rest of the WordPress site. Database defined in the wp-config.php file.
We hope you find this answer helpful, cheers.