protected override void Page_Load(object sender, EventArgs e) { string redirectPage = string.Empty; if (NavigationControl.CheckOrderFlow(Session["OrderStatus"], Request.RawUrl, out redirectPage)) { Response.Redirect(redirectPage); } if (!IsPostBack) { NavigationControl.DisableClientPageCache(); } if (!Page.IsPostBack) { SitePreference sitePrefCache = CSFactory.GetCacheSitePref(); if (!sitePrefCache.GeoLocationService) { string GeoCoountry = ""; GeoCoountry = CommonHelper.GetGeoTargetLocation(CommonHelper.IpAddress(HttpContext.Current)); } } base.Page_Load(sender, e); }
protected void Page_Load(object sender, EventArgs e) { //if (CartContext.OrderId <= 0) //{ // Response.Redirect("index.aspx"); //} string redirectPage = string.Empty; if (NavigationControl.CheckOrderFlow(Session["OrderStatus"], Request.RawUrl, out redirectPage)) { Response.Redirect(redirectPage); } if (OrderHelper.IsCustomerOrderFlowCompleted(CartContext.OrderId)) { Response.Redirect("receipt.aspx"); } if (!IsPostBack) { AllTemplates = GetTemplates(); CurrentTemplateIndex = -1; GoToNextTemplate(); } }
protected override void OnPreRender(EventArgs e) { string redirectPage = string.Empty; if (NavigationControl.CheckOrderFlow(Session["OrderStatus"], Request.RawUrl, out redirectPage)) { Response.Redirect(redirectPage); } }
protected void Page_Load(object sender, EventArgs e) { string redirectPage = string.Empty; if (NavigationControl.CheckOrderFlow(Session["OrderStatus"], Request.RawUrl, out redirectPage)) { Response.Redirect(redirectPage); } }
protected override void Page_Load(object sender, EventArgs e) { string redirectPage = string.Empty; if (NavigationControl.CheckOrderFlow(Session["OrderStatus"], Request.RawUrl, out redirectPage)) { Response.Redirect(redirectPage); } if (!IsPostBack) { NavigationControl.DisableClientPageCache(); } base.Page_Load(sender, e); }
protected void Page_Load(object sender, EventArgs e) { string redirectPage = string.Empty; if (NavigationControl.CheckOrderFlow(Session["OrderStatus"], Request.RawUrl, out redirectPage)) { Response.Redirect(redirectPage); } if (Session["oId"] != null) { orderId = Convert.ToInt32(Session["oId"]); } else { orderId = CartContext.OrderId; } if (!this.IsPostBack) { if (orderId > 0) { Order orderData = CSResolve.Resolve <IOrderService>().GetOrderDetails(orderId); if (!orderData.AttributeValuesLoaded) { orderData.LoadAttributeValues(); } if (!orderData.AttributeValues.ContainsAttribute("OrderFlowCompleted")) { Dictionary <string, AttributeValue> orderAttributes = new Dictionary <string, AttributeValue>(); orderAttributes.Add("OrderFlowCompleted", new CSBusiness.Attributes.AttributeValue("1")); CSResolve.Resolve <IOrderService>().UpdateOrderAttributes(orderData.OrderId, orderAttributes, orderData.OrderStatusId); } //UserSessions.InsertSessionEntry(Context, true, CartContext.CartInfo.Total, CartContext.CustomerInfo.CustomerId, orderId); } BindData(); //Fire OrderConfirmation Test if (CartContext.CustomerInfo.Email.ToLower().Contains("conversionsystems.com")) { OrderHelper.SendOrderCompletedEmail(orderId); } } }