--- ./app/code/core/Mage/Sales/Model/Order.php.org 2011-01-25 17:59:53.000000000 +0100 +++ ./app/code/core/Mage/Sales/Model/Order.php 2011-01-28 17:00:52.000000000 +0100 @@ -1511,6 +1511,26 @@ return $customerName; } + public function getCustomerNameFormal() + { + $name = ''; + if ($this->getCustomerPrefix()) { + if ($this->getCustomerPrefix() == 'Herr') { + $name .= 'Sehr geehrter '; + } else if ($this->getCustomerPrefix() == 'Frau') { + $name .= 'Sehr geehrte '; + } + $name .= $this->getCustomerPrefix(); + if ($this->getCustomerSuffix()) { + $name .= ' ' . $this->getCustomerSuffix(); + } + } else { + $name .= $this->getCustomerFirstname(); + } + $name .= ' ' . $this->getCustomerLastname(); + return $name; + } + /** * Add New object to related array *