$_productId = 52;
$_product = Mage::getModel('catalog/product')->load($_productId);
Get Actual Price
// without currency sign
$_actualPrice = $_product->getPrice();
// with currency sign
$_formattedActualPrice = Mage::helper('core')->currency($_product->getPrice(), true, false);
Get Special Price
// without currency sign
$_specialPrice = $_product->getFinalPrice();
// with currency sign
$_formattedSpecialPrice = Mage::helper('core')->currency($_product->getFinalPrice(), true, false);
Note: static mixed currency (float $value, [bool $format = true], [bool $includeContainer = true])
http://docs.magentocommerce.com/Mage_Core/Mage_Core_Helper_Data.html
http://blog.chapagain.com.np/magento-how-to-get-actual-price-and-special-price-of-a-product/
No comments:
Post a Comment