title: Magento - How to get the subtotal for a single product in cart?
body: <p>I want to display the total price for each product (by id) in the cart.</p>
  
  <pre><code>qty | single price | total
  2   |      $ 2.00  | $  4.00 &lt;-- that's what i need
  3   |      $ 5.00  | $ 15.00
      |  Subtotals:  | $ 19.00 &lt;-- that's what i get with the code below
  
  $totals = Mage::getSingleton("checkout/cart")-&gt;getQuote()-&gt;getTotals();
  $subtotal = $totals["subtotal"]-&gt;getValue();
  echo Mage::helper('checkout')-&gt;formatPrice($subtotal);
  </code></pre>
  
  <p>Any help is welcome.</p>