Start a conversation

XML file format in Stock Sync

The XML format can be quite hard for some users to set up.

Here is a step by step instruction with an example:

  1. Add the Parent node which is a mandatory field. Let's take the XML feed below as an example.
  2. Based on the feed above, the Parent Node is <item>. 

  3. So you just need to type in the item in the field. There is no Variant Node present in the example above

  4. Please input Variant Node if a nested node present in the XML file.
  5. The field mapping for XML will be straightforward. Based on the example above:

  • SKU = sku
  • Title = title
  • Description = description

Note: You don't have to include the  <>  in the field mapping or node.

How to add subnode.

If the XML file contains node like below:

<product>

        <title>Pants</title>

        <description>Long Pants</description>

</product>

./product/title is the right way to write if it is a subnode.


Example

<item code="XYZ1001" description="Black Handlebar " instock="yes" wholesaleprice="100" rrp="150"/>

If the node is nested in this way, then you would need to map the variant node as the item

In the field mapping, code should be 

@code

@description

@instock

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Support

  2. Posted
  3. Updated

Comments