1. loopy05
  2. RO CSVI
  3. Monday, 09 April 2018
  4.  Subscribe via email
Hi,

I have an understanding problem regarding the XML-export.

I read your documentation here: https://csvimproved.com/support/export/204-virtuemart/930-advanced-order-xml-export and checked your demo login to understand how it works.

1.
My operation mode is set to "Order"
CSVi_XML_operation.jpg

The xml section is incomplete (on purpose), because I tested the output now several times. I always receive the same output, no matter how the xml template is organised.

E.g., here I copied the complete xml template from your demo login.

My Header section:
<?xml version='1.0' encoding='UTF-8'?>
<root>

Body section: empty on purpose

My footer section:
<BSor>

<Cikkszam>[order_item_sku]</Cikkszam>
<Mennyiseg>[product_quantity]</Mennyiseg>
<EgysegAr>[product_final_price]</EgysegAr>
</BSor>

As an output I get the following dataset: CSVI_VirtueMart Order Export - XML_9-04-2018_14.04.xml
(please see the attachment) How can this be? My xml template is broken. I assume it uses the template fields instead? E.g I get the same output when I use the full xml template from here: https://csvimproved.com/support/export/204-virtuemart/930-advanced-order-xml-export

2. I tried to change the operation to "Oder Advanced" in my template. When I run the export the systems throws an exception:
An error has occured during the export. Below the information received from the server.
Status error: 200
Status message: OK

Fatal error: Call to undefined method CsviHelperFileExportXmlCsvimproved::Order() in /var/www/vhosts/XXX/httpdocs/plugins/csviaddon/virtuemart/com_virtuemart/model/export/orderadvanced.php on line 814


I'm using the latest version 7.5.1


Thanks in advance,
Accepted Answer Pending Moderation
Hello,

I have an understanding problem regarding the XML-export.
Let's see how we can help.

The first change you need to do is move the footer section into the body. There is no replacement done on the footer section, only on the body. The footer should get just </root>. On the File tab under XML choose Custom. This is the export that will replace the variables and allow you to use your own layout. I am assuming it is now still set to CSV Improved, this Website option has a fixed format. That is why you always get the same output.

So in short, go to the File tab and set the Export type to XML and the Website to Custom. Fill in the XML parts and you can run your export.

I tried to change the operation to "Oder Advanced" in my template.
We will look into this. The reason this happens is because you changed the operation type and some settings from the other operation are still there. However when you create a new template as Order Advanced the export will run.
Kind regards,

RolandD

=========================
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!