Getting the Discount object
Hi All,
I have this following code:
foreach (LineItem lineIteminthis.BasketHelper.GetAllLineItems()){
foreach (DiscountApplicationRecord discountApplicationRecordin lineItem.ItemLevelDiscountsApplied)
{
Discount disc = (Discount)discountApplicationRecord.DiscountId; (?)string condition = discount.Condition.ConditionExpression.ToString();string award = discount.AwardExpression.ToString();}
}
I get all the list of line items and the available item level discount. I need to get the Discount object based on the available discountApplicationRecord .DiscountId. How can i get the Discount object?
I need this in order to retrieve the free items belong to the discount and add it to the cart.
Please respond to this code ASAP.
Nazim

