Automatic Generation and Cron

Table of Contents

Magento cron setup

Koongo Coonector includes the possibility for an automatic feed generation. However, this feature requires a proper setup of a Magento cron.

Magento cron setup

Magento cron setup manual is available section Setting up the Magento cronjob using shell access on http://devdocs.magento.com/guides/m1x/install/installing_install.html#install-cron

Recommended cron run period is between 5 - 10 minutes.

If the Magento cron is set up correctly, you may find records with the code Koongo Connector in the cronjob table located in Koongo → Cronjob  → Schedule. The cron process runs every 5 minutes and compares profile's time and frequency setup with present server time. If present time matches scheduled time, then the profile is executed and feed is generated.

Schedule setup

The schedule for automatic generation is Export profile dependent settings. That means, you have to choose dates and times in Export profile. Navigate to Koongo → Export profiles â†’ select profile â†’ set the schedule undet tab General:

Automatic upload via FTP

New feature

 Please note that FTP upload feature was introduced to Koongo Connector since its version 6.3.0.0. Thus, we encourage you to upgrade your connector to the latest version available.

After successful automatic execution of Export profile the generated XML file is also automaticaly uploaded to the FTP account, if you have set up FTP Settings.

Semi-automatic generation

Fine-tunning of automatic generation

If you need more precis automatic feed generation, you can run Export profiles directly from your browser or you can set up crontable on your server (command "crontab -e").

Coonector version 6.2.1.0 and older

Koongo Connector package includes PHP script XmlFeedExport.php, which is located in package root folder. This file you may upload to you Magento root folder and trigger Export profile generation in various ways.

If you wish to generate all export profiles, execute the PHP script directly in your browser:

If you want to execute only particular profiles,set parameter profiles followed by comma separated profile names or numbers:

http://demo.koongo.com/xmlFeedExport.php?profiles=1,nostress-test,5 // where http://demo.koongo.com is Base URL of your Magento store

Connector version 6.3.0.0 and newer

The purpose of this approach is the same as in connector version 6.2.1.0 (see above), but the implementation was a bit improved and the external PHP script was removed from the package. Thus, you can run the profiles as shown below:

 http://demo.koongo.com/koongo/profiles/run?profiles=1,nostress-test,5 // where http://demo.koongo.com is Base URL of your Magento store

SSH and Shell execution