Ecom:Product.Prices.LanguageID

Version: - string  

Summary

Returns the language ID for the language that is selected as requirement for the price.

 

Settings

The value is based on the Language field for the product in the price matrix.

(Ecommerce - Product catalog - Shop - Product - Prices - Language)

Remarks

Returns blank if All languages is selected.

Examples

Outputting the template tag

@GetString("Ecom:Product.Prices.LanguageID")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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