// This function is to calculate coupon discount adjustment for the order public void AdjustPriceByCouponDiscount() { var total = AdjustedCart.GetFinalPrice(); var adjustment = (AdjustedCart.Order.WithCoupon && total >= EligibleAmt) ? OffAmt : NoCouponAmt; this.AdjustedCart.AdjustPrice(adjustment); }
public void AdjustPriceByBulkDiscount() { var adjustment = AdjustedCart .Order .OrderItems .Sum(i => CalculateOrderItemPrice(i)); AdjustedCart.AdjustPrice(adjustment); }