Try your search with a different keyword or use * as a wildcard.
@model OrderDetailsModel
@using Nop.Core.Domain.Catalog
@using Nop.Core.Domain.Media
@inject MediaSettings mediaSettings
@{
if (!Model.PrintMode)
{
Layout = "_ColumnsOne";
}
else
{
Layout = "_Print";
}
//title
NopHtml.AddTitleParts(T("PageTitle.OrderDetails").Text);
//page class
NopHtml.AppendPageCssClassParts("html-order-details-page");
}
@if (Model.PrintMode)
{
}
@if (!Model.PrintMode)
{
@T("Order.OrderInformation")
@T("Order.Print")
@if (!Model.PdfInvoiceDisabled)
{
@T("Order.GetPDFInvoice")
}
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.OrderDetailsPageTop, additionalData = Model })
@T("Order.Order#")@Model.CustomOrderNumber
-
@T("Order.OrderDate"): @Model.CreatedOn.ToString("D")
-
@T("Order.OrderStatus"): @Model.OrderStatus
-
@T("Order.OrderTotal"): @Model.OrderTotal
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.OrderDetailsPageOverview, additionalData = Model })
@T("Order.BillingAddress")
-
@Model.BillingAddress.FirstName @Model.BillingAddress.LastName
-
@T("Order.Email"): @Model.BillingAddress.Email
@if (Model.BillingAddress.PhoneEnabled)
{
-
@T("Order.Phone"): @Model.BillingAddress.PhoneNumber
}
@if (Model.BillingAddress.FaxEnabled)
{
-
@T("Order.Fax"): @Model.BillingAddress.FaxNumber
}
@if (Model.BillingAddress.CompanyEnabled && !string.IsNullOrEmpty(Model.BillingAddress.Company))
{
-
@Model.BillingAddress.Company
}
@foreach (var item in Model.BillingAddress.AddressFields)
{
- @item.Value
}
@if (!string.IsNullOrEmpty(Model.VatNumber))
{
-
@T("Order.VATNumber")
@Model.VatNumber
}
@if (!string.IsNullOrEmpty(Model.BillingAddress.FormattedCustomAddressAttributes))
{
-
@Html.Raw(Model.BillingAddress.FormattedCustomAddressAttributes)
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.OrderDetailsBillingAddress, additionalData = Model })
@if (!string.IsNullOrEmpty(Model.PaymentMethod))
{
@T("Order.Payment")
-
@T("Order.Payment.Method"):
@Model.PaymentMethod
@if (!Model.PrintMode)
{
-
@T("Order.Payment.Status"):
@Model.PaymentMethodStatus
}
@if (!Model.PrintMode && Model.CanRePostProcessPayment)
{
@*Complete payment (for redirection payment methods)*@
-
}
@if (Model.CustomValues != null)
{
foreach (var item in Model.CustomValues)
{
-
@item.Key:
@(item.Value != null ? item.Value.ToString() : "")
}
}
}
@if (Model.IsShippable)
{
@(Model.PickupInStore ? T("Order.PickupAddress") : T("Order.ShippingAddress"))
@if (!Model.PickupInStore)
{
-
@Model.ShippingAddress.FirstName @Model.ShippingAddress.LastName
-
@T("Order.Email"): @Model.ShippingAddress.Email
if (Model.ShippingAddress.PhoneEnabled)
{
-
@T("Order.Phone"): @Model.ShippingAddress.PhoneNumber
}
if (Model.ShippingAddress.FaxEnabled)
{
-
@T("Order.Fax"): @Model.ShippingAddress.FaxNumber
}
if (Model.ShippingAddress.CompanyEnabled && !string.IsNullOrEmpty(Model.ShippingAddress.Company))
{
-
@Model.ShippingAddress.Company
}
@foreach (var item in Model.ShippingAddress.AddressFields)
{
- @item.Value
}
if (!string.IsNullOrEmpty(Model.ShippingAddress.FormattedCustomAddressAttributes))
{
-
@Html.Raw(Model.ShippingAddress.FormattedCustomAddressAttributes)
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.OrderDetailsShippingAddress, additionalData = Model })
}
else
{
@foreach (var item in Model.PickupAddress.AddressFields)
{
- @item.Value
}
}
@T("Order.Shipping")
-
@T("Order.Shipping.Name"):
@Model.ShippingMethod
@if (!Model.PrintMode)
{
-
@T("Order.Shipping.Status"):
@Model.ShippingStatus
}
}
@if (!Model.PrintMode && Model.Shipments.Count > 0)
{
@T("Order.Shipments")
@T("Order.Shipments.ID")
@T("Order.Shipments.TrackingNumber")
@if (Model.PickupInStore)
{
@T("Order.Shipments.ReadyForPickupDate")
}
else
{
@T("Order.Shipments.ShippedDate")
}
@T("Order.Shipments.DeliveryDate")
@T("Order.Shipments.ViewDetails")
@foreach (var item in Model.Shipments)
{
@item.Id.ToString()
@item.TrackingNumber
@if (Model.PickupInStore)
{
@if (item.ReadyForPickupDate.HasValue)
{
@item.ReadyForPickupDate.Value.ToString("D")
}
else
{
@T("Order.Shipments.ReadyForPickupDate.NotYet")
}
}
else
{
@if (item.ShippedDate.HasValue)
{
@item.ShippedDate.Value.ToString("D")
}
else
{
@T("Order.Shipments.ShippedDate.NotYet")
}
}
@if (item.DeliveryDate.HasValue)
{
@item.DeliveryDate.Value.ToString("D")
}
else
{
@T("Order.Shipments.DeliveryDate.NotYet")
}
@T("Order.Shipments.ViewDetails")
}
}
@if (Model.Items.Count > 0)
{
if (!Model.PrintMode && Model.OrderNotes.Count > 0)
{
@T("Order.Notes")
@T("Order.Notes.CreatedOn")
@T("Order.Notes.Note")
@foreach (var item in Model.OrderNotes)
{
@item.CreatedOn.ToString()
@Html.Raw(item.Note)
@if (item.HasDownload)
{
}
}
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.OrderDetailsPageBeforeproducts, additionalData = Model })
@T("Order.Product(s)")
@if (Model.ShowSku)
{
}
@if (Model.ShowProductThumbnail)
{
}
@if (Model.ShowVendorName)
{
}
@if (Model.ShowSku)
{
@T("Order.Product(s).SKU")
}
@if (Model.ShowProductThumbnail)
{
@T("Order.Product(s).Image")
}
@T("Order.Product(s).Name")
@if (Model.ShowVendorName)
{
@T("Order.Product(s).VendorName")
}
@T("Order.Product(s).Price")
@T("Order.Product(s).Quantity")
@T("Order.Product(s).Total")
@foreach (var item in Model.Items)
{
@if (Model.ShowSku)
{
@item.Sku
}
@if (Model.ShowProductThumbnail)
{
}
@if (!Model.PrintMode)
{
@item.ProductName
}
else
{
@item.ProductName
}
@if (!string.IsNullOrEmpty(item.AttributeInfo))
{
@Html.Raw(item.AttributeInfo)
}
@if (!string.IsNullOrEmpty(item.RentalInfo))
{
@Html.Raw(item.RentalInfo)
}
@if (item.DownloadId > 0)
{
}
@if (item.LicenseId > 0)
{
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.OrderDetailsProductLine, additionalData = item })
@if (Model.ShowVendorName)
{
@item.VendorName
}
@item.UnitPrice
@item.Quantity
@item.SubTotal
}
@if (Model.Items.Count > 0 && Model.DisplayTaxShippingInfo)
{
var inclTax = Model.PricesIncludeTax;
//tax info is already included in the price (incl/excl tax). that's why we display only shipping info here
//of course, you can modify appropriate locales to include VAT info there
@T(inclTax ? "Order.TaxShipping.InclTax" : "Order.TaxShipping.ExclTax", Url.RouteTopicUrl("shippinginfo"))
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.OrderDetailsPageAfterproducts, additionalData = Model })
@Model.OrderSubtotal
@if (!string.IsNullOrEmpty(Model.OrderSubTotalDiscount))
{
@Model.OrderSubTotalDiscount
}
@if (Model.IsShippable)
{
@Model.OrderShipping
}
@if (!string.IsNullOrEmpty(Model.PaymentMethodAdditionalFee))
{
@Model.PaymentMethodAdditionalFee
}
@if (Model.DisplayTaxRates && Model.TaxRates.Count > 0)
{
foreach (var taxRate in Model.TaxRates)
{
@taxRate.Value
}
}
@if (Model.DisplayTax)
{
@Model.Tax
}
@if (!string.IsNullOrEmpty(Model.OrderTotalDiscount))
{
@Model.OrderTotalDiscount
}
@if (Model.GiftCards.Count > 0)
{
foreach (var gc in Model.GiftCards)
{
@gc.Amount
}
}
@if (Model.RedeemedRewardPoints > 0)
{
@Model.RedeemedRewardPointsAmount
}
@Model.OrderTotal
@if (!Model.PrintMode)
{
@if (Model.IsReOrderAllowed)
{
}
@if (Model.IsReturnRequestAllowed)
{
}
}
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.OrderDetailsPageBottom, additionalData = Model })