Magento: Format Price
When you fetch product data, you get the price as integer. Now, you must display the price with currency suffix. You can do this with the following code:-
// let $_finalPrice be the integer price fetched
$formattedPrice = Mage::helper('core')->currency($_finalPrice,true,false);
From Mukesh Chapagain's Blog, post Magento: Format Price
Related posts:
- Magento: How to get actual price and special price of a product?
- Magento: Convert Price from Current Currency to Base Currency and vice-versa
- Magento: Create Catalog Price Rule Programmatically
- Magento: Create Shopping Cart Price Rule Programmatically
- jQuery: Grey out background and preview image as popup
- jQuery: Print array and object
- PHP: Simple and easy way to format URL string
- Magento jQuery: How to use them together?
- Magento: Payment method not displayed in Multiple Shipping Adresses Checkout
- Magento: Get all shopping cart items and totals
