Hi!
I’m trying to figure out how to set the AdditionalInfo property on a SalesOrderRow in the cart. I want to use it to set a comment on an order row.
This is what I got so far, but I don’t know how to store it so that I can access my comment in subsequent requests.
var orderRow = _cartContextAccessor.CartContext.Cart.Order.Rows.First(row => row.ArticleNumber == variant.Id);
var itemRow = orderRow.MakeWritableClone();
itemRow.AdditionalInfo ??= new Dictionary<string, object>(1);
itemRow.AdditionalInfo.Add("comment", "a comment");
//now what?
Is there a service I should inject that takes care of that or am I going about it the wrong way?
Litium version:8.0