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