Ecom:Product:Field.[TagName]
Version: - stringSummary
The Ecom:Product:Field
tags let you display information about custom product fields.
Settings
Extensions
The tag Ecom:Product:Field.[TagName]
has following extensions:
Extension | Description |
*.Value |
The value of the input field for the custom product field (Ecommerce - Product - Details - Product fields - Customfield) |
*.Value.Clean | The value of the input field for the custom product field (same as Value - mainly used with Link or File Manager) |
*.Value.Clean.Fullpath | The value of the input field for the custom product field (same as Value - mainly used with Link or File Manager. Contains /Files or /Files/Billeder) |
*.Name | The custom product field name (Management Center - eCom - Product catalog - Product fields - General - Settings - Name) |
*.System | The custom product field system name (Management Center - Ecommerce - Product catalog - Product fields - General - Settings - System name) |
*.Template | The custom product field template tag (Management Center - Ecommerce - Product catalog - Product fields - General - Settings - Template tag) |
Examples
Outputting the template tag
@GetString("Ecom:Product:Field.[TagName]")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.[TagName]"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product:Field.[TagName]");
}
Outputting the template tag
<!--@Ecom:Product:Field.[TagName]-->
Check if string has a value
<!--@If Defined(@Ecom:Product:Field.[TagName])-->
Let's output this tag here: <strong><!--@Ecom:Product:Field.[TagName]--></strong>
<!--@EndIf(@Ecom:Product:Field.[TagName])-->