Esempio n. 1
0
 protected void btnAddCoupon_Click(object sender, EventArgs e)
 {
     Page.Validate("vgCoupon");
     if (Page.IsValid)
     {
         CurrentOrder.AddCouponCode(txtCoupon.Text.Trim().ToUpper());
         HccApp.OrderServices.Orders.Update(CurrentOrder);
         BindCoupons();
     }
 }
 protected void btnAddCoupon_Click(object sender, EventArgs e)
 {
     Page.Validate("vgCoupon");
     if (Page.IsValid)
     {
         var couponResult = CurrentOrder.AddCouponCode(txtCoupon.Text.Trim());
         if (couponResult == false)
         {
             ucMessageBox.ShowError(Localization.GetString("InvalidCoupon"));
         }
         else
         {
             HccApp.OrderServices.Orders.Update(CurrentOrder);
         }
         LoadOrder();
     }
 }
Esempio n. 3
0
 protected void btnAddCoupon_Click(object sender, EventArgs e)
 {
     Page.Validate("vgCoupon");
     if (Page.IsValid)
     {
         var couponResult = CurrentOrder.AddCouponCode(txtCoupon.Text.Trim());
         if (couponResult == false)
         {
             ucMessageBox.ShowError("Coupon does not apply or already exists.");
         }
         else
         {
             HccApp.OrderServices.Orders.Update(CurrentOrder);
         }
         LoadOrder();
     }
 }