Version: 9.7.0 string  


Returns a default image for the current product.


The value is related to an image marked as default in the product edit form (Document and Files/Product Image section of Ecom/PIM products).


The tags is removed or not used if Improved image patterns feature is enabled. Compartibility mode (if available) fills the tag by data from Ecom:Product.PrimaryImage tag. 


Outputting the template tag


Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag


Check if string has a value

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