[TomatoCart] Automatically generate a Google sitemap daily

As you know, it is possible to generate a Google sitemap in the admin panel. But, it is not efficient enough for the store owners. It is better to let your host server to generate the sitemap for your shop everyday. It means the whole procedure to generate sitemap is automatic and accurate, great for SEO involving no time from you once setup.

Note: Requires SSH access.

How to achieve it?

Step 1. Create a fold scripts in your Tomatocart root directory and then create a new generate_sitemap.php in it.

As you can see, your just need to replace the root with your own username. After the @, you have to enter your own shop domain.

Step 4. One you login into your host server, you have to go into your tomatocart root directory. Generally, it should locate in /var/www/yourdomain.com.

Step 5. Type following command to edit the crontab in order to run the above script automatically everyday:

As you can see, it means the generate_sitemap script will be run automatically by your server at 23:59 everyday. In this way, all of sitemap xml files within in store root directory will be updated automatically.

Done. Note: only the English is supported currently. I will improve the script to make it possible to support multiple languages.

If you are not a developer, it maybe very difficult to complete above steps. I prefer to assist you to apply above changes for your shop. Please contact me via support@tomatocart.com. I will help you as possible as i can.