Hello there, i am trying to import the images from the XML into the file_url field for virtuemart but its always empty.
What field should i map?
Here is the structure of the XML below:
<?xml version="1.0"?>
<Products xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Product>
<Product>
<ProductId>43230</ProductId>
<DeliveryDate xsi:nil="true"/>
<ProductCode>0614165</ProductCode>
<ItemCode>GONDOLA</ItemCode>
<ExtendedDescription>Αιώρα επαγγελματική από μασίφ ξύλο οξιάς με δίχτυ ασύγκριτης αντοχής ευρωπαϊκής κατασκευής.<br/>Σκελετός υψηλής ποιότητας ειδικά επεξεργασμένος με λούστρα Ιταλίας για μεγάλη αντοχή στο χρόνο και στην υγρασία. <br/><br/>Βαφή προϊόντος<br/>1ο Στάδιο: Μία στρώση χρώμα εμποτισμού.<br/>2ο Στάδιο: Επανάληψη επεξεργασίας της λείανσης.<br/>3ο Στάδιο: Μία στρώση βερνίκι νερού-κερί εξωτερικού χώρου για ιδανικά αποτελέσματα αντοχής και αισθητικής του προϊόντος.<br/><br/>Χρώμα : Καρυδί<br/>Εξωτερική διάσταση ΠxΒxΥ: 420x133x131 εκ. <br/>Διάσταση δίχτυ: 146 Χ 197εκ.<br/>Διάσταση Βάσης: 133x106 εκ.<br/><br/>Κατάλληλη για επαγγελματικούς χώρους,<br/>Ευρωπαϊκής κατασκευής</ExtendedDescription>
<Name>ΑΙΩΡΑ ΕΠΑΓΓΕΛΜΑΤΙΚΗ ΑΠΟ ΜΑΣΙΦ ΞΥΛΟ ΟΞΙΑΣ ΚΑΡΥΔΙ GONDOLA</Name>
<ImagesLocation>
<image>somewebsite/uploads/resources/40093/image1.jpg-enlarge.jpg</image>
<image>somewebsite/uploads/resources/40094/image2.jpg-enlarge.jpg</image>
<image>somewebsite/uploads/resources/41559/image3.jpg-enlarge.jpg</image>
<image>somewebsite/uploads/resources/41560/image4.jpg-enlarge.jpg</image>
<image>somewebsite/uploads/resources/41561/image5.jpg-enlarge.jpg</image>
</ImagesLocation>
<AvailabilityTypeNameEL>Περιορισμένη διαθεσιμότητα</AvailabilityTypeNameEL>
<AvailabilityTypeNameEN>Limited</AvailabilityTypeNameEN>
<DeliveryDate xsi:nil="true"/>
<Stock>2.00000</Stock>
<MinQuantity>1.00000</MinQuantity>
<ZoneFourUnitPrice>350.00000</ZoneFourUnitPrice>
</Product>
- theoxgr
- RO CSVI
- Tuesday, 21 November 2017
- Subscribe via email
0
Accepted Answer
Pending Moderation
Hello,
You need to use ImagesLocation/image in your field for reading the first image. If you are looking at importing all the images in your XML then you need to use Combine rule plugin to combine the multiple fields into one and by using | as combine character as file_url imports multiple images separated by | like image1.jpg|image2.jpg|image3.jpg.
You need to use ImagesLocation/image in your field for reading the first image. If you are looking at importing all the images in your XML then you need to use Combine rule plugin to combine the multiple fields into one and by using | as combine character as file_url imports multiple images separated by | like image1.jpg|image2.jpg|image3.jpg.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Oh nice! it worked like a charm
thank you so much!
I tried to make a combine rule like you said image1.jpg|image2.jpg etc but it didnt work.
here is the preview of the file_url first image. all other images follow the same pattern:
[img ]https://image.prntscr.com/image/hvwoL2WhSzeKu2lt3KdYlQ.png[/img]

I tried to make a combine rule like you said image1.jpg|image2.jpg etc but it didnt work.
here is the preview of the file_url first image. all other images follow the same pattern:
[img ]https://image.prntscr.com/image/hvwoL2WhSzeKu2lt3KdYlQ.png[/img]
Accepted Answer
Pending Moderation
Hello,
You need to post the screenshot of how you have your combine rule set up and also your template fields.
You need to post the screenshot of how you have your combine rule set up and also your template fields.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
ok i played with the image config and i solved the images errors. now image show up fine.
i just need help with the combine
i just need help with the combine
Accepted Answer
Pending Moderation
Hello,
Did you go through the Combine rule document linked in my previous post? You need to follow the same procedure for your file_url field though the document has been explained for product_s_desc field. The way you have combine rule setup now wont work. Add combine template fields after file_url field, the number of combine fields will be the number of images you want to combine and import. In the source field you need to have file_url,combine,combine...(number of combine fields you have in your template) and the target field will be file_url. Do the changes to your rule and apply the rule on file_url field and then run the import.
Did you go through the Combine rule document linked in my previous post? You need to follow the same procedure for your file_url field though the document has been explained for product_s_desc field. The way you have combine rule setup now wont work. Add combine template fields after file_url field, the number of combine fields will be the number of images you want to combine and import. In the source field you need to have file_url,combine,combine...(number of combine fields you have in your template) and the target field will be file_url. Do the changes to your rule and apply the rule on file_url field and then run the import.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
ok i saw the "Combine Tutorial"...
So i have to create 'x' number of fields for each image and add them in sequential order so they can be grabbed correctly from the XML file.
After that i have to assign those in the "file_url" field so they can be combined.
Ok i will try this when i get back to the office and let you know!
thanks again
So i have to create 'x' number of fields for each image and add them in sequential order so they can be grabbed correctly from the XML file.
After that i have to assign those in the "file_url" field so they can be combined.
Ok i will try this when i get back to the office and let you know!
thanks again
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »