I’m looking in the sql db and I can see something that resembles orders inside wp_posts . However, I would expect them to be inside the tables beginning with wp_woocommerce.
Can anyone shed some light on this phenomenon?
Cheers
Advertisement
Answer
In woocommerce orders are modelled as a custom post type so they are stored in wp_posts
as you found. See WooCommerce taxonomies and post types for a list of the custom post types that woocommerce uses. Orders are stored as the type shop_order
Separate items within an Order are stored as separate records in the custom table woocommerce_order_items