Home > Docs > Order / Coupon / Subscription Export Import Plugin for WooCommerce > Product based WooCommerce order export in XML format using cron scheduling

Product based WooCommerce order export in XML format using cron scheduling

Last updated on September 13, 2023

Using the Order, Coupon, Subscription Export Import for WooCommerce plugin, we can import and export orders with ease. We can filter the order export on the basis of various criteria, which is definitely an added advantage. To schedule the export of orders in XML format based on specific products:

  • Select the post type as Order.
  • Select advanced export method.
  • Filter orders based on Product.
  • Map the columns.
  • Choose XML as the Export file format.
  • Select FTP for the option Download the file into.
  • Click on Schedule.

Filter orders based on specific products

  1. Install and activate the plugin.
  2. From the WordPress admin panel, navigate to the menu WebToffee Import Export (Pro).
  3. Click on Export and specify the post type as Order.
  4. Select your export method as Advanced export to avail filter options and click on step 3 to filter data.
  5.  On reaching step 3, the following window will appear.
Filtering orders based on products
Filtering orders based on products
  1. Here, you can specify the products for which you want to export the orders.
  2. Click on step 4 to map and reorder export columns.
  3. Move to step 5 for other advanced options and export.

Export orders in XML file format

  • On reaching step 5, choose the Export file format as XML.
Exporting orders in XML file format
Exporting orders in XML file format
  • One can save the template for future use (if needed) and click on Export to finish.
Sample of WooCommerce orders exported in XML format
Sample of WooCommerce orders exported in XML format

Export orders via FTP

  • On reaching step 5, choose the Export file format as XML.
  • Choose FTP for the option Download the file into, fill in other relevant details.
  • Click on Schedule.
Export orders via FTP
Export orders via FTP

Scheduling

The plugin supports two different schedule types:

  1. WordPress Cron: Upon a visit, WordPress Cron will check to see if the time/date is later than the scheduled events, and if it is– it will fire those events.
    • schedules your job at the specified time. 
    • is dependent on your website visitors.
  2. Server Cron: You may need to trigger the URL every minute depending on the volume of data to be processed.You can use this option :
    • generates a unique URL that can be added to your system in order to trigger the events. 
    • if you have a separate system to trigger the scheduled events.

File name : A filename for the exported file should be specified. The system will generate a default name, if left blank. (For every export, a new filename will be generated.)

XML cron scheduling in the import export plugin for WooCommerce
Cron scheduling

Schedule the time at which you want the automatic export to occur and also give other necessary information for the export. Click on Schedule Now to finish.

Related article: