Ecom:Product.Image.{match.PatternName}
Version: 9.7.0 stringSummary
Returns image from image pattern per PatternName.
Settings
The value is related to rendering of improved image pattern defined in shop, depends on 'Settings-Ecommerce-Advanced configuration-Images-Improved image patterns' option. Find extra details within the manual.
Examples
Outputting the template tag
@GetString("Ecom:Product.Image.{match.PatternName}")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.Image.{match.PatternName}"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product.Image.{match.PatternName}");
}
Outputting the template tag
<!--@Ecom:Product.Image.{match.PatternName}-->
Check if string has a value
<!--@If Defined(@Ecom:Product.Image.{match.PatternName})-->
Let's output this tag here: <strong><!--@Ecom:Product.Image.{match.PatternName}--></strong>
<!--@EndIf(@Ecom:Product.Image.{match.PatternName})-->