Product.OrderLineFields
Summary
The Product.OrderLineFields loop lets you display all custom order line fields associated with a product. The loop can be inserted in the product template.
Remarks
The product order line fields are created in Settings > Ecommerce > Orders > Order line fields and assigned to the product in the product group settings.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
Ecom:Product.OrderLineField.InputTextField
Returns an input field where customers can enter information about the product before adding it to the cart, e.g. various measurements. The content will be added to the cart together with the product.
@GetString("Ecom:Product.OrderLineField.InputTextField")
Ecom:Product.OrderLineField.InputTextField.Name
Returns the name of the order line input field. It can be used if you want to customize your own order line input field.
@GetString("Ecom:Product.OrderLineField.InputTextField.Name")
Ecom:Product.OrderLineField.Name
Returns the name of the order line field.
@GetString("Ecom:Product.OrderLineField.Name")
Ecom:Product.OrderLineField.SystemName
Returns the system name of the order line field.
@GetString("Ecom:Product.OrderLineField.SystemName")