Easy Cron setup example

Many of my module allows use CRON for automatic processing.

Unfortunately, because each hosting uses something different to set up CRON, I do not know the correct syntax for cPanel. On my hosting is not cPanel, so I do not use cPanel. Usually it’s something like that:

* / 15 **** / path / to / command.

or for example something like this:

/usr/local/bin/php -q export_cron_job.php

But sometimes is set up cPanel very frustrating… I found a simple ( and free under certain conditions or from $7.95 per Year in paid version) service to set CRON: http://www.easycron.com/ I think it will be sometime easier than setting cron on your hosting. Simply copy and put cron link from my module into “URL to call” and setup time to call (for example every 10 minutes).

 

 http://www.easycron.com  setup:

cr1

 

cr2

 

 

Example for NVN Export Orders

For each setting you can use own link. Each link are listed in part “Export”, see image.
Selection_043

 

Alternative solution

Or you can also use internal PrestaShop module like Crontab for PS or Cron task manager.

Selection_044

CRON problem on some server

If CRON link not work usually problem is with parameters after “?” in link.

In this case use option “Select if CRON problem” (this option is added from version 2.7.9)

Selection_724

4 comments for “Easy Cron setup example

  1. 30.8.2017 at 7.16

    Hi, we’re having problems making the Orders Export module run by a cron job.

    Does the module not support sites running with SSL certificate (https) ?

    • ka fa
      30.8.2017 at 12.12

      Hi,
      if CRON link not work usually problem is with parameters after “?” in link. (this is not only SSL problem, but cron configuration)

      In this case use option “Select if CRON problem” (this option is added from version 2.7.9)
      (see image above how to)

  2. 30.8.2017 at 12.35

    Thank you for response …

    You’re saying that the option is added from version 2.7.9 – But according to my module the latest version available is 2.7.3 ?

Leave a Reply

Your email address will not be published. Required fields are marked *