Ecom:Country.Vat
Version: - doubleSummary
Returns the sales tax percentage for the country.
Settings
The value is based on the Sales tax input field under the Country settings.
(eCommerce > Configuration > Country > Country > General tab)
Examples
Outputting the template tag
@GetDouble("Ecom:Country.Vat")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetDouble("Ecom:Country.Vat"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetDouble("Ecom:Country.Vat");
}
Outputting the template tag
<!--@Ecom:Country.Vat-->
Check if double has a value
<!--@If Defined(@Ecom:Country.Vat)-->
Let's output this tag here: <strong><!--@Ecom:Country.Vat--></strong>
<!--@EndIf(@Ecom:Country.Vat)-->