Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

multiple images for woocommerce product from separate xml file

$
0
0

Replies: 0

I’d like to import products and images into WooCommerce.

I got 4 separate xml files:
1. categories
2. products
3. id + guide numbers (connects products and categories)
4. images

I am fine with the first 3 steps.

Problem when I import images, it only saves 1 image per product.

Complication:
this is more or less how images are indicated in the file:
<product>
<product id> 3489384 >> links to products in products file
<image url> http://…./product3489384_1.jpg
</product>
<product>
<product id> 3489384 >> links to products in products file
<image url> http://…./product3489384_2.jpg
</product>
etc.

Problem: there are multiple elements that refer to the same product.

What code do I need, so that the importer doesn’t overwrite the previous image, but adds a new image?


Viewing all articles
Browse latest Browse all 512573

Trending Articles