Ecom:VariantOption.ImgSmall

Version: -  

Summary

Returns the small image of the variant

Settings

The value is based on the Small input field for a variant option.

(eCommerce > Settings > Variants > Group > Attributes tab)

Examples

Outputting the template tag

@GetObject("Ecom:VariantOption.ImgSmall")

Check if tag has a value

@if(!var.IsNullOrWhiteSpace(GetObject("Ecom:VariantOption.ImgSmall"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ var storedTag = GetObject("Ecom:VariantOption.ImgSmall"); }

Outputting the template tag

<!--@Ecom:VariantOption.ImgSmall-->

Check if object has a value

<!--@If Defined(@Ecom:VariantOption.ImgSmall)--> Let's output this tag here: <strong><!--@Ecom:VariantOption.ImgSmall--></strong> <!--@EndIf(@Ecom:VariantOption.ImgSmall)-->