Ecom:Order.TotalOrderDiscount
Version: 9.6.0 priceSummary
Returns the total amount for discounts applied as order discount (inclusive or exclusive).
Settings
The value is generated automatically.
Remarks
Includes the option to add price extensions in order to format the amount. See Price extensions (Prefix : Ecom:Order.TotalOrderDiscount).
Examples
Outputting the template tag
@GetPrice("Ecom:Order.TotalOrderDiscount")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetPrice("Ecom:Order.TotalOrderDiscount"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetPrice("Ecom:Order.TotalOrderDiscount");
}
Outputting the template tag
<!--@Ecom:Order.TotalOrderDiscount-->
Check if price has a value
<!--@If Defined(@Ecom:Order.TotalOrderDiscount)-->
Let's output this tag here: <strong><!--@Ecom:Order.TotalOrderDiscount--></strong>
<!--@EndIf(@Ecom:Order.TotalOrderDiscount)-->