@model ManufacturerModel @inject Nop.Services.Common.IGenericAttributeService genericAttributeService @inject IWorkContext workContext @{ const string hideInfoBlockAttributeName = "ManufacturerPage.HideInfoBlock"; var customer = await workContext.GetCurrentCustomerAsync(); var hideInfoBlock = await genericAttributeService.GetAttributeAsync(customer, hideInfoBlockAttributeName); const string hideDisplayBlockAttributeName = "ManufacturerPage.HideDisplayBlock"; var hideDisplayBlock = await genericAttributeService.GetAttributeAsync(customer, hideDisplayBlockAttributeName, defaultValue: true); const string hideMappingsBlockAttributeName = "ManufacturerPage.HideMappingsBlock"; var hideMappingsBlock = await genericAttributeService.GetAttributeAsync(customer, hideMappingsBlockAttributeName, defaultValue: true); const string hideSeoBlockAttributeName = "ManufacturerPage.HideSEOBlock"; var hideSeoBlock = await genericAttributeService.GetAttributeAsync(customer, hideSeoBlockAttributeName, defaultValue: true); const string hideProductsBlockAttributeName = "ManufacturerPage.HideProductsBlock"; var hideProductsBlock = await genericAttributeService.GetAttributeAsync(customer, hideProductsBlockAttributeName, defaultValue: true); }
@await Component.InvokeAsync(typeof(SettingModeViewComponent), new { modeName = "manufacturer-advanced-mode" })
@await Html.PartialAsync("_CreateOrUpdate.Info", Model) @await Html.PartialAsync("_CreateOrUpdate.Display", Model) @await Html.PartialAsync("_CreateOrUpdate.Mappings", Model) @await Html.PartialAsync("_CreateOrUpdate.Seo", Model) @await Html.PartialAsync("_CreateOrUpdate.Products", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.ManufacturerDetailsBlock, additionalData = Model })