我用:
$product->getPrice();
要获得我可以用 ajax 计算“数量 X 价格”的未格式化价格。
我想以当前语言环境和货币重新格式化总计。我该怎么做?
最佳答案
我认为 Google 可以回答您的问题 ;-) 请参阅 http://blog.chapagain.com.np/magento-format-price/ .
你可以这样做
$formattedPrice = Mage::helper('core')->currency($finalPrice, true, false);
关于php - 以当前语言环境和货币格式化价格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6730180/