Product.CustomField.Value

Version: - string  

Summary

Returns value of the custom field.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Product.CustomField.Value")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Product.CustomField.Value-->

Check if string has a value

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