Ecom:DiscountValidationReason.ValidationType

Version: 9.9.0 string  

Summary

Returns vaidation type of the reason. 

Settings

The value is generated automatically.

Remarks

Contains specific type of reason why the discount is not applied (e.g. order total, product quantities, date not valid etc.)

Examples

Outputting the template tag

@GetString("Ecom:DiscountValidationReason.ValidationType")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:DiscountValidationReason.ValidationType"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:DiscountValidationReason.ValidationType"); }

Outputting the template tag

<!--@Ecom:DiscountValidationReason.ValidationType-->

Check if string has a value

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