Version: 9.7.0 string  


Returns Variant or Master image pattern, whichever is the best match.


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.


Outputting the template tag


Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.Image.VariantOrMaster"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Product.Image.VariantOrMaster"); }

Outputting the template tag


Check if string has a value

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