The XML feed uses a mix of attributes and elements, what should I enter for the field mapping?

Your XML feed might look something like this which uses both attributes and elements:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<root>
  <Products>
    <Product CODE="2941" BARCODE="49020570284087">
      <StockQty>65</StockQty>
    </Product>
    <Product CODE="2778" BARCODE="72020570064306">
      <StockQty>200</StockQty>
    </Product>
  </Products>
</root>

In this example, the "Product" element has the attributes "CODE" and "BARCODE", and a child element called "StockQty".

In EZ Inventory, when mapping the attribute "BARCODE", simply add an "@" symbol in front you'll need to enter "@BARCODE" for the variant mapping field. For the quantity mapping, just enter "StockQty" as the quantity field.EZ Inventory for Shopify - XML Field Mappings

To summarize, if the XML field is an "attribute", pre-pend the "@" symbol. If it's a regular "element", just enter the element name as is.


Related Articles:


App: EZ Inventory

Tags: xml, inventory feed, xml feed