protected void EditAddressButton_Click(object sender, EventArgs e) { if (AbleCommerce.Code.PageHelper.IsResponsiveTheme(this.Page)) { User user = AbleContext.Current.User; string editAddressUrl = "EditMyAddress.aspx"; if (user != null && user.PrimaryAddressId > 0) { editAddressUrl = string.Format("{0}?AddressId={1}", editAddressUrl, user.PrimaryAddressId); if (this.Order.OrderNumber > 0) { editAddressUrl += "&OrderNumber=" + Order.OrderNumber.ToString(); } Response.Redirect(editAddressUrl); } } else { //INITIALIZE BILLING ADDRESS EditBillAddressPanel.Visible = true; InitializeBillingAddress(); EditBillInfoPopup.Show(); } }
protected void BillToCountry_Changed(object sender, EventArgs e) { SelectCountryAndProvince(BillToCountry, BillToCountry.SelectedValue, false, BillToProvince, BillToProvinceList, BillToPostalCodeRequired, this.Order.BillToProvince, false); EditBillInfoPopup.Show(); }
protected void UpdateBillInfoButton_Click(object sender, EventArgs e) { SaveBillingAddress(); EditBillAddressPanel.Visible = true; EditBillInfoPopup.Hide(); }