Ecom:Order.Customer.Accepted
Version: - stringSummary
Returns True if the customer has accepted order terms and conditions. If not the tag outputs an empty string.
Settings
The value is based on the customer acceptance field.
Examples
Outputting the template tag
@GetString("Ecom:Order.Customer.Accepted")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Order.Customer.Accepted"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Order.Customer.Accepted");
}
Outputting the template tag
<!--@Ecom:Order.Customer.Accepted-->
Check if string has a value
<!--@If Defined(@Ecom:Order.Customer.Accepted)-->
Let's output this tag here: <strong><!--@Ecom:Order.Customer.Accepted--></strong>
<!--@EndIf(@Ecom:Order.Customer.Accepted)-->