$coupon = Mage::getModel('salesrule/coupon');
$couponCollection = $coupon->getCollection();
foreach($couponCollection as $c){
echo 'Code:'.$c->getCode().'--->Discount Amount:'.$c->getDiscountAmount().'<br />';
}
Found this piece somewhere here on stackoverflow. The discount amount is not showing.. Can somebody help me get this value ?
Change:
to:
getDiscountAmountdoesn’t exist in/app/code/core/Mage/SalesRule/Model/Coupon.phpbut does show up in/app/code/core/Mage/SalesRule/Model/Rule.php