Save Price in Magento
$product= Mage::getModel('catalog/product')->load($_product->getEntityId());
$price = $product->getPrice();
$specialprice = $product->getFinalPrice();
$save = $price - $specialprice;
// Display Percentage
$totalPercent = (($price - $specialprice) / $price)*100;
echo "<div class='savings'>";
echo "(save ".round($totalPercent)."%)";
echo "</div>";
No comments:
Post a Comment