@model CustomerAddressListModel @{ Layout = "_ColumnsTwo"; //title NopHtml.AddTitleParts(T("PageTitle.Account").Text); //page class NopHtml.AppendPageCssClassParts("html-account-page"); NopHtml.AppendPageCssClassParts("html-address-list-page"); } @section left { @await Component.InvokeAsync(typeof(CustomerNavigationViewComponent), new { selectedTabId = CustomerNavigationEnum.Addresses }) }

@T("Account.MyAccount") - @T("Account.CustomerAddresses")

@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CustomerAddressesTop, additionalData = Model }) @if (Model.Addresses.Count > 0) {
@for (var i = 0; i < Model.Addresses.Count; i++) { var address = Model.Addresses[i];
@address.FirstName @address.LastName
  • @address.FirstName @address.LastName
  • @if (address.PhoneEnabled) {
  • @address.PhoneNumber
  • } @if (address.FaxEnabled) {
  • @address.FaxNumber
  • } @if (address.CompanyEnabled && !string.IsNullOrEmpty(address.Company)) {
  • @address.Company
  • } @foreach(var item in address.AddressFields) {
  • @item.Value
  • } @if (!string.IsNullOrEmpty(address.FormattedCustomAddressAttributes)) {
  • @Html.Raw(address.FormattedCustomAddressAttributes)
  • }
}
} else {
@T("Account.CustomerAddresses.NoAddresses")
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CustomerAddressesBottom, additionalData = Model })