Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

ShippingAddress.cshtml

@inject IWebHelper webHelper
@using Nop.Core
@model CheckoutShippingAddressModel
@{
    Layout = "_ColumnsOne";

    var storeLocation = webHelper.GetStoreLocation();

    //title
    NopHtml.AddTitleParts(T("PageTitle.Checkout").Text);
    //page class
    NopHtml.AppendPageCssClassParts("html-checkout-page");
    NopHtml.AppendPageCssClassParts("html-shipping-address-page");
}




@await Component.InvokeAsync(typeof(CheckoutProgressViewComponent), new { step = CheckoutProgressStep.Address })

@T("Checkout.ShippingAddress")

@if (Model.DisplayPickupInStore && Model.PickupPointsModel.AllowPickupInStore) { @await Html.PartialAsync("_PickupPoints", Model.PickupPointsModel) } @if (Model.PickupPointsModel == null || !Model.PickupPointsModel.PickupInStoreOnly) {
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CheckoutShippingAddressTop, additionalData = Model }) @if (Model.ExistingAddresses.Count > 0) {
@T("Checkout.SelectShippingAddress")
@if (Model.InvalidExistingAddresses.Count > 0) { }
@foreach (var item in Model.ExistingAddresses) {
@if (item.Id != Model.SelectedBillingAddress) { }
  • @item.FirstName @item.LastName
  • @if (item.PhoneEnabled) {
  • @item.PhoneNumber
  • } @if (item.FaxEnabled) {
  • @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 && !string.IsNullOrEmpty(item.City) || item.CountyEnabled && !string.IsNullOrEmpty(item.County) || item.StateProvinceEnabled && !string.IsNullOrEmpty(item.StateProvinceName) || item.ZipPostalCodeEnabled && !string.IsNullOrEmpty(item.ZipPostalCode)) {
  • @if (item.CityEnabled && !string.IsNullOrEmpty(item.City)) { @item.City @if (item.CountyEnabled && !string.IsNullOrEmpty(item.County) || item.StateProvinceEnabled && !string.IsNullOrEmpty(item.StateProvinceName) || item.ZipPostalCodeEnabled && !string.IsNullOrEmpty(item.ZipPostalCode)) { , } } @if (item.CountyEnabled && !string.IsNullOrEmpty(item.County)) { @item.County @if (item.StateProvinceEnabled && !string.IsNullOrEmpty(item.StateProvinceName) || item.ZipPostalCodeEnabled && !string.IsNullOrEmpty(item.ZipPostalCode)) { , } } @if (item.StateProvinceEnabled && !string.IsNullOrEmpty(item.StateProvinceName)) { @item.StateProvinceName @if (item.ZipPostalCodeEnabled && !string.IsNullOrEmpty(item.ZipPostalCode)) { , } } @if (item.ZipPostalCodeEnabled && !string.IsNullOrEmpty(item.ZipPostalCode)) { @item.ZipPostalCode }
  • } @if (item.CountryEnabled && !string.IsNullOrEmpty(item.CountryName)) {
  • @item.CountryName
  • } @if (!string.IsNullOrEmpty(item.FormattedCustomAddressAttributes)) {
  • @Html.Raw(item.FormattedCustomAddressAttributes)
  • }
}
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CheckoutShippingAddressMiddle, additionalData = Model })
@if (Model.ExistingAddresses.Count > 0) { @T("Checkout.OrEnterNewAddress") } else { @T("Checkout.EnterShippingAddress") }
@{ var dataDictAddress = new ViewDataDictionary(ViewData); dataDictAddress.TemplateInfo.HtmlFieldPrefix = "ShippingNewAddress"; @await Html.PartialAsync("_CreateOrUpdateAddress", Model.ShippingNewAddress, dataDictAddress) }
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CheckoutShippingAddressBottom, additionalData = Model }) }
@T("Checkout.OrderSummary")
@await Component.InvokeAsync(typeof(OrderSummaryViewComponent))