Webiant Logo Webiant Logo
  1. No results found.

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

Gdpr.cshtml

@model GdprSettingsModel

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

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

    const string hideConsentsBlockAttributeName = "GdprSettingsPage.HideConsentsBlock";
    var hideConsentsBlock = await genericAttributeService.GetAttributeAsync(customer, hideConsentsBlockAttributeName);
}


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

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.GdprSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(StoreScopeConfigurationViewComponent)) @await Component.InvokeAsync(typeof(SettingModeViewComponent))
@await Html.PartialAsync("_Gdpr.Common", Model) @await Html.PartialAsync("_Gdpr.Consents", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.GdprSettingsDetailsBlock, additionalData = Model })