Ecom:Product:Detail.Text
Version: - stringSummary
Returns a text or additional information about the product.
Settings
The value is based on an Details - Text input field on the Media tab for a product.
(Ecommerce > Product Catalog > Shop > Product group > Product > Media tab > Details - Text)
Examples
Outputting the template tag
@GetString("Ecom:Product:Detail.Text")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Detail.Text"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product:Detail.Text");
}
Outputting the template tag
<!--@Ecom:Product:Detail.Text-->
Check if string has a value
<!--@If Defined(@Ecom:Product:Detail.Text)-->
Let's output this tag here: <strong><!--@Ecom:Product:Detail.Text--></strong>
<!--@EndIf(@Ecom:Product:Detail.Text)-->