@model ProductAttributeMappingModel @{ const string hideInfoBlockAttributeName = "ProductAttributeMappingPage.HideCommonBlock"; var customer = await workContext.GetCurrentCustomerAsync(); var hideInfoBlock = await genericAttributeService.GetAttributeAsync(customer, hideInfoBlockAttributeName); const string hideValuesBlockAttributeName = "ProductAttributeMappingPage.HideValuesBlock"; var hideValuesBlock = await genericAttributeService.GetAttributeAsync(customer, hideValuesBlockAttributeName); const string hideConditionBlockAttributeName = "ProductAttributeMappingPage.HideConditionBlock"; var hideConditionBlock = await genericAttributeService.GetAttributeAsync(customer, hideConditionBlockAttributeName); }
@await Html.PartialAsync("_CreateOrUpdateProductAttributeMapping.Info", Model) @await Html.PartialAsync("_CreateOrUpdateProductAttributeMapping.Values", Model) @if (Model.ConditionAllowed) { @await Html.PartialAsync("_CreateOrUpdateProductAttributeMapping.Condition", Model) } @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.ProductAttributeMappingDetailsBlock, additionalData = Model })