Ecom:DiscountValidationResult.Amount

Version: 9.9.0 double  

Summary

Returns the discount amount.

Settings

The value is based on the Amount field for the discount.

(Ecommerce - Orders - Disciunts&Offers-Order discounts - Order discount - Discount - Discount Type - Amount)

Examples

Outputting the template tag

@GetDouble("Ecom:DiscountValidationResult.Amount")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if double has a value

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