Product Import for VirtueMart - DEMO
Toggle Bar

Elements with the same name

Source: Thermogaz (Greece)
URL: https://www.thermogatz.gr/thermogatz-xml-feed
Template URL: https://import.minijoomla.org/administrator/index.php?option=com_productimport&view=productimport&id=18

Preview:

Source - elements with the same name

 

Preview - elements with the same name

 

The first element for image has the right name:

<Imageurl>

The second element for next image has the right name too:

<additional_imageurl>

But the next elements for additional images have the same name:

<additional_imageurl>

So, how can we setup right images elements for import?

We will use the functions of the XPath programming language - the order of the element in the XML feed using a serial number.

We will create several settings for importing images (according to the number of elements in the XML feed, maximum 9).

In the URL settings of the image, insert the name of the element - <additional_imageurl> - and add the serial number of the element in the tree structure of the XML feed.

The resulting settings for the image URL will look like this:

additional_imageurl[1]
additional_imageurl[2]
...
additional_imageurl[9]

 

Setup - elements with the same name

Login Form