@model CheckoutShippingAddressModel @using SmartStore.Core.Domain.Orders; @using SmartStore.Web.Models.Checkout; @using SmartStore.Web.Models.Common; @{ Layout = "~/Views/Shared/_Root.cshtml"; //title Html.AddTitleParts(T("PageTitle.Checkout").Text); }

@T("Checkout.ShippingAddress")

@Html.Widget("mobile_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
    }
  • }
} @Html.Widget("mobile_checkout_shipping_address_middle")
@if (Model.ExistingAddresses.Count > 0) { @T("Checkout.OrEnterNewAddress") } else { @T("Checkout.EnterShippingAddress") }
@*set "data-ajax" attribute to "false"*@ @using (Html.BeginForm(null, null, FormMethod.Post, new RouteValueDictionary { { "data-ajax", "false" } })) {
@{ 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("mobile_checkout_shipping_address_bottom")