$args = array( 'post_type' => 'product', 'posts_per_page' => -1 ); $products = get_posts( $args );
$product->get_regular_price(); $product->get_sale_price(); $product->get_price();