I use :
$product->getPrice();
获得未格式化的价格,我可以用ajax计算“数量X价格”。
我想以当前区域设置和货币重新格式化总计。我怎样才能做到这一点?
我认为谷歌可以回答你的问题;-)看看http://blog.chapagain.com.np/magento-format-price/ http://blog.chapagain.com.np/magento-format-price/.
你可以这样做
$formattedPrice = Mage::helper('core')->currency($finalPrice, true, false);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)