Ecom:LastAddedProduct.ImageMedium.Default
Version: - stringSummary
Returns a medium (default) image for the last added product.
Settings
The value is based on the Medium input field under the ecommerce no image settings.
(Management Center - Ecommerce - Advanced - Images - No image - Medium)
Examples
Outputting the template tag
@GetString("Ecom:LastAddedProduct.ImageMedium.Default")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:LastAddedProduct.ImageMedium.Default"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:LastAddedProduct.ImageMedium.Default");
}
Outputting the template tag
<!--@Ecom:LastAddedProduct.ImageMedium.Default-->
Check if string has a value
<!--@If Defined(@Ecom:LastAddedProduct.ImageMedium.Default)-->
Let's output this tag here: <strong><!--@Ecom:LastAddedProduct.ImageMedium.Default--></strong>
<!--@EndIf(@Ecom:LastAddedProduct.ImageMedium.Default)-->