Woocommerse product images don\’t import from xml

Pending

Import WP Pro Updated 3 days ago 7 Replies

NIKOLAOS asked 1 week ago on May 30, 2025 at 8:24 am

Dear ImportWP Support Team,

I am experiencing issues importing WooCommerce products with images using an XML feed. I have followed the instructions in your tutorials for importing WooCommerce products with images from XML, but the images are not being imported.

Below I am sendind you my xml structure:

  • <record>
    • <product>
      • <product_id>
        • 1.38.80.15.005
      • <title>
        • Razer Bottle Opener
      • <images>
        • <image>
          • https://b2b.zegetron.gr/wp-content/uploads/2025/05/img9348-1_edited.jpg
        • <image>
          • https://b2b.zegetron.gr/wp-content/uploads/2025/05/Razer-Bottle-Opener.jpg
        • <image>
          • https://b2b.zegetron.gr/wp-content/uploads/2025/05/264-1_razer-bottle-opener-1.jpg
        • <image>
          • https://b2b.zegetron.gr/wp-content/uploads/2025/05/CHUSxv_g.jpeg
        • <image>
          • https://b2b.zegetron.gr/wp-content/uploads/2025/05/img9348-1_edited.jpg
        • <image>
          • https://b2b.zegetron.gr/wp-content/uploads/2025/05/razer_bottle_opener_1566100959_707b77df_progressive.jpg
        • <image>
          • https://b2b.zegetron.gr/wp-content/uploads/2025/05/xS8HLIeQ_edited.jpg
        • <image>
          • https://b2b.zegetron.gr/wp-content/uploads/2025/05/c81617346e16baf8524eeb3f5af86194.jpg
      • <part_number>
        • RS21-00850114-0000
      • <manufacturer>
        • Razer
      • <recycling_fee>
        • 0,00
      • <category>
        • pos materia
      • <price>
        • 7,25
      • <suggested_retail_price>
        • 9,99
      • <barcode>
        • 5204258095572
      • <youtube_id>
        •  
      • <stock>
        • 160
      • <availability>
        • Available
      • <description>
        • Το τέλειο δώρο – ένα στυλιζαρισμένο ανοιχτήρι μπουκαλιών, με μεταλλική αλυσίδα. Το ανοιχτήρι έχει σχήμα dog tag και χάραξη με το σήμα της Razer. Το απαραίτητο αξεσουάρ για κάθε gamer.
      • <weight>
        • 40
      • <width>
        • 0,30
      • <length>
        • 7,00
      • <height>
        • 4,00
      • <skroutz>
      • <pcs_per_carton>
        • 0
      • <country_of_origin>
      • <hs_code>
        • 39264000

Based on the structure of my XML feed, I have configured the \\\\\\\”Product Gallery\\\\\\\” section in ImportWP as follows:

  • Repeater Node: /record/product/images
  • Location: /image
  • Is Featured?: Yes
  • Download: Remote URL
  • Base URL: (Empty)
  • Permissions: Always download new files (or Search media library before downloading new files)
  • Delimiter: (Empty)
  • Enable Meta: Yes (with Title Text: /record/product/title and Description Text: /record/product/description) OR No

I have also ensured that the \\\\\\\”Product Gallery\\\\\\\” section is correctly linked in the \\\\\\\”Setup Fields\\\\\\\” tab.

The import process completes without any specific errors related to images in the import history, but the product images are not attached to the imported products. The import history typically shows messages like:

Record Inserted: # [Product ID] (ID, post_title, post_content, post_status, _sku, _global_unique_id) (other product fields) using unique identifier (\\\\\\\"[Product Unique Identifier]\\\\\\\")

The URLs to the images in the XML feed are valid and accessible in a web browser.

Could you please assist me in identifying what might be preventing the images from being imported correctly? I can provide further details about my ImportWP settings or a sample of my XML feed if needed.

 

Thank you for your time and support.

J

James replied Support Agent

1 week ago on May 30, 2025 at 8:34 am

Hi Nikolaos,

Can you please export and attach your importer settings to this ticket by going to Tools > Import WP > Settings / Tools > Import / Export and select and export your importer as a JSON file.

Can you also attach your xml file.

James

 

NT

NIKOLAOS replied privately

1 week ago on May 30, 2025 at 8:58 am

J

James replied Support Agent

1 week ago on May 30, 2025 at 11:24 am

Thanks for the files, 

Looking at your importer, the first issue i see is you have set the product ID to {/product_id} , this is the number of the product in wordpress, the value in your xml file is invalid, i would recommend disabling this field.

Since you are using the same value for the sku field, and i guess this is an unique identifier, i would also recommend on the "4. permissions" step change the unique identifier field to "Select a template field to be used as the unique identifier for each record.", and select "_sku" from the list. (this means it will search your products by the {/product_id} value, and update or create a product). Currently you have it only searching imported product based on the xml value.

To fix the images not importing, you should remove the selection you have chosen for the "Repeater Node", and then update the location to "{/images/image}" (repeater node is only needed when you are fetching more than one tag from the xml, in your case your are only fetching the /image tag).

Screenshots attached of the relevent sections.

Hope this makes sense

James

NT

NIKOLAOS replied

7 days ago on May 30, 2025 at 8:24 pm

That works, thank you very much.

I have another question, how can I import products from xml file to the categories that I have create for my shop? Can I do it with taxonomies? Can I merge xml and my categories in one? And if yes,how can I do it?

Thanks again for your support.

J

James replied Support Agent

5 days ago on June 1, 2025 at 8:36 pm

Hi,

Yes you can import products to categories via the taxonomy section, there should be a taxonomy called "product category" (https://www.importwp.com/docs/how-to-import-wordpress-taxonomies-onto-a-post-type/).

James

NT

NIKOLAOS replied privately

3 days ago on June 3, 2025 at 9:19 am

J

James replied Support Agent

3 days ago on June 3, 2025 at 9:43 am

Hi Nikolaos,

From your screenshot i can see you have setup the filters using the "and" button, this means that the record will be skipped if the category node equals "3D Printer Filaments" and "Gaming Chairs" and "3D Printer Resins" and ... , which will never match.

Instead you need to use the "or" button at the bottom (it means that if the text equals: "Gaming Mouse" Or if it equals "3D Printer Filaments", or if it equals "Gaming Chairs" then it will be skipped which is what i think you require ), i have attached a screenshot of how this looks once done, using Gaming Mouse, 3D Printer Filaments, Gaming Chairs as an example.

James