Developer forum

Forum » Ecommerce - Standard features » Error in documentation

Error in documentation

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

The documentation on order line field tags has this:

(https://doc.dynamicweb.com/template-tags/ecommerce/product-catalog/product/product-orderlinefields#Ecom:Product.OrderLineField.InputTextFieldName)

However, the field is not called InputTextFieldName but InputTextField.Name with an extra dot. Can that be fixed?

Also, is there any chance that something like InputTextField.Size can be added to get back the size / length from the field in the backend?

Thanks!

Imar

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Fixed.

And whish is noted.

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

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!

 

 

You must be logged in to post in the forum