title: How to display the regular price and sale price in single product and loop pages?
body: <p>I had this code in function.php of my child theme to display the regular price and sale price and it was working fine in WooCommerce v2.6.14.</p>
  
  <p>But this snippet doesn't work anymore on WooCommerce version 3.2.3.</p>
  
  <p>How can I fix that?</p>
  
  <p>Here is that code:</p>
  
  <pre><code>add_filter( 'woocommerce_sale_price_html', 'woocommerce_custom_sales_price', 10, 2 );
  function woocommerce_custom_sales_price( $price, $product ) {
  $saved = wc_price( $product-&gt;regular_price - $product-&gt;sale_price );
  return $price . sprintf( __('&lt;p&gt;Save %s&lt;/p&gt;', 'woocommerce' ), $saved );
  }
  </code></pre>
  
  <p>Thanks to whoever help me out!</p>