Home

Tuesday, March 25, 2014

Format price in the current locale and currency

Unformatted and formatted:
 
$price = $product->getPrice();
$formatted = Mage::helper('core')->currency($price, true, false);

No comments:

Post a Comment

rathoddhirendra.blogspot.com-Google pagerank and Worth