Webiant Logo Webiant Logo
  1. No results found.

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

Vendor.cshtml

@model VendorSettingsModel

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

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

    const string hideCatalogBlockAttributeName = "VendorSettingsPage.HideCatalogBlock";
    var hideCatalogBlock = await genericAttributeService.GetAttributeAsync(customer, hideCatalogBlockAttributeName);

    const string hideVendorAttributeBlockAttributeName = "VendorSettingsPage.HideVendorAttributeBlock";
    var hideVendorAttributeBlock = await genericAttributeService.GetAttributeAsync(customer, hideVendorAttributeBlockAttributeName);
}

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

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.VendorSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(StoreScopeConfigurationViewComponent)) @await Component.InvokeAsync(typeof(SettingModeViewComponent))
@await Html.PartialAsync("_Vendor.Common", Model) @await Html.PartialAsync("_Vendor.Catalog", Model) @await Html.PartialAsync("../VendorAttribute/ListBlock.cshtml", Model.VendorAttributeSearchModel) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.VendorSettingsDetailsBlock, additionalData = Model })