Version: - string  


Returns the customer's company tax registration number/VAT identification number (VATIN) also called CVR in Denmark and VatRegNumber in United Kingdom.


Outputting the template tag


Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Order.Customer.VatRegNumber"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Order.Customer.VatRegNumber"); }

Outputting the template tag


Check if string has a value

<!--@If Defined(@Ecom:Order.Customer.VatRegNumber)--> Let's output this tag here: <strong><!--@Ecom:Order.Customer.VatRegNumber--></strong> <!--@EndIf(@Ecom:Order.Customer.VatRegNumber)-->