I'm using Magento 1.9 and I want to display subtotal in the cart button. I tried with this code
<?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
But it still displays 0.00
in the cart, even after I added a product to cart.