$confirmMailDeliveryFailed = false;
try { $this->
sendMail($variables);
} catch (Exception
$e) { $confirmMailDeliveryFailed = true;
$email =
$this->sUserData
['additional'
]['user'
]['email'
];
$this->
logOrderMailException($e,
$orderNumber,
$email);
} // Check if voucher is affected
$this->
sTellFriend();
if ($this->
getSession()->
offsetExists('sOrderVariables'
)) { $variables =
$this->
getSession()->
offsetGet('sOrderVariables'
);
$variables['sOrderNumber'
] =
$orderNumber;
$variables['confirmMailDeliveryFailed'
] =
$confirmMailDeliveryFailed;
$this->
getSession()->
offsetSet('sOrderVariables',
$variables);
} $this->eventManager->
notify('Shopware_Modules_Order_SaveOrder_OrderCreated',
[ 'subject' =>
$this,
'details' =>
$this->sBasketData
[CartKey::POSITIONS
],