Webiant Logo Webiant Logo
  1. No results found.

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

_CreateOrUpdateSpecificationAttribute.cshtml

@model SpecificationAttributeModel

@{
    const string hideInfoBlockAttributeName = "SpecificationAttributePage.HideInfoBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideInfoBlock = await genericAttributeService.GetAttributeAsync(customer, hideInfoBlockAttributeName);

    const string hideOptionsBlockAttributeName = "SpecificationAttributePage.HideOptionsBlock";
    var hideOptionsBlock = await genericAttributeService.GetAttributeAsync(customer, hideOptionsBlockAttributeName, defaultValue: true);

    const string hideUsedByProductsBlockAttributeName = "SpecificationAttributePage.HideUsedByProductsBlock";
    var hideUsedByProductsBlock = await genericAttributeService.GetAttributeAsync(customer, hideUsedByProductsBlockAttributeName, defaultValue: true);
}

@await Html.PartialAsync("_CreateOrUpdateSpecificationAttribute.Info", Model) @await Html.PartialAsync("_CreateOrUpdateSpecificationAttribute.Options", Model) @if (Model.Id > 0) { @await Html.PartialAsync("_CreateOrUpdateSpecificationAttribute.UsedByProducts", Model) } @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.SpecificationAttributeDetailsBlock, additionalData = Model })