Ecom:VariantOption.ImgSmall
Version: - stringSummary
Returns the small image of the variant.
Settings
The value is based on the Image small input field for a variant option.
(Management Center > Ecommerce settings > Product catalog > Variants > Add/edit Variant > Image small)
Remarks
The value is returned as a HTML code snippet containing an <img>
tag.
Examples
Outputting the template tag
@GetString("Ecom:VariantOption.ImgSmall")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:VariantOption.ImgSmall"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:VariantOption.ImgSmall");
}
Outputting the template tag
<!--@Ecom:VariantOption.ImgSmall-->
Check if string has a value
<!--@If Defined(@Ecom:VariantOption.ImgSmall)-->
Let's output this tag here: <strong><!--@Ecom:VariantOption.ImgSmall--></strong>
<!--@EndIf(@Ecom:VariantOption.ImgSmall)-->