DiscountValidationReasons
9.9.0Summary
Returns tags set says about reason the discount is not applied.
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.
<table>
<tr>
@foreach (LoopItem item in GetLoop("DiscountValidationReasons") {
<td> @item.GetValue("Relevant.Tag") </td>
}
</tr>
</table>
Check if the loop exists
@if (Loops.Contains("DiscountValidationReasons")) {
...
}
Example of usage
The following general example illustrates how to use a loop construct.
<table>
<!--@LoopStart(DiscountValidationReasons)-->
<tr>
<td><!--@Loop:Tag--></td>
</tr>
<!--LoopEnd(DiscountValidationReasons)-->
</table>
Check if the loop exists
<!--@If LoopDefined(DiscountValidationReasons)-->
...
<!--@EndIf(DiscountValidationReasons)-->
Available tags
Ecom:DiscountValidationReason.OrderValue
Returns current order value of the reason item.
RAZOR
@GetString("Ecom:DiscountValidationReason.OrderValue")
Ecom:DiscountValidationReason.RequiredValue
Returns required value of the reason item.
RAZOR
@GetString("Ecom:DiscountValidationReason.RequiredValue")
Ecom:DiscountValidationReason.SystemReasonDescription
Returns description of the system reason indicates why the discount is not applied.
RAZOR
@GetString("Ecom:DiscountValidationReason.SystemReasonDescription")
Ecom:DiscountValidationReason.ValidationType
Returns vaidation type of the reason.
RAZOR
@GetString("Ecom:DiscountValidationReason.ValidationType")