title: Woocommerce: Display Total Price when multiple quantities of a variable product are chosen
body: <p>I am looking to display the total price of a variable product when multiple quantities are selected.  I found <a href="http://reigelgallarde.me/programming/show-product-price-times-selected-quantity-on-woocommecre-product-page/" rel="nofollow">this piece of code being suggested in a few different places</a> and it works great for simple products but when used for variable products the 'Product Total' multiplies by the minimum price of the variable product.  </p>
  
  <p>For example.  We have a variable product with prices that range from $20 - $100</p>
  
  <p>You select a $30 variation, increase the quantity to 2 and the Total Price displays $40.</p>
  
  <p>When added to the cart the Subtotal comes out correct ($60).</p>
  
  <p>How do we get the Total Price line to calculate based on the price of the chosen variation?</p>