Webiant Logo Webiant Logo
  1. No results found.

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

Restrictions.cshtml

@model ShippingMethodRestrictionModel

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


@T("Admin.Configuration.Shipping.Restrictions") @T("Admin.Configuration.Shipping.Providers.BackToList")

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.ShippingRestrictionListButtons, additionalData = Model })

@T("Admin.Configuration.Shipping.Restrictions.Description")

@if (!Model.AvailableCountries.Any()) { No countries defined } else if (!Model.AvailableShippingMethods.Any()) { No shipping methods available } else { @foreach (var sm in Model.AvailableShippingMethods) { } @foreach (var c in Model.AvailableCountries) { @foreach (var sm in Model.AvailableShippingMethods) { var restricted = Model.Restricted.ContainsKey(c.Id) && Model.Restricted[c.Id][sm.Id]; } }
@T("Admin.Configuration.Shipping.Restrictions.Country")
@c.Name
}