Ecom:Product.VATGroup.Name

Version: - string  

Summary

Returns the Name 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

@GetString("Ecom:Product.VATGroup.Name")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Product.VATGroup.Name"); }

Outputting the template tag

<!--@Ecom:Product.VATGroup.Name-->

Check if string has a value

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