Ecom:Product.Discount.CheckForValidationReason
Version: 9.9.0 booleanSummary
Returns True if discount is marked for check validation reason.
Settings
The value relates to state of 'Validation reason' option in discount definition.
Examples
Outputting the template tag
@GetBoolean("Ecom:Product.Discount.CheckForValidationReason")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("Ecom:Product.Discount.CheckForValidationReason"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("Ecom:Product.Discount.CheckForValidationReason");
}
Outputting the template tag
<!--@Ecom:Product.Discount.CheckForValidationReason-->
Check if boolean has a value
<!--@If Defined(@Ecom:Product.Discount.CheckForValidationReason)-->
Let's output this tag here: <strong><!--@Ecom:Product.Discount.CheckForValidationReason--></strong>
<!--@EndIf(@Ecom:Product.Discount.CheckForValidationReason)-->