Create Cron Job

How to Create Cron Job For The Scheduler

The system has an active scheduler for a few repetitive background tasks, like generating a sitemap for your marketplace and keep it updated from time to time.

To make the scheduler work you will require to create a Cron entry on your server. If you do not know how to add Cron entries to your server, consider talking to your hosting service provider and they will guide you to that.


Add the following Cron entry to your server.

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

Replace the text path-to-your-project with your original path to the zCart installation.


This Cron will call the zCart’s scheduler every minute. When the Cron is executed, zCart will evaluate the scheduled tasks and runs the tasks that are due.


Was this page helpful?

Leave Comment