exportProductFiles example

$this->subscribeEvent(
            'Shopware_CronJob_ProductExport',
            'onRun'
        );
        $this->createCronJob('Product Export', 'ProductExport');

        return true;
    }

    public function onRun(Enlight_Components_Cron_EventArgs $job)
    {
        $this->exportProductFiles();

        return sprintf('%s succeeded.', $job->getName());
    }

    /** * starts all product export for all active product feeds * * @throws RuntimeException * * @return string */
    
Home | Imprint | This part of the site doesn't use cookies.