Ecom:Product.Prices.AmountWithVAT

Version: - double  

Summary

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)

Examples

Outputting the template tag

@GetDouble("Ecom:Product.Prices.AmountWithVAT")

Check if tag has a value

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

Assign tag to a value for later use

@{ double storedTag = GetDouble("Ecom:Product.Prices.AmountWithVAT"); }

Outputting the template tag

<!--@Ecom:Product.Prices.AmountWithVAT-->

Check if double has a value

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