title: Change Cart total price in WooCommerce
body: <p>I am running into issues with the cart total <strong>only displaying 0</strong></p>
  
  <p>Essentially what I am trying to do is only accept a deposit total of a certain amount after all cart items have been added to the carts subtotal.  </p>
  
  <p>So for example if the customer adds $100 worth of items, they would only pay $10 initially or (10%) of the subtotal as the total value.  </p>
  
  <p>I took the code from here: <a href="https://stackoverflow.com/questions/32872057/change-total-and-tax-total-woocommerce">Change total and tax_total Woocommerce</a> and customize it this way: </p>
  
  <pre><code>add_action('woocommerce_cart_total', 'calculate_totals', 10, 1);
  
  function calculate_totals($wc_price){
  $new_total = ($wc_price*0.10);
  
  return wc_price($new_total);
  } 
  </code></pre>
  
  <p><strong>But the total amount shows 0.00</strong> when that code is enabled. If removed the code, I get the standard total. </p>
  
  <p>I also could not find on the woocommerce site where the full api is listed, only generic articles related to how to create a plugin. </p>
  
  <p>Any help or a point in the right direction would be great.</p>