} // For every product in basket
$this->eventManager->
notify('Shopware_Modules_Order_SaveOrder_ProcessDetails',
[ 'subject' =>
$this,
'details' =>
$this->sBasketData
[CartKey::POSITIONS
],
'orderId' =>
$orderID,
]);
// Save Billing and Shipping-Address to retrace in future
$this->
sSaveBillingAddress($this->sUserData
['billingaddress'
],
$orderID);
$this->
sSaveShippingAddress($this->sUserData
['shippingaddress'
],
$orderID);
$this->sUserData =
$this->
getUserDataForMail($this->sUserData
);
$details =
$this->
getOrderDetailsForMail( $this->sBasketData
[CartKey::POSITIONS
] );
$variables =
[ 'sOrderDetails' =>
$details,
'billingaddress' =>
$this->sUserData
['billingaddress'
],
'shippingaddress' =>
$this->sUserData
['shippingaddress'
],