Zynk Workflow Documentation

This task will update or insert products into your WooCommerce store from an XML file. The products in the input file are matched to products in WooCommerce based on the <id> or the <sku>. If an <id> is provided, the existing product in WooCommerce with this ID will be updated. If a <sku> is provided and a product already exists in WooCommerce with a matching SKU, the existing product will be updated. Otherwise a new product will be created.

Please note the <id> must be provided to update existing draft products. Due to a limitation of the WooCommerce API, it is not possible to match draft products based on SKU.

Settings

Connection

Required
The WooCommerce connection to use. See the Connecting to WooCommerce article if you require more information on how to create/manage connections.

Fail File

Required
The name of the XML file to save any products which fail to upload to WooCommerce. Defaults to ‘woo_commerce_product_upsert_fail.xml’.

Input File

Required
The name of the XML file containing the products to upload to WooCommerce. Defaults to ‘woo_commerce_product_upsert.xml’.

Success File

Required
The name of the XML file to save any products which successfully uploaded to WooCommerce. Defaults to ‘woo_commerce_product_upsert_success.xml’.

Prevent Reprocessing

Required
When set to true this will prevent another product with the same <external_id> as a previously uploaded record from being uploaded to WooCommerce.

Zynk Settings

See Common Task Settings.

Examples

A sample input file showing a price and stock level update for the product with SKU ‘ABC123’ is shown below. The file is the same format as the output from the Downloading Products from WooCommerce task. Any fields which are not included in the XML won’t be updated, and will keep their current value.

<?xml version="1.0" encoding="utf-8"?>
<ProductList>
  <products>
    <product>
      <sku>ABC123</sku>
      <regular_price>10.00</regular_price>
      <managing_stock>true</managing_stock>
      <stock_quantity>88</stock_quantity>
      <in_stock>true</in_stock>
    </product>
  </products>
</ProductList>

Back | Edit on Github