Ecom:Product.Discount.TotalPercentWithVAT

Version: - double  

Summary

Returns the total percentage of all sales discounts with VAT.

Settings

The value is based on the calculated sales discounts for the product.

Examples

Outputting the template tag

@GetDouble("Ecom:Product.Discount.TotalPercentWithVAT")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if double has a value

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