Product.CustomField.Option.Name

Version: - string  

Summary

Returns name of current option.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Product.CustomField.Option.Name")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Product.CustomField.Option.Name"); }

Outputting the template tag

<!--@Product.CustomField.Option.Name-->

Check if string has a value

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