Bizboss Bizboss - 1 year ago 79
PHP Question

Format price in the current locale and currency

I use :


to get the unformatted price that I can calculate "quantity X price" with ajax.

I want to reformat the total in the current locale and currency. How can I do that?

Answer Source

I think Google could have answered your question ;-) See

You can do it with

$formattedPrice = Mage::helper('core')->currency($finalPrice, true, false);