Ecom:Product.OrderLineField.InputTextField
Version: - stringSummary
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.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("Ecom:Product.OrderLineField.InputTextField")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.OrderLineField.InputTextField"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product.OrderLineField.InputTextField");
}
Outputting the template tag
<!--@Ecom:Product.OrderLineField.InputTextField-->
Check if string has a value
<!--@If Defined(@Ecom:Product.OrderLineField.InputTextField)-->
Let's output this tag here: <strong><!--@Ecom:Product.OrderLineField.InputTextField--></strong>
<!--@EndIf(@Ecom:Product.OrderLineField.InputTextField)-->