$session =
$this->
get('session'
);
$sNotificatedArticles =
$session->
get('sNotificatedArticles',
[]);
if (!
empty($notifyOrderNumber)) { $captchaValidator =
$this->
get(CaptchaValidator::
class);
$config =
$this->
get(Shopware_Components_Config::
class);
if ($config->
get(self::CONFIG_NOTIFY_CAPTCHA
) !== NoCaptcha::CAPTCHA_METHOD
) { if (!
empty($config->
get('CaptchaColor'
))) { if (!
$captchaValidator->
validateByName($config->
get(self::CONFIG_NOTIFY_CAPTCHA
),
$action->
Request())) { $sError = true;
$action->
View()->
assign('NotifyCaptchaError', true
);
$action->
View()->
assign('ShowNotification', true
);
} } } $validator =
$this->
get(EmailValidator::
class);
if (empty($email) || !
$validator->
isValid($email)) { $sError = true;
$action->
View()->
assign('NotifyEmailError', true
);
}