Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].PresentationType
Version: - integerSummary
Returns the presentation type for the chosen option type that's used for this field.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetInteger("Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].PresentationType")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].PresentationType"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].PresentationType");
}
Outputting the template tag
<!--@Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].PresentationType-->
Check if integer has a value
<!--@If Defined(@Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].PresentationType)-->
Let's output this tag here: <strong><!--@Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].PresentationType--></strong>
<!--@EndIf(@Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].PresentationType)-->