Import Orders to WooCommerce V3.5+
This task will update or insert orders into your WooCommerce store from an XML file.
The orders in the input file are matched to orders in WooCommerce based on the <id> provided. If a match is found, the existing order in WooCommerce will be updated. If no <id> is provided, a new order will be created.
Settings
Connection
Required
The WooCommerce connection to use. See the WooCommerce V3.5+ Connection article if you require more information on how to create/manage connections.
Fail File
Required
The name of the XML file to save any orders which fail to import to WooCommerce. Defaults to 'woo_commerce_import_orders_fail.xml'.
Input File
Required
The name of the XML file containing the orders to import to WooCommerce. Defaults to 'woo_commerce_import_orders.xml'.
Success File
Required
The name of the XML file to save any orders which successfully imported to WooCommerce. Defaults to 'woo_commerce_import_orders_success.xml'.
Prevent Reprocessing
Required
When set to true this will prevent another order with the same <external_id> as a previously imported record from being imported to WooCommerce.
Timeout
Optional
The maximum time, in seconds, to wait for a response from WooCommerce. Leave blank to use the default timeout of 100 seconds.
Zynk Settings
See Common Task Settings.
Examples
Sample input file showing how to update the status of an order, and add a note. The file is the same format as the output from the Export Orders from WooCommerce V3.5+ task. Any fields which are not included in the XML won't be updated, and will keep their current value.