获取总价:
$totals = Mage::getSingleton('checkout/cart')->getQuote()->getTotals();
$subtotal = $totals["subtotal"]->getValue();
输出总价:
<?php echo Mage::getModel('core/store')->formatPrice($subtotal,false);?>
转自:http://hi.baidu.com/leuphis_ws588/blog/item/8da89426fd5e7b1b4d088d19.html