getDiscountAmount(); if ($amount!=0) { $title = Mage::helper('sales')->__('Discount'); $couponCode = $address->getQuote()->getCouponCode(); if (strlen($couponCode)) { $title .= ' ('. $couponCode .')'; } $address->addTotal(array( 'code'=>'discount', 'title'=>$title, 'value'=>-$amount )); } return $this; } }