Con la siguiente consulta podréis sacar un listado de todos los productos de tu tienda online en WooCommerce con el ID del producto, titulo, precio de venta, precio regular y precio descuento.
SELECT p.ID, p.post_title, mp.meta_value as '_price', mrp.meta_value as '_regular_price', msp.meta_value as '_sale_price' FROM `wp_posts` as p LEFT JOIN `wp_postmeta` as mp ON p.ID = mp.post_id LEFT JOIN `wp_postmeta` as mrp ON p.ID = mrp.post_id LEFT JOIN `wp_postmeta` as msp ON p.ID = msp.post_id WHERE p.post_type = 'product' AND mp.meta_key = '_price' AND mrp.meta_key = '_regular_price' AND msp.meta_key = '_sale_price'