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