Ecom:Product.LongDescription

Version: - string  

Summary

Returns a long description of the current product.

Settings

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

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

Remarks

In 8.x versions: 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).


From version 8.1.1.7: New checkbox in Management center - eCommerce - Advanced settings - General - Templates: Use product description if teaser text is empty.

Examples

Outputting the template tag

@GetString("Ecom:Product.LongDescription")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Ecom:Product.LongDescription-->

Check if string has a value

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