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.

© Subesh Pokhrel's Blog – Magento Development Tips,PHP,Google Maps

  • Share/Bookmark

Related Post

Tags: , , ,

Leave your comment


Search engine optimization by SEO Design Solutions