--- ./app/code/core/Mage/Customer/Model/Customer.php.org 2011-01-19 16:39:12.000000000 +0100 +++ ./app/code/core/Mage/Customer/Model/Customer.php 2011-01-28 17:14:57.000000000 +0100 @@ -193,6 +193,26 @@ return $name; } + public function getNameFormal() + { + $name = ''; + if ($this->getPrefix()) { + if ($this->getPrefix() == 'Herr') { + $name .= 'Sehr geehrter '; + } else if ($this->getPrefix() == 'Frau') { + $name .= 'Sehr geehrte '; + } + $name .= $this->getPrefix(); + if ($this->getSuffix()) { + $name .= ' ' . $this->getSuffix(); + } + } else { + $name .= $this->getFirstname(); + } + $name .= ' ' . $this->getLastname(); + return $name; + } + /** * Add address to address collection *