CustomFieldValues
Summary
The CustomFieldValues loop lets you display a list of the custom product fields includs value of the field.
Remarks
The custom product fields are created in Management Center > Ecommerce > Product catalog > Product fields.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
Ecom:CustomField.Name
Returns the name of the custom product field.
@GetString("Ecom:CustomField.Name")
Ecom:CustomField.System
Returns the system name of the custom product field.
@GetString("Ecom:CustomField.System")
Ecom:CustomField.Template
Returns the template tag for the custom product field.
@GetString("Ecom:CustomField.Template")
Product.CustomField.Label
Returns translated option label for the current field.
@GetString("Product.CustomField.Label")
Product.CustomField.Value
Returns value of the custom field.
@GetString("Product.CustomField.Value")
Product.CustomField.Value.Clean
Returns clean value of the custom field.
@GetString("Product.CustomField.Value.Clean")
Available loops
Product.CustomField.Options
Return list of fields for custom fileds type of list.
@foreach (LoopItem item in GetLoop("Product.CustomField.Options")){ <p>@item.GetValue("TagName")</p> }