Ecom:Order.PaymentMethod
Version: - stringSummary
Returns the name of the payment method for the order.
Settings
The value is based on the Name
input field for the payment method.
(Management Center > Ecommerce settings > Orders > Payment > Payment method > General tab)
Examples
Outputting the template tag
@GetString("Ecom:Order.PaymentMethod")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Order.PaymentMethod"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Order.PaymentMethod");
}
Outputting the template tag
<!--@Ecom:Order.PaymentMethod-->
Check if string has a value
<!--@If Defined(@Ecom:Order.PaymentMethod)-->
Let's output this tag here: <strong><!--@Ecom:Order.PaymentMethod--></strong>
<!--@EndIf(@Ecom:Order.PaymentMethod)-->