Get magento subtotal from cart
magento, magento-1.9
Solution
You can also try following code it works for me
<?php echo Mage::helper('checkout/cart')->getQuote()->getSubtotal() ?>
Problem
I'm currently using this snippet to show the cart totals in the topcart of my Magento shop. My problem is that it's not always updating when products is put in cart, it's just showing 0$, especially configurable products. But when a second product is put in the cart, it's working again. Am I missing something, should there be a "check" of some kind before this piece of code? ``` <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?> ```