/**
  * Render block HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     $alreadySubscribed = Mage::getModel('newsletter/subscriber')->loadByEmail($this->getQuote()->getCustomerEmail())->isSubscribed();
     if (!$this->helper('monkey')->canCheckoutSubscribe() or $alreadySubscribed) {
         return '';
     }
     return parent::_toHtml();
 }
Пример #2
0
 /**
  * Render block HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     $alreadySubscribed = Mage::getModel('newsletter/subscriber')->loadByEmail($this->getQuote()->getCustomerEmail())->isSubscribed();
     /**
      * If you don't want to show the lists in the checkout when the user it's already subscribed.
      * Replace the code below for the condition below
      *
      * 	if ( !$this->helper('monkey')->canCheckoutSubscribe() OR $alreadySubscribed ) {
      *
      *
      * **/
     if (!$this->helper('monkey')->canCheckoutSubscribe()) {
         return '';
     }
     return parent::_toHtml();
 }