Hi,
Is there any way in v1.8 to set the billing address to the customer address by default to remove the need for the customer to enter their details twice?
Thanks in anticipation.
txtCity.Text = string.Empty;
txtZipPostalCode.Text = string.Empty;
if (IsBillingAddress)
this.FillCountryDropDownsForBilling();
else
this.FillCountryDropDownsForShipping();
this.FillStateProvinceDropDowns();
txtCity.Text = string.Empty;
txtZipPostalCode.Text = string.Empty;
if (IsBillingAddress)
this.FillCountryDropDownsForBilling();
else
this.FillCountryDropDownsForShipping();
this.FillStateProvinceDropDowns();
//MOD_DEFAULTADDRESS> Default values
var customer = CustomerManager.GetCustomerById(NopContext.Current.User.CustomerId);
if (customer != null)
{
this.lblShippingAddressId.Text = "0";
this.txtFirstName.Text = customer.FirstName;
this.txtLastName.Text = customer.LastName;
this.txtPhoneNumber.Text = customer.PhoneNumber;
this.txtEmail.Text = customer.Email;
this.txtFaxNumber.Text = customer.FaxNumber;
this.txtCompany.Text = customer.Company;
this.txtAddress1.Text = customer.StreetAddress;
this.txtAddress2.Text = customer.StreetAddress2;
this.txtCity.Text = customer.City;
CommonHelper.SelectListItem(this.ddlCountry, customer.CountryId);
CommonHelper.SelectListItem(this.ddlStateProvince, customer.StateProvinceId);
this.txtZipPostalCode.Text = customer.ZipPostalCode;
}
//MOD_DEFAULTADDRESS<