How to get all product in the woo-commerce? [closed]

Yes and no, WP_Query fetches posts, it doesn’t display them. You can query for WooCommerce products as they’re a custom post type. Just create a query object, and specify the post_type parameter to use the post type WooCommerce uses, then loop over them, displaying them and grabbing the post meta such as the SKU as you go along.

How you would do that, and what post meta is used to store SKU price etc though is WooCommerce specific and beyond the scope of this site. Consult the WooCommerce documentation for those details