getJob example


        $articles = Shopware()->Db()->fetchAssoc($sql);
        $data = [
            'count' => \count($articles),
            'numbers' => array_keys($articles),
        ];

        if (empty($articles)) {
            return $data;
        }

        $job = $args->getJob();

        $context = [
            'sData' => $data,
            'sJob' => [
                'articles' => $articles,
            ],
        ];

        $mail = Shopware()->TemplateMail()->createMail(
            $job->get('inform_template'),
            $context
        );
Home | Imprint | This part of the site doesn't use cookies.