1. akarki
  2. RO CSVI
  3. Thursday, 21 December 2017
  4.  Subscribe via email
HI,

How can i import to Virtuemart somthing like that xml:

<?xml version="1.0"?>
-<valasz verzio="1.0" xmlns="">

-<cikk cikkszam="246524" cikkid="246524">
-<kepek>
<kep galeria="cikk-max">https://www.chs.hu/MSI_Alaplap_S1151_B250I_PRO_Intel_B250_ITX-i390944.png</kep>
</kepek>
</cikk>

-<cikk cikkszam="246526" cikkid="246526">
-<kepek>
<kep galeria="cikk-max">https://www.chs.hu/MSI_Alaplap_S1151_Z370_TOMAHAWK_Intel_Z370_ATX-i390949.png</kep>
</kepek>
</cikk>
-<cikk cikkszam="246529" cikkid="246529">
<kepek/>
</cikk>

-<cikk cikkszam="246532" cikkid="246532">
-<kepek>
<kep galeria="cikk-max">https://www.chs.hu/ASUS_Videokartya_PCI-Ex16x_nVIDIA_GT_730_2GB_DDR3-i390959.jpg</kep>
<kep galeria="cikk-max">https://www.chs.hu/ASUS_Videokartya_PCI-Ex16x_nVIDIA_GT_730_2GB_DDR3-i390954.jpg</kep>
</kepek>
</cikk>
</valasz>

in <kepek> section are one or more pictures, or nothing. From 0 to 7-8 pictures, It is randomly.

Thanks

Steve
Accepted Answer Pending Moderation
Hello Steve,
You can create a combine rule to combine the images using | as combine character and put them in file_url field for import. Since you say the number of images will vary, you can add the maximum number of combine fields to your template fields and set the XML path of the images to the combine field. CSVI will then automatically take the image if present else will ignore the empty fields. I have set up combine rule to combine 4 images in screenshot, you can do that for 7 or 8 images as per your need.

Screen Shot 2017-12-21 at 10.35.33 AM.png
Attachments (1)
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello Tharuna

So it works!

Thanks

Steve
  1. more than a month ago
  2. RO CSVI
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!