public function _construct()
 {
     $helper = Mage::helper('referralreward');
     $settings = $helper->getSettings();
     $pointsCouponCode = $this->getItem()->getCouponCode();
     $quoteCouponCode = $this->getQuote()->getCouponCode();
     if ($settings['use_coupon']) {
         Mage::getSingleton('core/session')->unsPointsDiscount();
         $helper->createCouponForReferral();
         if ($this->getQuoteCouponCode() == $this->getCustomerCouponCode()) {
             Mage::getSingleton('core/session')->setPoints('used');
         } else {
             Mage::getSingleton('core/session')->unsPoints();
         }
     } else {
         if ($quoteCouponCode == $pointsCouponCode) {
             $this->getQuote()->setCouponCode('')->collectTotals()->save();
         }
     }
     parent::_construct();
 }
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('belvg/referralreward/info.phtml');
 }