Hi every one,
I need your help to understand something I’m struggling for hours now
Contexte:
I’m loading orders from my Woocommerce eshop on one side, and I need to generate an XML fil to send to my supplier with customer date and product item to deliver.
I’v been able to do the whole process, but I have one point I can’t finlise, which is adding the product items to the XML.
Here is the my scenario
Here is the agregator configuration;
Here is the result of the Aggregator that aggregate all order items:
we can see that there are 3 items skus and quantity (sorry the XML is in german as required by the supplier)
Now I need to add those items in my final XML so I did a CreateXML node with the following configuration regarding items:
At then end I have only one item in the XML. I can’t manage to have all the 3 items we have in the aggregator output.
Here is the RAW XML output:
I should have 3 items instead of one like that :
<items>
<item>
<shc_nummer>123456</shc_nummer>
<qty_ordered>2</qty_ordered>
</item>
<item>
<shc_nummer>123456</shc_nummer>
<qty_ordered>2</qty_ordered>
</item>
<item>
<shc_nummer>123456</shc_nummer>
<qty_ordered>2</qty_ordered>
</item>
</items>
So my question is: how should I do to load the Agregator output as a collection in the createXML node ?
Thanks in advance for your help !