Magento gives an option to have different currency defined for each store. To get the product’s price based on the current store you can use the following code. It uses the default Magento’s helper class to do.
<?php
/* @Class: Mage_Core_Helper_Data
* The params for the currency function
* @param float $value
* @param bool $format
* @param bool $includeContainer
*/
echo Mage::helper('core')->currency($product->getFinalPrice(),true,false);
?>
In the code above $product is the product, whose price you will want to format.
Comments
No Responses to “Getting the Product’s Price in current currency format of store”