title: Display the discounted price and percentage on Woocommerce products
body: <p>On the image below, it shows the discounted price and percentage </p>
  
  <p>I found no custom code searching that has this feature.</p>
  
  <p>I am using the code below to display the discounted price, but the price is not formatted (the currency symbol and the decimals are missing):</p>
  
  <pre><code>add_filter( 'woocommerce_get_price_html', 'modify_woocommerce_get_price_html', 10, 2 );
  
  function modify_woocommerce_get_price_html( $price, $product ) {
      if( $product-&gt;is_on_sale() &amp;&amp; ! is_admin() )
          return $price . sprintf( __('&lt;p class="saved-sale"&gt;Save: %s&lt;/p&gt;', 'woocommerce' ), $product-&gt;regular_price - $product-&gt;sale_price );
      else
          return $price;
  }
  </code></pre>
  
  <p>How can I display the correct formatted discounted price?
  How can I display also the discounted percentage?</p>
  
  <p>Any help is apppreciated.</p>