Webiant Logo Webiant Logo
  1. No results found.

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

Shipping.cshtml

@model ShippingSettingsModel

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

@{
    const string hideCommonBlockAttributeName = "ShippingSettingsPage.HideCommonBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideCommonBlock = await genericAttributeService.GetAttributeAsync(customer, hideCommonBlockAttributeName);

    const string hideNotificationsBlockAttributeName = "ShippingSettingsPage.HideNotificationsBlock";
    var hideNotificationsBlock = await genericAttributeService.GetAttributeAsync(customer, hideNotificationsBlockAttributeName);

    const string hideCheckoutBlockAttributeName = "ShippingSettingsPage.HideCheckoutBlock";
    var hideCheckoutBlock = await genericAttributeService.GetAttributeAsync(customer, hideCheckoutBlockAttributeName);

    const string hideShippingOriginBlockAttributeName = "ShippingSettingsPage.HideShippingOriginBlock";
    var hideShippingOriginBlock = await genericAttributeService.GetAttributeAsync(customer, hideShippingOriginBlockAttributeName);
}

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

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.ShippingSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(StoreScopeConfigurationViewComponent)) @await Component.InvokeAsync(typeof(SettingModeViewComponent))
@await Html.PartialAsync("_Shipping.Common", Model) @await Html.PartialAsync("_Shipping.Notifications", Model) @await Html.PartialAsync("_Shipping.Checkout", Model) @await Html.PartialAsync("_Shipping.ShippingOrigin", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.ShippingDetailsBlock, additionalData = Model })