DiscountValidationResults
9.9.0Summary
The DiscountValidationResults loop lets you display information about discounts not applied in the order.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
DiscountValidationResult.ProductQuantifier
Returns value of the discount quantifier.
@GetString("DiscountValidationResult.ProductQuantifier")
DiscountValidationResult.ProductQuantity
Returns product quantity triggers the discount applies.
@GetDouble("DiscountValidationResult.ProductQuantity")
Ecom:DiscountValidationResult.Amount
Returns the discount amount.
@GetDouble("Ecom:DiscountValidationResult.Amount")
Ecom:DiscountValidationResult.CampaignColor
Returns compaign color for the discount.
@GetString("Ecom:DiscountValidationResult.CampaignColor")
Ecom:DiscountValidationResult.CampaignImage
Returns path to compign image.
@GetString("Ecom:DiscountValidationResult.CampaignImage")
Ecom:DiscountValidationResult.CampaignName
Returns compaign name.
@GetString("Ecom:DiscountValidationResult.CampaignName")
Ecom:DiscountValidationResult.CheckForValidationReason
Returns True if the discount is under validation reason check.
@GetBoolean("Ecom:DiscountValidationResult.CheckForValidationReason")
Ecom:DiscountValidationResult.Description
Returns description text of the discount.
@GetString("Ecom:DiscountValidationResult.Description")
Ecom:DiscountValidationResult.Discount.Class
Returns the discount class.
@GetString("Ecom:DiscountValidationResult.Discount.Class")
Ecom:DiscountValidationResult.ID
Returns ID of the discount.
@GetString("Ecom:DiscountValidationResult.ID")
Ecom:DiscountValidationResult.Name
Returns name of the discount.
@GetString("Ecom:DiscountValidationResult.Name")
Ecom:DiscountValidationResult.Percent
Returns percent amount.
@GetDouble("Ecom:DiscountValidationResult.Percent")
Ecom:DiscountValidationResult.Percentage
Returns percentage amount of the discount.
@GetDouble("Ecom:DiscountValidationResult.Percentage")
Ecom:DiscountValidationResult.Type
Returns type of the discount.
@GetString("Ecom:DiscountValidationResult.Type")
Ecom:DiscountValidationResult.ValidFrom
Returns the start date of the discount validity.
@GetDate("Ecom:DiscountValidationResult.ValidFrom")
Ecom:DiscountValidationResult.ValidTo
Returns the end date of the discount validity.
@GetDate("Ecom:DiscountValidationResult.ValidTo")
Available loops
DiscountValidationReasons
Returns tags set says about reason the discount is not applied.
@foreach (LoopItem item in GetLoop("DiscountValidationReasons")){ <p>@item.GetValue("TagName")</p> }