Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

I need to show offer discount in % …. 
 
deverma706
Member
 
Avatar
Total Posts:  50
Joined:  2011-06-09
Noida
 

i want to show special offer in %.  as i have to add 1 image.

when m add product with special price the some &#xle;ave should be show on page. 

????

this is possible in magento????

i have not seen this facility in magento....till now.

so if any one dothis type of think so please give help…

Image Attachments
mag1.png
 
Magento Community Magento Community
Magento Community
Magento Community
 
deverma706
Member
 
Avatar
Total Posts:  50
Joined:  2011-06-09
Noida
 

NO HELP TILL NOW… I NEED HELP… I THINK THIS IS RELATED TO COUPONS

 
Magento Community Magento Community
Magento Community
Magento Community
 
deverma706
Member
 
Avatar
Total Posts:  50
Joined:  2011-06-09
Noida
 

<?php
$_finalPrice = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice());
$_regularPrice = $this->helper('tax')->getPrice($_product, $_product->getPrice());
if ($_regularPrice != $_finalPrice):
$getpercentage = number_format( $_regularPrice-$_finalPrice, 2);
$finalpercentage = $getpercentage;
echo '<div class="saving-grid"> <div class="offerprice"> ₹'.number_format($finalpercentage, 0).' OFF</div></div> ' ;
endif;
?>

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top