Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Good morning,
Is there a way to serialize a finalized order to an xml, so I can send it to the backoffice? In an older version it could be done with GetXElement().
Thanks,
Merijn
Small update. I found OrderService.Instance.GetAllFinalizedAsXml() giving me all orders, so I could extract the Xml from that. However it would be nice to get the Xml of a single order, I hope it's possible, saves some code :-)
In Tea Commerce 2+ you can use:
using TeaCommerce.Api.Serializationorder.ToXml()
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Serializing finalized order to XML
Good morning,
Is there a way to serialize a finalized order to an xml, so I can send it to the backoffice? In an older version it could be done with GetXElement().
Thanks,
Merijn
Small update. I found OrderService.Instance.GetAllFinalizedAsXml() giving me all orders, so I could extract the Xml from that. However it would be nice to get the Xml of a single order, I hope it's possible, saves some code :-)
In Tea Commerce 2+ you can use:
using TeaCommerce.Api.Serialization
order.ToXml()
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.