@model CustomerDownloadableProductsModel @using Nop.Core.Domain.Catalog @{ Layout = "_ColumnsTwo"; //title NopHtml.AddTitleParts(T("PageTitle.Account").Text); //page class NopHtml.AppendPageCssClassParts("html-account-page"); NopHtml.AppendPageCssClassParts("html-downloadable-products-page"); } @section left { @await Component.InvokeAsync(typeof(CustomerNavigationViewComponent), new { selectedTabId = CustomerNavigationEnum.DownloadableProducts }) }

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

@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CustomerDownloadableProductsTop, additionalData = Model }) @if (Model.Items.Count > 0) {
@for (var i = 0; i < Model.Items.Count; i++) { var item = Model.Items[i]; }
@T("DownloadableProducts.Fields.Order") @T("DownloadableProducts.Fields.Date") @T("DownloadableProducts.Fields.Product") @T("DownloadableProducts.Fields.Download")
@item.CustomOrderNumber @item.CreatedOn.ToString("d") @item.ProductName @if (!string.IsNullOrEmpty(item.ProductAttributes)) {
@Html.Raw(item.ProductAttributes)
}
@if (item.DownloadId > 0) { } else {
@T("DownloadableProducts.Fields.Download.NA")
} @if (item.LicenseId > 0) { }
} else {
@T("DownloadableProducts.NoItems")
} @await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CustomerDownloadableProductsBottom, additionalData = Model })