Articles on: Frequently Asked Questions (FAQ)

How to Set Up XML Product Import in Stock Sync

This guide explains how to set up a product import using XML files in Stock Sync, including cases where product data and images come from separate XML feeds.


1. Create a New Feed

  • Open Stock Sync in your Shopify admin.
  • Click Add New Feed.
  • Choose Add New Products.
  • Select Download URL (or upload file, SFTP, API depending on your source).
  • Paste the XML link.


2. Configure File Settings

  • Set File Type to XML.
  • Use Auto (Recommended) for Parent Node and Variant Node.
  • If auto detection fails, manually select the parent element in your XML (for example, Record, Product, Offer, Item, or Towar depending on supplier).


3. Map Required Fields

Match XML tags to Shopify fields such as:

  • SKU → SKU
  • Name/Title → Title
  • Price → Price
  • Description → Body HTML
  • Stock/Quantity → Inventory Quantity (if feed includes stock)


If image URLs are included in the same XML:

  • Map image → Image URL


4. When Images Are in a Separate XML Feed

If you have two XML feeds (product data + images):


  1. Create two separate feeds in Stock Sync:
  • Feed A: Add New Products (product data XML)
  • Feed B: Update Existing Products (image XML)


  1. In both feeds, map the same identifier (for example, SKU or kod). This allows Stock Sync to match images to the correct product.


  1. In the image feed:
  • Map kod → SKU
  • Map gallery/image → Image URL


  1. Run the image feed after the product feed so images attach correctly.


5. Handling Price Modifications (VAT, Margins)

If your XML contains fields like price and VAT and you need custom price rules:

  • Use Price Rules in Stock Sync.
  • You can add VAT by applying formula-based adjustments.
  • You can set margin-based rules using value ranges (for example, 0.01–5 → +100%, 5.01–10 → +75%, etc.).


6. Troubleshooting Auto‑Mapping Issues

If fields do not map automatically:

  • Confirm the parent node is correctly selected.
  • Preview the XML in Stock Sync to verify the structure.
  • Manually map all required fields.


7. Testing the Feed

  • Run the feed with a small number of products first.
  • Check product details, images, and prices in Shopify.


8. Importing Only Specific Products

If you want to import only selected products:

  • Use Incoming Feed Filter and set rules based on SKU, brand, category, or other fields.


9. Credits

Product imports require credits. Stock updates do not.

This setup covers XML imports for single‑feed and multi‑feed XML structures, including product data, stock syncing, and image attachment.

Updated on: 21/05/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!