Webiant Logo Webiant Logo
  1. No results found.

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

_CreateOrUpdate.cshtml

@model CategoryModel

@{
    const string hideInfoBlockAttributeName = "CategoryPage.HideInfoBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideInfoBlock = await genericAttributeService.GetAttributeAsync(customer, hideInfoBlockAttributeName);

    const string hideDisplayBlockAttributeName = "CategoryPage.HideDisplayBlock";
    var hideDisplayBlock = await genericAttributeService.GetAttributeAsync(customer, hideDisplayBlockAttributeName, defaultValue: true);

    const string hideMappingsBlockAttributeName = "CategoryPage.HideMappingsBlock";
    var hideMappingsBlock = await genericAttributeService.GetAttributeAsync(customer, hideMappingsBlockAttributeName, defaultValue: true);

    const string hideSeoBlockAttributeName = "CategoryPage.HideSEOBlock";
    var hideSeoBlock = await genericAttributeService.GetAttributeAsync(customer, hideSeoBlockAttributeName, defaultValue: true);

    const string hideProductsBlockAttributeName = "CategoryPage.HideProductsBlock";
    var hideProductsBlock = await genericAttributeService.GetAttributeAsync(customer, hideProductsBlockAttributeName, defaultValue: true);
}

@await Component.InvokeAsync(typeof(SettingModeViewComponent), new { modeName = "category-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.CategoryDetailsBlock, additionalData = Model })