Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].OptionLabel

Version: - string  

Summary

Returns the label name for the option that is selected for a listbox on the product.

Settings

The value  is based on the selected option for the product category field listbox for the product.

(eCommerce > Product catalog > Group > Product > Details tab > Product category group section > Selected Listbox option)

The label name is based on the Name field for the product category field listbox option.

(Management center > eCommerce settings > Product Catalog > Product categories - Product category - Fields - Field - Listbox edit - Options - Name)

Examples

Outputting the template tag

@GetString("Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].OptionLabel")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].OptionLabel"); }

Outputting the template tag

<!--@Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].OptionLabel-->

Check if string has a value

<!--@If Defined(@Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].OptionLabel)--> Let's output this tag here: <strong><!--@Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].OptionLabel--></strong> <!--@EndIf(@Ecom:Product.CategoryField.[ProductCategoryGroup].[Field].OptionLabel)-->