Ecom:VariantOption.ImgMedium.Clean
Version: -Summary
Returns an URL to the medium image of the variant.
Settings
The value is based on the Medium input field for a variant option.
(eCommerce > Settings > Variants > Group > Attributes tab)
Examples
Outputting the template tag
@GetObject("Ecom:VariantOption.ImgMedium.Clean")
Check if tag has a value
@if(!var.IsNullOrWhiteSpace(GetObject("Ecom:VariantOption.ImgMedium.Clean"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
var storedTag = GetObject("Ecom:VariantOption.ImgMedium.Clean");
}
Outputting the template tag
<!--@Ecom:VariantOption.ImgMedium.Clean-->
Check if object has a value
<!--@If Defined(@Ecom:VariantOption.ImgMedium.Clean)-->
Let's output this tag here: <strong><!--@Ecom:VariantOption.ImgMedium.Clean--></strong>
<!--@EndIf(@Ecom:VariantOption.ImgMedium.Clean)-->