@model CheckoutAttributeModel @inject Nop.Services.Common.IGenericAttributeService genericAttributeService @inject IWorkContext workContext @{ const string hideInfoBlockAttributeName = "CheckoutAttributePage.HideInfoBlock"; var customer = await workContext.GetCurrentCustomerAsync(); var hideInfoBlock = await genericAttributeService.GetAttributeAsync(customer, hideInfoBlockAttributeName); const string hideValuesBlockAttributeName = "CheckoutAttributePage.HideValuesBlock"; var hideValuesBlock = await genericAttributeService.GetAttributeAsync(customer, hideValuesBlockAttributeName, defaultValue: true); const string hideConditionBlockAttributeName = "CheckoutAttributePage.HideConditionBlock"; var hideConditionBlock = await genericAttributeService.GetAttributeAsync(customer, hideConditionBlockAttributeName, defaultValue: true); }
@await Component.InvokeAsync(typeof(SettingModeViewComponent), new { modeName = "checkoutattribute-advanced-mode" })
@await Html.PartialAsync("_CreateOrUpdate.Info", Model) @await Html.PartialAsync("_CreateOrUpdate.Values", Model) @await Html.PartialAsync("_CreateOrUpdate.Condition", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.CheckoutAttributeDetailsBlock, additionalData = Model })