Webiant Logo Webiant Logo
  1. No results found.

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

Catalog.cshtml

@model CatalogSettingsModel

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

@{
    const string hideSearchBlockAttributeName = "CatalogSettingsPage.HideSearchBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideSearchBlock = await genericAttributeService.GetAttributeAsync(customer, hideSearchBlockAttributeName);

    const string hideProductReviewsBlockAttributeName = "CatalogSettingsPage.HideProductReviewsBlock";
    var hideProductReviewsBlock = await genericAttributeService.GetAttributeAsync(customer, hideProductReviewsBlockAttributeName);

    const string hideReviewTypesBlockAttributeName = "CatalogSettingsPage.HideReviewTypesBlock";
    var hideReviewTypesBlock = await genericAttributeService.GetAttributeAsync(customer, hideReviewTypesBlockAttributeName);

    const string hidePerformanceBlockAttributeName = "CatalogSettingsPage.HidePerformanceBlock";
    var hidePerformanceBlock = await genericAttributeService.GetAttributeAsync(customer, hidePerformanceBlockAttributeName);

    const string hideShareBlockAttributeName = "CatalogSettingsPage.HideShareBlock";
    var hideShareBlock = await genericAttributeService.GetAttributeAsync(customer, hideShareBlockAttributeName);

    const string hideCompareProductsBlockAttributeName = "CatalogSettingsPage.HideCompareProductsBlock";
    var hideCompareProductsBlock = await genericAttributeService.GetAttributeAsync(customer, hideCompareProductsBlockAttributeName);

    const string hideAdditionalSectionsBlockAttributeName = "CatalogSettingsPage.HideAdditionalSectionsBlock";
    var hideAdditionalSectionsBlock = await genericAttributeService.GetAttributeAsync(customer, hideAdditionalSectionsBlockAttributeName);

    const string hideProductFieldsBlockAttributeName = "CatalogSettingsPage.HideProductFieldsBlock";
    var hideProductFieldsBlock = await genericAttributeService.GetAttributeAsync(customer, hideProductFieldsBlockAttributeName);

    const string hideProductPageBlockAttributeName = "CatalogSettingsPage.HideProductPageBlock";
    var hideProductPageBlock = await genericAttributeService.GetAttributeAsync(customer, hideProductPageBlockAttributeName);

    const string hideCatalogPagesBlockAttributeName = "CatalogSettingsPage.HideCatalogPagesBlock";
    var hideCatalogPagesBlock = await genericAttributeService.GetAttributeAsync(customer, hideCatalogPagesBlockAttributeName);

    const string hideTagsBlockAttributeName = "CatalogSettingsPage.HideTagsBlock";
    var hideTagsBlock = await genericAttributeService.GetAttributeAsync(customer, hideTagsBlockAttributeName);

    const string hideTaxBlockAttributeName = "CatalogSettingsPage.HideTaxBlock";
    var hideTaxBlock = await genericAttributeService.GetAttributeAsync(customer, hideTaxBlockAttributeName);

    const string hideExportImportBlockAttributeName = "CatalogSettingsPage.HideExportImportBlock";
    var hideExportImportBlock = await genericAttributeService.GetAttributeAsync(customer, hideExportImportBlockAttributeName);

    const string hideProductSortingBlockAttributeName = "CatalogSettingsPage.HideProductSortingBlock";
    var hideProductSortingBlock = await genericAttributeService.GetAttributeAsync(customer, hideProductSortingBlockAttributeName);
}


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

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.CatalogSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(StoreScopeConfigurationViewComponent)) @await Component.InvokeAsync(typeof(SettingModeViewComponent))
@await Html.PartialAsync("_Catalog.Search", Model) @await Html.PartialAsync("_Catalog.ProductReviews", Model) @await Html.PartialAsync("../ReviewType/List", Model.ReviewTypeSearchModel) @await Html.PartialAsync("_Catalog.Performance", Model) @await Html.PartialAsync("_Catalog.Share", Model) @await Html.PartialAsync("_Catalog.CompareProducts", Model) @await Html.PartialAsync("_Catalog.AdditionalSections", Model) @await Html.PartialAsync("_Catalog.ProductFields", Model) @await Html.PartialAsync("_Catalog.ProductPage", Model) @await Html.PartialAsync("_Catalog.CatalogPages", Model) @await Html.PartialAsync("_Catalog.Tags", Model) @await Html.PartialAsync("_Catalog.Tax", Model) @await Html.PartialAsync("_Catalog.ExportImport", Model) @await Html.PartialAsync("_Catalog.ProductSorting", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.CatalogSettingsDetailsBlock, additionalData = Model })