Product.ConditionRewards
9.6.0Summary
Returns tags shows what rewards could be received if additional conditions are performed.
Remarks
If other conditions (e.g. Country) are not satisfied then such reward is not rendered.
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
Ecom:Product:ConditionReward.Id
Returns reward ID.
@GetString("Ecom:Product:ConditionReward.Id")
Ecom:Product:ConditionReward.Name
Returns name of reward condition.
@GetString("Ecom:Product:ConditionReward.Name")
Ecom:Product:ConditionReward.Percentage
Returns amount of percentage.
@GetInteger("Ecom:Product:ConditionReward.Percentage")
Ecom:Product:ConditionReward.Points
Returns amount of points.
@GetDouble("Ecom:Product:ConditionReward.Points")
Ecom:Product:ConditionReward.Rule
Returns rule of reward.
@GetString("Ecom:Product:ConditionReward.Rule")
Ecom:Product:ConditionReward.TotalPoints
Returns amount of total points.
@GetDouble("Ecom:Product:ConditionReward.TotalPoints")
Ecom:Product:ConditionReward.Type
Returns type of reward.
@GetString("Ecom:Product:ConditionReward.Type")
Available loops
ConditionTypes
Returns the tags of condition type.
@foreach (LoopItem item in GetLoop("ConditionTypes")){ <p>@item.GetValue("TagName")</p> }