DiscountValidationResult.ProductQuantity
Version: 9.9.0 doubleSummary
Returns product quantity triggers the discount applies.
Settings
The value is related to appropriate option set in the discount definition.
Examples
Outputting the template tag
@GetDouble("DiscountValidationResult.ProductQuantity")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetDouble("DiscountValidationResult.ProductQuantity"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetDouble("DiscountValidationResult.ProductQuantity");
}
Outputting the template tag
<!--@DiscountValidationResult.ProductQuantity-->
Check if double has a value
<!--@If Defined(@DiscountValidationResult.ProductQuantity)-->
Let's output this tag here: <strong><!--@DiscountValidationResult.ProductQuantity--></strong>
<!--@EndIf(@DiscountValidationResult.ProductQuantity)-->