Ecom:Product.Discount.TotalAmountWithoutVATFormatted
Version: - doubleSummary
Returns the formatted total amount of all sales discounts without VAT.
Settings
The value is based on the calculated sales discounts for the product.
Examples
Outputting the template tag
@GetDouble("Ecom:Product.Discount.TotalAmountWithoutVATFormatted")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetDouble("Ecom:Product.Discount.TotalAmountWithoutVATFormatted"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetDouble("Ecom:Product.Discount.TotalAmountWithoutVATFormatted");
}
Outputting the template tag
<!--@Ecom:Product.Discount.TotalAmountWithoutVATFormatted-->
Check if double has a value
<!--@If Defined(@Ecom:Product.Discount.TotalAmountWithoutVATFormatted)-->
Let's output this tag here: <strong><!--@Ecom:Product.Discount.TotalAmountWithoutVATFormatted--></strong>
<!--@EndIf(@Ecom:Product.Discount.TotalAmountWithoutVATFormatted)-->