Ecom:Product.Prices.AmountWithVATFormatted
Version: - doubleSummary
Returns the product price from the price matrix - incl. VAT.
Settings
The value is based on the Price field for the product in the price matrix.
(Ecommerce - Product catalog - Shop - Product - Prices - Price)
Remarks
Use Ecom:Product.Prices.PriceWithVATFormatted
to get the correct formatted price.
Examples
Outputting the template tag
@GetDouble("Ecom:Product.Prices.AmountWithVATFormatted")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetDouble("Ecom:Product.Prices.AmountWithVATFormatted"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetDouble("Ecom:Product.Prices.AmountWithVATFormatted");
}
Outputting the template tag
<!--@Ecom:Product.Prices.AmountWithVATFormatted-->
Check if double has a value
<!--@If Defined(@Ecom:Product.Prices.AmountWithVATFormatted)-->
Let's output this tag here: <strong><!--@Ecom:Product.Prices.AmountWithVATFormatted--></strong>
<!--@EndIf(@Ecom:Product.Prices.AmountWithVATFormatted)-->