예제 #1
0
        protected void SaveBillingAddress()
        {
            //Save the level B Address information from the form (level A is predetermined)
            if (!this.UserIsLevelA)
            {
                //BillingAddress.City = tbShippingCity.Text;
                //Replaced wrong City mapping above with correct mapping below (Heath Gardner 06/25/13)
                // Issue ID 1075 - "ECF - Standard User’s Bill-To City is overwritten with their Ship-To City"
                BillingAddress.City               = tbBillingCity.Text;
                BillingAddress.State              = ssBillingState.SelectedState;
                BillingAddress.Line1              = tbBillingAddress.Text;
                BillingAddress.PostalCode         = tbBillingZip.Text;
                BillingAddress.DaytimePhoneNumber = pnBillingDayPhone.Text;
                //BillingAddress.EveningPhoneNumber = pnBillingEveningPhone.Text;
                BillingAddress.FaxNumber = pnBillingFax.Text;
                BillingAddress.AcceptChanges();
            }
            //set the cart billing address
            this.CheckoutCartHelper.GetOrderForm(this.CheckoutCart.Name).BillingAddressId = BillingAddress.Name;

            //save the billing meta data
            this.CheckoutCart["OrderContactName"]    = this.tbBillingContactName.Text;
            this.CheckoutCart["OrderContactPhone"]   = this.pnBillingContact.Text;
            this.CheckoutCart["PurchaseOrder"]       = this.tbBillingPurchaseOrder.Text;
            this.CheckoutCart["SpecialInstructions"] = this.tbBillingSpecialInstructions.Text;
            this.CheckoutCart.AcceptChanges();
        }