title: Get qty * variation price
body: <p>I am working on some code to get the selected variation price * quantity to total price.</p>
  
  <p>Somehow I don't manage to get it working:</p>
  
  <pre><code>add_action( 'woocommerce_single_product_summary', 'woocommerce_total_product_price', 31 ); 
  function woocommerce_total_product_price() {
  global $woocommerce, $product;
  // let's setup our divs
  echo sprintf('&lt;div id="product_total_price" style="margin-bottom:20px; display: block;"&gt;%s %s&lt;/div&gt;',__('Totaal Prijs:','woocommerce'),'&lt;span class="price"&gt;'.$product-&gt;get_price().'&lt;/span&gt;');
  ?&gt;
      &lt;script&gt;
          jQuery(function($){
              var price = &lt;?php get_post_meta( get_the_ID(), '_regular_price', true);?&gt;
              console.log(price);
              var currency = '&lt;?php echo get_woocommerce_currency_symbol(); ?&gt;';
  
              $('[name=quantity]').change(function(){
                      var product_total = parseFloat(price * this.value);
                      $('#product_total_price .price').html( currency + product_total.toFixed(2));
  
  
              });
          });
      &lt;/script&gt;
  &lt;?php }
  </code></pre>
  
  <p>Any suggestions on this one?</p>