Ecom:Product.Discount.TotalPercentWithoutVAT

Version: - double  

Summary

Returns the total percentage 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.TotalPercentWithoutVAT")

Check if tag has a value

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

Assign tag to a value for later use

@{ double storedTag = GetDouble("Ecom:Product.Discount.TotalPercentWithoutVAT"); }

Outputting the template tag

<!--@Ecom:Product.Discount.TotalPercentWithoutVAT-->

Check if double has a value

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