first commit
This commit is contained in:
26
bundles/External/HannahBundle/Daktela/HannahDaktelaUpdater.php
vendored
Normal file
26
bundles/External/HannahBundle/Daktela/HannahDaktelaUpdater.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace External\HannahBundle\Daktela;
|
||||
|
||||
class HannahDaktelaUpdater extends \KupShop\DaktelaBundle\Utils\DaktelaUpdater
|
||||
{
|
||||
protected function getContactParams($orderResult, $contact, $account = '')
|
||||
{
|
||||
$params = parent::getContactParams($orderResult, $contact);
|
||||
|
||||
$contactTitle = $params['firstname'].' '.$params['lastname'];
|
||||
if (!empty($orderResult['invoice_firm'])) {
|
||||
$contactTitle = $orderResult['invoice_firm'].', '.$contactTitle;
|
||||
}
|
||||
|
||||
if (!empty($orderResult['contactEmail'])) {
|
||||
$contactTitle .= ' <'.$orderResult['contactEmail'].'>';
|
||||
}
|
||||
|
||||
$params['title'] = $contactTitle;
|
||||
|
||||
return $params;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user