Ecom:Product.LanguageID

Version: - string  

Summary

Returns the ID of the language used for the product.

Settings

The value is based on the selected language (in the language dropdown) for the product.

(eCommerce > Product Catalog > Shop > Product group > Product > Language dropdown)

Examples

Outputting the template tag

@GetString("Ecom:Product.LanguageID")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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