Webiant Logo Webiant Logo
  1. No results found.

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

DatesAndRanges.cshtml

@model DatesRangesSearchModel

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

@{
    const string hideDatesBlockAttributeName = "DatesAndRangesPage.HideDatesBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideDatesBlock = await genericAttributeService.GetAttributeAsync(customer, hideDatesBlockAttributeName);

    const string hideRangesBlockAttributeName = "DatesAndRangesPage.HideRangesBlock";
    var hideRangesBlock = await genericAttributeService.GetAttributeAsync(customer, hideRangesBlockAttributeName);
}

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

  @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.DatesAndRangesButtons, additionalData = Model })
@await Html.PartialAsync("_DatesAndRanges.Dates", Model) @await Html.PartialAsync("_DatesAndRanges.Ranges", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.DatesAndRangesDetailsBlock, additionalData = Model })