Hi
I'm trying to add a value to the orderline code behind.
The option is added in the CMS and I can see it in the EcomOrderlineFields table.
myOrderLine.OrderLineFieldValues.Count is 0, so I can't loop through the values and set the value.
When I try to add a value to one of the custom orderlinefield I get an error that says 'object not set to a reference'
The code I tried:
Dim myOrderLineFV As eCommerce.Orders.OrderLineFieldValue = New eCommerce.Orders.OrderLineFieldValue("Fieldname", "Value") myOrderLine.OrderLineFieldValues.Add(myOrderLineFV) myOrderLine.Save()I also tried to create a new OrderLineFieldValueCollection and add it to the orderline, but that also creates the error 'object not set...'
How do I fill the custom OrderLineFieldValue correct?
Gr.
Martijn