How to setup a cronjob for the Google Sitemap Add-on in CS-Cart. Print

  • 5

CS-Cart does not officially provide a specified cron script for generating the Google Sitemap. However, we have found that the following cronjob entry will work.

If you are not familiar with adding/editing cron entries on your server, please contact your server administrator or hosting company support for assistance.

### Generate the Google Sitemap
15 7 * * * curl "http://www.domain.com/index.php?dispatch=xmlsitemap.view" > /dev/null 2>&1

Note: for the above cron entry:
- Replace domain.com with your domain.
- If you want the script output sent to the cron MAILTO address, make sure to specify a MAILTO value and remove the "> /dev/null 2>&1"
- Replace admin.php with the name of your admin script.
- If your admin area is not set to use HTTPS, then change the "https" in the admin area URL to "http"
- This cronjob requires CURL support on your server. This is a common library with most server configurations.
- The cron entry is set to run at 7:15AM EDT. However, you can change the 7 to whatever hour (1 to 23) ... and the 15 to whatever minute (00 to 59) that you would like it to run.


Was this answer helpful?

« Back