Version: - string  


Returns the medium size image for the last added product.


The value is based on the Medium image input field under the Media tab for a product.

(Ecommerce > Product Catalog > Product group/product > Media tab > Media panel)


Outputting the template tag


Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:LastAddedProduct.ImageMedium"); }

Outputting the template tag


Check if string has a value

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