Example #1
0
 /**
  * render coupon block
  * 
  * @return html
  */
 protected function _toHtml()
 {
     $container = new Varien_Object(array('html' => '', 'rewrite_core' => false));
     Mage::dispatchEvent('rewardpoints_rewrite_coupon_block_to_html', array('block' => $this, 'container' => $container));
     if ($container->getRewriteCore() && $container->getHtml()) {
         return $container->getHtml();
     }
     if ($this->getChild('checkout.cart.rewardpoints')) {
         return $container->getHtml() . $this->getChildHtml('checkout.cart.rewardpoints') . parent::_toHtml();
     }
     return $container->getHtml() . parent::_toHtml();
 }