Webiant Logo Webiant Logo
  1. No results found.

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

Edit.cshtml

@model OrderModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Orders.EditOrderDetails").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Orders");
}

@{
    const string hideInfoBlockAttributeName = "OrderPage.HideInfoBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideInfoBlock = await genericAttributeService.GetAttributeAsync(customer, hideInfoBlockAttributeName);

    const string hideBillingAndShippingBlockAttributeName = "OrderPage.HideBillingAndShippingBlock";
    var hideBillingAndShippingBlock = await genericAttributeService.GetAttributeAsync(customer, hideBillingAndShippingBlockAttributeName);

    const string hideProductsBlockAttributeName = "OrderPage.HideProductsBlock";
    var hideProductsBlock = await genericAttributeService.GetAttributeAsync(customer, hideProductsBlockAttributeName);

    const string hideNotesBlockAttributeName = "OrderPage.HideNotesBlock";
    var hideNotesBlock = await genericAttributeService.GetAttributeAsync(customer, hideNotesBlockAttributeName);
}

    

@T("Admin.Orders.EditOrderDetails") - @Model.CustomOrderNumber @T("Admin.Orders.BackToList")

@T("Admin.Orders.PdfInvoice") @if (!Model.IsLoggedInAsVendor) { @T("Admin.Common.Delete") } @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.OrderDetailsButtons, additionalData = Model })
@await Html.PartialAsync("_OrderDetails.Info", Model) @await Html.PartialAsync("_OrderDetails.BillingShipping", Model) @await Html.PartialAsync("_OrderDetails.Products", Model) @if (!Model.IsLoggedInAsVendor) { @await Html.PartialAsync("_OrderDetails.Notes", Model) } @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.OrderDetailsBlock, additionalData = Model })