Ecom:DiscountValidationResult.CheckForValidationReason

Version: 9.9.0 boolean  

Summary

Returns True if the discount is under validation reason check.

Settings

This relates to value of appropriate option set in the discount definition.

Examples

Outputting the template tag

@GetBoolean("Ecom:DiscountValidationResult.CheckForValidationReason")

Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("Ecom:DiscountValidationResult.CheckForValidationReason"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("Ecom:DiscountValidationResult.CheckForValidationReason"); }

Outputting the template tag

<!--@Ecom:DiscountValidationResult.CheckForValidationReason-->

Check if boolean has a value

<!--@If Defined(@Ecom:DiscountValidationResult.CheckForValidationReason)--> Let's output this tag here: <strong><!--@Ecom:DiscountValidationResult.CheckForValidationReason--></strong> <!--@EndIf(@Ecom:DiscountValidationResult.CheckForValidationReason)-->