Webiant Logo Webiant Logo
  1. No results found.

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

CustomerUser.cshtml

@model CustomerUserSettingsModel

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

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

    const string hideSecurityBlockAttributeName = "CustomerUserSettingsPage.HideSecurityBlock";
    var hideSecurityBlock = await genericAttributeService.GetAttributeAsync(customer, hideSecurityBlockAttributeName);

    const string hideAccountBlockAttributeName = "CustomerUserSettingsPage.HideAccountBlock";
    var hideAccountBlock = await genericAttributeService.GetAttributeAsync(customer, hideAccountBlockAttributeName);

    const string hideProfileBlockAttributeName = "CustomerUserSettingsPage.HideProfileBlock";
    var hideProfileBlock = await genericAttributeService.GetAttributeAsync(customer, hideProfileBlockAttributeName);

    const string hideCustomerFormFieldsBlockAttributeName = "CustomerUserSettingsPage.HideCustomerFormFieldsBlock";
    var hideCustomerFormFieldsBlock = await genericAttributeService.GetAttributeAsync(customer, hideCustomerFormFieldsBlockAttributeName);

    const string hideAddressFormFieldsBlockAttributeName = "CustomerUserSettingsPage.HideAddressFormFieldsBlock";
    var hideAddressFormFieldsBlock = await genericAttributeService.GetAttributeAsync(customer, hideAddressFormFieldsBlockAttributeName);
}

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

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.CustomerUserSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(SettingModeViewComponent)) @await Html.PartialAsync("_CustomerUser.Common", Model) @await Html.PartialAsync("_CustomerUser.Security", Model) @await Html.PartialAsync("_CustomerUser.Account", Model) @await Html.PartialAsync("_CustomerUser.Profile", Model) @await Html.PartialAsync("_CustomerUser.CustomerFormFields", Model) @await Html.PartialAsync("_CustomerUser.AddressFormFields", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.CustomerUserDetailsBlock, additionalData = Model })