Beispiel #1
0
 public function testGetSubscriptionObject()
 {
     $object = $this->_block->getSubscriptionObject();
     $this->assertInstanceOf('Mage_Newsletter_Model_Subscriber', $object);
     $object2 = $this->_block->getSubscriptionObject();
     $this->assertSame($object, $object2);
 }
Beispiel #2
0
 /**
  * Add paypalauth block to the customer dashboard
  *
  * @return string
  */
 protected function _toHtml()
 {
     $isExtensionEnabled = Mage::getStoreConfigFlag('opc/paypallogin/status');
     $html = $this->getChildHtml('paypalauth_dashboard');
     if (!$isExtensionEnabled) {
         return parent::_toHtml();
     }
     $html .= parent::_toHtml();
     return $html;
 }
Beispiel #3
0
 public function _toHtml()
 {
     $this->setTemplate('advancednewsletter/customer/info.phtml');
     return parent::_toHtml();
 }