perarg Posted April 7, 2018 Share Posted April 7, 2018 Hello, i am searching but with no luck, some kind of documentation on creating my own cronjobs for my custom module. That is to say, i want to run periodically a function which i have built up in a custom module. What should i do in my module's code to create this functionality ? Link to comment Share on other sites More sharing options...
selectshop.at Posted April 9, 2018 Share Posted April 9, 2018 Depending on Prestashop version, there is a cronjob module already available from your back-office "cron tasks manager". Prestashop docu: http://doc.prestashop.com/dashboard.action Prestashop cron tutorial - this is very old, but should serve as example, you need to adapt the code for the PS-Version in use (classes, etc.) - http://doc.prestashop.com/display/PS14/Modules,+Classes+and+Controller+Override Link to comment Share on other sites More sharing options...
hhennes Posted April 10, 2018 Share Posted April 10, 2018 Hello, I've written an article about how to configure cronjob in prestashop a couple of month ago. You can read it ( in french ) : https://www.h-hennes.fr/blog/2017/12/01/prestashop-gestion-des-taches-cron/ The part which migth interest you is how to plug your module to the hook actionCronJob Regards, 1 Link to comment Share on other sites More sharing options...
Ableson Posted May 3, 2018 Share Posted May 3, 2018 If someone have cron job issue with you hosting, you can use any external crontab (like easycron.com), which starts processes on the URL and some PrestaShop modules cron job tutorials at https://www.easycron.com/cron-job-tutorials, hope the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now