magento 购物车总价钱

来源:互联网 发布:c语言中开根号怎么表示 编辑:程序博客网 时间:2024/04/27 03:45

获取总价:

$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

原创粉丝点击