Ecom:Product.ImageLarge.Default

Version: - string  

Summary

Returns a large (default) image for a product.

Settings

The value is based on the Large input field under the ecommerce no image settings.

(Management Center - Ecommerce - Advanced - Images - No image - Large)

Remarks

The value is returned as a HTML code snippet containing an <img> tag.

Examples

Outputting the template tag

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

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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