Ecom:DiscountValidationResult.Description

Version: 9.9.0 string  

Summary

Returns description text of the discount.

Settings

This relates to value set in appropriate field in the discount definition. 

Examples

Outputting the template tag

@GetString("Ecom:DiscountValidationResult.Description")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:DiscountValidationResult.Description"); }

Outputting the template tag

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

Check if string has a value

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