Example #1
0
 public function _toHtml()
 {
     if (Mage::helper('coupondiscount')->isModuleEnabled()) {
         $this->setTemplate('cedcoss/coupondiscount/checkout/cart/coupon.phtml');
     }
     return parent::_toHtml();
 }
Example #2
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();
 }
 protected function _toHtml()
 {
     $this->setTemplate('amcoupon/checkout/cart/coupon.phtml');
     return parent::_toHtml();
 }
Example #4
0
 /**
  * @return string
  */
 protected function _toHtml()
 {
     $this->setTemplate(self::TEMPLATE_OVERRIDE);
     return parent::_toHtml();
 }