How To Get Actual Price And Special Price Of Product In Magento.?
Get Actual Price And Special Price Of Product In Magento.
TO get the actual and special price in Magento you need to add precise code or syntax to get the desired results. While Actual Price is the real price of the product, special price is the price after discount. Below we have mentioned code for product price collection with or without currency symbol both.
Loading Product:
$productId = 10; $product = Mage::getModel('catalog/product')->load($productId);
Magento Get Product Price without currency Sign (Actual Price):
<?php $_actualPrice = $_product->getPrice(); ?>
Magento Get Product Actual Price with Currency Symbol
<?php $formattedActualPrice = Mage::helper('core')->currency($product->getPrice(), true,false); ?>
Magento Get Product with Special Price with Currency Symbol:
<?php $formattedSpecialPrice = Mage::helper('core')->currency($product->getFinalPrice() ,true,false); ?>
Magento Get Special Price without Currency Sign:
<?php $specialPrice = $product->getFinalPrice(); ?>