Posted on 08/02/2023 09:31:18
Thanks. I did some further digging this morning and the problem might be slightly different. The docs page only lists the tags for the order line fields for the product and not the order line fields for order lines. For the product the field is called InputTextFieldName (making the previous version of the documentation correct) but when using it on an order line it's with a dot. From Renderer.cs:
orderLineFieldLoopTemplate.SetTag("Ecom:Product.OrderLineField.InputTextFieldName", string.Format("EcomOrderLineFieldInput_{0}", orderLineField.SystemName));
...
orderLineFieldLoop.SetTag("Ecom:Order:OrderLine.OrderLineField.InputTextField.Name", orderLineFieldValue.GetCartInputFieldName(orderLine.Id));
Maybe the code should be updated and the one with a dot added to the order line and the one without added to the product so both work? It's quite confusing when copying code from one place to another for the same feature doesn't work as expected.
My initial confusion came from the fact that the order lines manual (https://doc.dynamicweb.com/documentation-9/how-tos/general/using-order-line-fields) links to the tags for the product's order line fields.
Thanks!