Beispiel #1
0
        private void BindUserProfileInformation()
        {
            var userBillingAndShippingInformation = CustomerAddressHelper.GetCustomerBillingAndShippingInfo(UserProfileHelper.GetCurrentlyLoggedInUser(), this.OrdersManager, this.UserProfileManager);

            if (userBillingAndShippingInformation != null)
            {
                FirstNameBilling.Value       = userBillingAndShippingInformation.ShippingFirstName;
                LastNameBilling.Value        = userBillingAndShippingInformation.ShippingFirstName;
                EmailBilling.Value           = userBillingAndShippingInformation.ShippingEmail;
                CompanyBilling.Value         = userBillingAndShippingInformation.ShippingCompany;
                Address1Billing.Value        = userBillingAndShippingInformation.ShippingAddress1;
                Address2Billing.Value        = userBillingAndShippingInformation.ShippingAddress2;
                CityBilling.Value            = userBillingAndShippingInformation.ShippingCity;
                CountryBilling.SelectedValue = userBillingAndShippingInformation.ShippingCountry;
                StateBilling.SelectedValue   = userBillingAndShippingInformation.ShippingState;
                ZipBilling.Value             = userBillingAndShippingInformation.ShippingZip;
                PhoneNumberBilling.Value     = userBillingAndShippingInformation.ShippingPhoneNumber;

                double totalWeight = CartHelper.GetTotalWeightOfCart(this.OrdersManager, this.GetShoppingCartId());
                this.ShippingInfo = new ShippingInfo {
                    ShippingToCountry = userBillingAndShippingInformation.ShippingCountry, ShippingToZip = userBillingAndShippingInformation.ShippingZip, TotalCartWeight = totalWeight
                };
            }
        }