title: Get woocommerce sale price instead of regular price?
body: <p>I am attempting to grab the sale price of a woocommerce product and than display the price 20% off.</p>
  
  <p>The code I have right now is sort of working. Its grabbing the "regular" price and displaying that as 20% off. But I would like it to grab the sale price.</p>
  
  <p>How is this done in woocommerce?</p>
  
  <p>Here is my PHP</p>
  
  <pre><code>&lt;?php
  if($product-&gt;product_type=='variable') {
      global $product;
      $sales_price = esc_attr( $product-&gt;get_display_price() );
      $discount = 20;
      $currency = esc_attr( get_woocommerce_currency() );
      $new_price = ($sales_price * $discount) / 20;
  
      echo 'Get this product for '.$new_price.$currency.' with (Promo code)';
  }
  ?&gt;
  </code></pre>