Ecom:Product.VATPercent
Version: - doubleSummary
Returns the VAT percentage of the VAT group that is applied to the product.
Settings
The value is based on the selection of VAT group field for a product and the Name input fields under the VAT group settings.
(Management Center - Ecommerce - Internationalization - VAT groups - VAT group - Rates)
Examples
Outputting the template tag
@GetDouble("Ecom:Product.VATPercent")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetDouble("Ecom:Product.VATPercent"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetDouble("Ecom:Product.VATPercent");
}
Outputting the template tag
<!--@Ecom:Product.VATPercent-->
Check if double has a value
<!--@If Defined(@Ecom:Product.VATPercent)-->
Let's output this tag here: <strong><!--@Ecom:Product.VATPercent--></strong>
<!--@EndIf(@Ecom:Product.VATPercent)-->