Webiant Logo Webiant Logo
  1. No results found.

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

MethodRestrictions.cshtml

@model PaymentMethodsModel

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

@T("Admin.Configuration.Payment.MethodRestrictions")

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.PaymentMethodRestrictionsTop, additionalData = Model })
@T("Admin.Configuration.Payment.MethodRestrictions.Description")
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.PaymentsListButtons, additionalData = Model })
@if (!Model.PaymentMethodRestriction.AvailablePaymentMethods.Any()) { No payment methods installed } else if (!Model.PaymentMethodRestriction.AvailableCountries.Any()) { No countries available } else { @foreach (var pm in Model.PaymentMethodRestriction.AvailablePaymentMethods) { var systemNameWithoutDot = pm.SystemName.Replace(".", ""); } @foreach (var c in Model.PaymentMethodRestriction.AvailableCountries) { @foreach (var pm in Model.PaymentMethodRestriction.AvailablePaymentMethods) { var restricted = Model.PaymentMethodRestriction.Restricted.ContainsKey(pm.SystemName) && Model.PaymentMethodRestriction.Restricted[pm.SystemName][c.Id]; var systemNameWithoutDot = pm.SystemName.Replace(".", ""); } }
@T("Admin.Configuration.Payment.MethodRestrictions.Country")
@c.Name
}
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.PaymentMethodRestrictionsBottom, additionalData = Model })