Cron Configuration

Cron Configuration

Starting Cronjob / Bi-Directional Sync

Required: Connect or Pro version

  1. Select the Zoho Item Categories you want to include in the sync.
  2. Click on Save Category button.
  3. Now go to your hosting cPanel settings and add this Cronjob there that run every once a day:

Set this Cronjob in your Hosting cPanel

php /home/customer/public_html/wp-content/plugins/woocommerce-zoho-inventory/sync-from-zoho.php >/dev/null 2>&1

Note: the above path is an example for Siteground hosting, please check the example in your cPanel Cron page for the proper path or ask your hosting for the correct path.

How to find the Root Directory:

Go to WP Admin > Tools > Site Health > click on “Info” tab and open “Directories and Size”

Go to Tools > Site Health > Info tab

Cron command will then become:

/usr/bin/php /home/roadmapstudios/domains/mysite.com/public_html/test/wp-content/plugins/woocommerce-zoho-inventory/sync-from-zoho.php >/dev/null 2>&1

Deciding the Cron Interval:

  • If you have less than 100 products, you can run the cronjob once every 12 hours.
  • More than 100 products? Run the cronjob once or twice a day. If you are still hitting the API calls limit after that, please purchase additional API batch from Zoho.

If you do not have cPanel via your hosting (e.g. wpengine)

You can use the URL Cron plugin and achieve the same but the downside is that you will have a less secure website. 
2. Add a CRON job with a URL like this: https://mydomain.com/wp-content/plugins/woocommerce-zoho-inventory/sync-from-php (replace "mydomain" with your actual domain or copy from the url bar). 
3. Please test the URL via another tab in the browser to ensure its accessible. 
4. If that URL is not accessible then you need to enable "direct access to PHP files" via your security plugin (if used) or hosting support. 

Important plugin: 

We highly recommend you to also install this plugin and ensure to run it twice per day: 

This ensures the products are displayed correctly on the Shop Page once they got updated via the Cron Script. 



    • Related Articles

    • Reset Sync

      When to do this: When you made a major mistake in the sync setup process When you want to connect to another Zoho Organization Steps to start over when mistake is made in Categories:  Remove all the product categories  Go to our plugin settings > ...
    • Products Sync

      *Please do not skip this step! Before we start the sync, please ensure you have enabled “Categories” in your Zoho settings > Preferences > Items > Field Customization After mapping the taxes, we will start syncing the items. Please read below ...
    • Zoho General Preferences

      o sync all product data properly, you need to ensure that Zoho understands your WooCommerce Tax configuration. Its important that you have a standard tax rate, if you are not using tax, then ensure the standard rate is 0%. Make sure your Zoho ...