Question:

I installed Product Import Export Plugin For WooCommerce on my server, and I want to set up a cron job to trigger Product Import Export Plugin For WooCommerce's cron job script. What should I do to set up the cron job?

Answer:

Our webcron service is best for triggering Product Import Export Plugin For WooCommerce's cron job script. Just follow the below simple steps to configure cron job for your Product Import Export Plugin For WooCommerce.

The Product Import Export Plugin for WooCommerce supports two types of Cron: WordPress Cron and Server Cron.

If you are using WordPress Cron:

  1. Before using WorkCron, please add define('DISABLE_WP_CRON', true); to your wp-config.php file to disable the WP Cron System.
  2. Select Schedule type as WordPress Cron. Then select the Interval and Start time for scheduling the cron job.

    Schedule WordPress Cron for Product Import Export Plugin for WooCommerce
  3. Click on the Schedule now button.
  4. Now, open your cron job dashboard, click on " Cron Job" button.
  5. In field "URL to call", e.g. enter http://www.example.com/wp-cron.php?doing_wp_cron (replace www.example.com with your install location). Choose an appropriate cron job execution frequency. Checkout below screenshot:

    Set up WordPress cron job for Product Import Export Plugin For WooCommerce
  6. If necessary, finish the other optional settings.
  7. Click "Create Cron Job" button. And that’s it.

If you are using Server Cron:

  1. Select Schedule type as Server Cron and then select the Interval and Start time for scheduling the cron job.

    Schedule Server Cron for Product Import Export Plugin for WooCommerce
  2. Click on the Schedule now button, and then obtain the Trigger URL.

    Obtain Trigger URL for Server Cron
  3. Now, open your cron job dashboard, click on " Cron Job" button.
  4. In the field "URL to call", enter the Trigger URL you obtained from the Product Import Export Plugin. ( See steps 1 and 2)
  5. Choose “When to execute” as Every minute. Checkout below screenshot:

    Set up Server cron job for Product Import Export Plugin For WooCommerce
  6. If necessary, finish the other optional settings.
  7. Click on the "Create Cron Job" button. You're done! WorkCron will trigger your Product Import Export Plugin For WooCommerce's cron job script dutifully according to your time setting.

If you haven't registered your WorkCron account yet, click on the "add an email and password" link on the top to add an email and password to your account.