Version: - string  


Returns a short description of the current product.


The value is based on the Teaser text input field under the Description tab for a product.

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


The length of the displayed teaser text is controlled by the Teaser text input field under the Product Catalog paragraph settings.

If the short description (teaser) is empty for a product, then Ecom:Product.ShortDescription and Ecom:Product.ShortDescription.Raw gets the content from the long description (same content as Ecom:Product.LongDescription). Different behavior can be changes with the Use product description if teaser text is empty checkbox in Management center - eCommerce - Advanced settings - General - Templates.



Outputting the template tag


Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag


Check if string has a value

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