Ecom:Product.Discount.TotalAmountWithoutVAT
Version: -Summary
Returns the 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
@GetObject("Ecom:Product.Discount.TotalAmountWithoutVAT")
Check if tag has a value
@if(!var.IsNullOrWhiteSpace(GetObject("Ecom:Product.Discount.TotalAmountWithoutVAT"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
var storedTag = GetObject("Ecom:Product.Discount.TotalAmountWithoutVAT");
}
Outputting the template tag
<!--@Ecom:Product.Discount.TotalAmountWithoutVAT-->
Check if object has a value
<!--@If Defined(@Ecom:Product.Discount.TotalAmountWithoutVAT)-->
Let's output this tag here: <strong><!--@Ecom:Product.Discount.TotalAmountWithoutVAT--></strong>
<!--@EndIf(@Ecom:Product.Discount.TotalAmountWithoutVAT)-->