@model CheckoutShippingAddressModel @using Nop.Web.Models.Checkout; @{ Layout = "~/Views/Shared/_ColumnsOne.cshtml"; //title Html.AddTitleParts(T("PageTitle.Checkout").Text); }
@Html.Action("CheckoutProgress", "Checkout", new { step = CheckoutProgressStep.Address })

@T("Checkout.ShippingAddress")

@using (Html.BeginRouteForm("CheckoutShippingAddress", FormMethod.Post)) { if (Model.AllowPickUpInStore) {

@{ var pickupInStoreName = T("Checkout.PickUpInStore").Text; if (!String.IsNullOrEmpty(Model.PickUpInStoreFee)) { pickupInStoreName = T("Checkout.PickUpInStoreAndFee", Model.PickUpInStoreFee).Text; } } @Html.CheckBoxFor(x => x.PickUpInStore)

@T("Checkout.PickUpInStore.Description")

}
@Html.Widget("checkout_shipping_address_top") @if (Model.ExistingAddresses.Count > 0) {
@T("Checkout.SelectShippingAddress")
@foreach (var item in Model.ExistingAddresses) {
  • @item.FirstName @item.LastName
  • @if (item.PhoneEnabled) {
  • @T("Address.Fields.PhoneNumber"): @item.PhoneNumber
  • } @if (item.FaxEnabled) {
  • @T("Address.Fields.FaxNumber"): @item.FaxNumber
  • } @if (item.CompanyEnabled && !String.IsNullOrEmpty(item.Company)) {
  • @item.Company
  • } @if (item.StreetAddressEnabled) {
  • @item.Address1
  • } @if (item.StreetAddress2Enabled && !String.IsNullOrEmpty(item.Address2)) {
  • @item.Address2
  • } @if (item.CityEnabled || item.StateProvinceEnabled || item.ZipPostalCodeEnabled) {
  • @if (item.CityEnabled) { @item.City } @if (item.CityEnabled && (item.StateProvinceEnabled || item.ZipPostalCodeEnabled)) { , } @if (item.StateProvinceEnabled) { @item.StateProvinceName } @if (item.ZipPostalCodeEnabled) { @item.ZipPostalCode }
  • } @if (item.CountryEnabled && !String.IsNullOrEmpty(item.CountryName)) {
  • @item.CountryName
  • } @if (!String.IsNullOrEmpty(item.FormattedCustomAddressAttributes)) {
  • @Html.Raw(item.FormattedCustomAddressAttributes)
  • }
}
} @Html.Widget("checkout_shipping_address_middle")
@if (Model.ExistingAddresses.Count > 0) { @T("Checkout.OrEnterNewAddress") } else { @T("Checkout.EnterShippingAddress") }
@Html.ValidationSummary(true)
@{ var dataDictAddress = new ViewDataDictionary(); //Merge ModelState (required for validation) dataDictAddress.ModelState.Merge(ViewData.ModelState); dataDictAddress.TemplateInfo.HtmlFieldPrefix = "NewAddress"; @Html.Partial("_CreateOrUpdateAddress", Model.NewAddress, dataDictAddress) }
@Html.Widget("checkout_shipping_address_bottom")
}
@T("Checkout.OrderSummary")
@Html.Action("OrderSummary", "ShoppingCart")