title: Get product prices to be displayed in WooCommerce 3
body: <p>i want to display 8 product of category X in my home page</p>
  
  <p>i use the following code to get products</p>
  
  <pre><code>    &lt;div class="row"&gt;
          &lt;?php  
              $args = array(
                  'post_type'      =&gt; 'product',
                  'posts_per_page' =&gt; 8,
                  'product_cat'    =&gt; 'cw'
              );
              $loop = new WP_Query( $args );
              while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post();
                  global $product;
          ?&gt;
  
          &lt;div class="col-md-3"&gt;
              &lt;div class="product"&gt;
                  &lt;?php echo woocommerce_get_product_thumbnail(); ?&gt;
                  &lt;p class="name"&gt;&lt;?php echo get_the_title(); ?&gt;&lt;/p&gt;
                  &lt;p class="regular-price"&gt;&lt;/p&gt;
                  &lt;p class="sale-price"&gt;&lt;/p&gt;
                  &lt;a href="&lt;?php echo get_permalink(); ?&gt;" class="more"&gt;more info&lt;/a&gt;
                  &lt;form class="cart" action="&lt;?php echo get_permalink(); ?&gt;" method="post" enctype='multipart/form-data' style="display:inline;"&gt;
                      &lt;button type="submit" name="add-to-cart" value="45" class="order"&gt;buy&lt;/button&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>with this i can get products, but i don't know use which method to get regular and sale price</p>