Ecom:Product.ImageDefault.Default

Version: - string  

Summary

Returns a default(default) image for the current product.

Settings

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).

Examples

Outputting the template tag

@GetString("Ecom:Product.ImageDefault.Default")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Ecom:Product.ImageDefault.Default-->

Check if string has a value

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