Webiant Logo Webiant Logo
  1. No results found.

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

Order.cshtml

@model OrderSettingsModel

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

@{
    const string hideCheckoutBlockAttributeName = "OrderSettingsPage.HideCheckoutBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideCheckoutBlock = await genericAttributeService.GetAttributeAsync(customer, hideCheckoutBlockAttributeName);

    const string hideOrderTotalsBlockAttributeName = "OrderSettingsPage.HideOrderTotalsBlock";
    var hideOrderTotalsBlock = await genericAttributeService.GetAttributeAsync(customer, hideOrderTotalsBlockAttributeName);

    const string hideCommonBlockAttributeName = "OrderSettingsPage.HideCommonBlock";
    var hideCommonBlock = await genericAttributeService.GetAttributeAsync(customer, hideCommonBlockAttributeName);

    const string hidePdfInvoiceBlockAttributeName = "OrderSettingsPage.HidePdfInvoiceBlock";
    var hidePdfInvoiceBlock = await genericAttributeService.GetAttributeAsync(customer, hidePdfInvoiceBlockAttributeName);

    const string hideGiftCardsBlockAttributeName = "OrderSettingsPage.HideGiftCardsBlock";
    var hideGiftCardsBlock = await genericAttributeService.GetAttributeAsync(customer, hideGiftCardsBlockAttributeName);

    const string hideReturnRequestBlockAttributeName = "OrderSettingsPage.HideReturnRequestBlock";
    var hideReturnRequestBlock = await genericAttributeService.GetAttributeAsync(customer, hideReturnRequestBlockAttributeName);
}

@T("Admin.Configuration.Settings.Order")

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.OrderSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(StoreScopeConfigurationViewComponent)) @await Component.InvokeAsync(typeof(SettingModeViewComponent))
@await Html.PartialAsync("_Order.Checkout", Model) @await Html.PartialAsync("_Order.OrderTotals", Model) @await Html.PartialAsync("_Order.Common", Model) @await Html.PartialAsync("_Order.PdfInvoice", Model) @await Html.PartialAsync("_Order.GiftCards", Model) @await Html.PartialAsync("_Order.ReturnRequestSettings", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.OrderSettingsDetailsBlock, additionalData = Model })