Ecom:DiscountValidationResult.Name

Version: 9.9.0 string  

Summary

Returns name of the discount.

Settings

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

Examples

Outputting the template tag

@GetString("Ecom:DiscountValidationResult.Name")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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