Subesh Pokhrel's Blog – Magento Development Tips,PHP,Google Maps
PHP & Magento Tips & Tutorials
Share

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.

  • Share/Bookmark

You may also be interested

Comments

No Responses to “Getting the Product’s Price in current currency format of store”

Write a Comment

Search engine optimization by SEO Design Solutions