$AlreadyNotified =
$connection->
fetchAssoc('
SELECT * FROM `s_articles_notification`
WHERE `ordernumber`=?
AND `mail` = ?
AND send = 0
',
[$notifyOrderNumber,
$email]);
if (empty($AlreadyNotified)) { $action->
View()->
assign('NotifyAlreadyRegistered', false
);
$hash = Random::
getAlphanumericString(32
);
$link =
$action->
Front()->
ensureRouter()->
assemble([ 'sViewport' => 'detail',
'sArticle' =>
$id,
'sNotificationConfirmation' =>
$hash,
'sNotify' => '1',
'action' => 'notifyConfirm',
'number' =>
$notifyOrderNumber,
]);
/** @var Shopware_Components_Modules $modules */
$modules =
$this->
get('modules'
);