/** * Get the subscribers last name with fallback to customer data * * @return string */ public function getSubscriberLastname() { $lastname = parent::getSubscriberLastname(); if (!$lastname && Mage::getStoreConfig('newsletterextended/fields/customer_fallback') && $this->getCustomer()) { $lastname = $this->getCustomer()->getLastname(); } return $lastname; }