/** * Get the subscribers dob (date of birth) with fallback to customer data * * @return string */ public function getSubscriberDob() { $dob = parent::getSubscriberDob(); if (!$dob && Mage::getStoreConfig('newsletterextended/fields/customer_fallback') && $this->getCustomer()) { $dob = $this->getCustomer()->getDob(); } return $dob; }