Guys i'm trying to find a code that will give me the discount amount for the current session order when i discount code is used.
Here is what i have right now but it is not working:
$coupon = Mage::getModel('salesrule/rule');
$couponCollection = $coupon->getCollection();
foreach($couponCollection as $c){
$CouponDiscount = $c->getDiscountAmount();
}
echo $CouponDiscount;
How can i get the amount of the discount used in the current session order ?
Thanks in advance!
Best Answer
Hi you can get a order discount amount from order field discount_amount
like this:
for Current checkout session then try it