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