Jump to content

New module : Crontab for Prestashop


Recommended Posts

Hi,

Just to give you a new module available on prestastore : Crontab pour Prestashop

Allows modules to schedule jobs to run automatically at a certain time or date.

This module doesn't do anything by itself but is a tool for modules that need to do something automatically at a certain time or date. It runs jobs using Linux crontab, webcron service or shop traffic.

For those unfamiliar with crontab : http://en.wikipedia.org/wiki/Crontab

Part of the documentation :

 
/* Add a cron job
* Module::getInstanceByName('cron')->addCron($this->id, 'myMethod', '5 * * * *');
*
* last parameter details :
* .---------------- minute (0 - 59) 
* |  .------------- hour (0 - 23)
* |  |  .---------- day of month (1 - 31)
* |  |  |  .------- month (1 - 12) 
* |  |  |  |  .---- day of week (0 - 6) (Sunday=0 )
* |  |  |  |  |
* *  *  *  *  *
*
* remarks :
* It accepts the standard crontab format except steps ('/') :  0-50/5 * * * * isn't valid
* 
* exemples :
* - 1 0 * * * : 00:01 of every day of the month, of every day of the week
* - 15 3 * * 1-5 : every weekday morning at 3:15 am
* - 0 0 1,15-17 * * : the first, fifteenth, sixteenth and seventeenth of each month at 00:00
* - 0 0 * * 1 : every Monday at 00:00
* 
* Delete a job
* Module::getInstanceByName('cron')->deleteCron($this->id, 'myMethod');
*/



I think it can give a lot of ideas for module developers.

Do not hesitate to send me your comments :)

Share this post


Link to post
Share on other sites
  • 1 month later...

Hi, I was looking for a way to auto-schedule web page postings and found this module on Google Cache, however it seems to be removed from Prestashop Store...do you have any idea why?

Thanks!
Justin

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hello,

I try to download your module on your website but while i try to order, i can't reach the end of the process because it blocks on the shipping cost step. There is nothing to select and we can't skip this step.

Is there another way to get your module ?

Thanks in advance

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More