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
Hi,
Is there a way to add a new property to an already existing orderline? Or edit a property in the code when an orderline already exists?
I have a complete order which I would like to add a property value to each orderline in the code.
Any help is appreciated.
Sure, something like this should do it.
_vendrApi.UoW.Execute(uow => { var order = _vendrApi.GetOrder(orderId) .AsWritable(uow); order.WithOrderLine(orderLineId) .SetProperty("someKey", "someValue"); _vendrApi.SaveOrder(order); uow.Complete(); });
Thank you Matt, this did the trick.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Add new property on orderline in the code.
Hi,
Is there a way to add a new property to an already existing orderline? Or edit a property in the code when an orderline already exists?
I have a complete order which I would like to add a property value to each orderline in the code.
Any help is appreciated.
Sure, something like this should do it.
Thank you Matt, this did the trick.
is working on a reply...