Ecom:Product.VATGroup

Version: - string  

Summary

Returns the ID of the VAT group that is applied to the product.

Settings

The value is based on the input in the Default VAT group field for a product.

(Ecommerce > Product Catalog > Shop > Product group > Product > Details > Settings panel)

Examples

Outputting the template tag

@GetString("Ecom:Product.VATGroup")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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