Ecom:DiscountValidationResult.Percentage

Version: 9.9.0 double  

Summary

Returns percentage amount of the discount.

Settings

This relates to value set in approproate field in the discount definition then type is 'Percentage'.

Examples

Outputting the template tag

@GetDouble("Ecom:DiscountValidationResult.Percentage")

Check if tag has a value

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

Assign tag to a value for later use

@{ double storedTag = GetDouble("Ecom:DiscountValidationResult.Percentage"); }

Outputting the template tag

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

Check if double has a value

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