'serialID' => 0,
'esdID' =>
$esdProduct['id'
],
'userID' =>
$this->sUserData
['additional'
]['user'
]['id'
],
'orderID' =>
$orderID,
'orderdetailsID' =>
$orderDetailsID,
'datum' =>
new Zend_Db_Expr('NOW()'
),
]);
return $basketRow;
} $availableSerials =
$this->
getAvailableSerialsOfEsd($esdProduct['id'
]);
if ((\
count($availableSerials) <=
$this->config->
get('esdMinSerials'
)) || \
count($availableSerials) <=
$quantity) { // Not enough serial numbers anymore, inform merchant
$context =
[ 'sArticleName' =>
$basketRow['articlename'
],
'sMail' =>
$this->sUserData
['additional'
]['user'
]['email'
] ?? null,
];
$mail =
Shopware()->
TemplateMail()->
createMail('sNOSERIALS',
$context);
if ($this->config->
get('sESDMAIL'
)) {