Ecom:Product.Discount.Description
Version: - stringSummary
Returns the description of the discount.
Settings
The value is based on the Description field for the discount.
(Management Center - Ecommerce - Orders - Order discounts - Order discount - General - Description)
Examples
Outputting the template tag
@GetString("Ecom:Product.Discount.Description")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.Discount.Description"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product.Discount.Description");
}
Outputting the template tag
<!--@Ecom:Product.Discount.Description-->
Check if string has a value
<!--@If Defined(@Ecom:Product.Discount.Description)-->
Let's output this tag here: <strong><!--@Ecom:Product.Discount.Description--></strong>
<!--@EndIf(@Ecom:Product.Discount.Description)-->