1. baxterdown
  2. RO CSVI
  3. Tuesday, 28 February 2017
  4.  Subscribe via email
Hi everyone. When I export an XML file, Virtuemart products with multiple images are being clumped into a single field like this:

<image>http://xyz.com//images/stories/virtuemart/product/0012.jpg,http://xyz.com//images/stories/virtuemart/product/0024.jpg,http://xyz.com//images/stories/virtuemart/product/0035.jpg,http://xyz.com//images/stories/virtuemart/product/0048.jpg</image>


How can I configure the XML export so that each image is in a separate image field like this:


<image001>http://xyz.com//images/stories/virtuemart/product/0012.jpg</image001>
<image002>http://xyz.com//images/stories/virtuemart/product/0024.jpg</image002>
<image003>http://xyz.com//images/stories/virtuemart/product/0035.jpg</image003>
<image004>http://xyz.com//images/stories/virtuemart/product/0048.jpg</image004>


I am on using the following:
Joomla 3.6.5
Virtuemart 3.0.18
CSVI Pro 7.0.2

Thanks in advance for your help

Jose
Accepted Answer Pending Moderation
Hello Jose,
There is no direct way of doing this but you can create your own export XML handler in the folder administrator/components/com_csvi/helper/file/export/xml. Add your own XML file with code to read image and put them in separate XML nodes in ContentText function in the XML file. You can take csvimproved.php file in the same folder as an example, make a duplicate of it, rename the file and edit it. Also make sure that you change the class CsviHelperFileExportXmlCsvimproved to class CsviHelperFileExportXmlxxxxxxx, where xxxxxxx is the name of your new file. This file will then show up when you choose XML as export type in your template settings on File tab and your export XML should have the images as per your changes.
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
  • Page :
  • 1


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