'sViewport' => 'detail',
'sArticle' =>
$id,
'sNotificationConfirmation' =>
$hash,
'sNotify' => '1',
'action' => 'notifyConfirm',
'number' =>
$notifyOrderNumber,
]);
/** @var Shopware_Components_Modules $modules */
$modules =
$this->
get('modules'
);
$name =
$modules->
Articles()->
sGetArticleNameByOrderNumber($notifyOrderNumber);
$basePath =
$action->
Front()->
ensureRouter()->
assemble(['sViewport' => 'index'
]);
$modules->
System()->_POST
['sLanguage'
] =
Shopware()->
Shop()->
getId();
$modules->
System()->_POST
['sShopPath'
] =
$basePath .
Shopware()->
Config()->
get('sBASEFILE'
);
$sql = '
INSERT INTO s_core_optin (datum, hash, data, type)
VALUES (NOW(), ?, ?, "swNotification")
';
$connection->
executeQuery($sql,
[$hash,
serialize(Shopware()->
System()->_POST->
toArray())]);