Webiant Logo Webiant Logo
  1. No results found.

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

_CreateOrUpdate.cshtml

@model VendorModel

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

    const string hideDisplayBlockAttributeName = "VendorPage.HideDisplayBlock";
    var hideDisplayBlock = await genericAttributeService.GetAttributeAsync(customer, hideDisplayBlockAttributeName, defaultValue: true);

    const string hideSeoBlockAttributeName = "VendorPage.HideSEOBlock";
    var hideSeoBlock = await genericAttributeService.GetAttributeAsync(customer, hideSeoBlockAttributeName, defaultValue: true);

    const string hideVendorNotesBlockAttributeName = "VendorPage.HideNotesBlock";
    var hideVendorNotesBlock = await genericAttributeService.GetAttributeAsync(customer, hideVendorNotesBlockAttributeName, defaultValue: true);
}

@await Component.InvokeAsync(typeof(SettingModeViewComponent), new { modeName = "vendor-advanced-mode" })
@await Html.PartialAsync("_CreateOrUpdate.Info", Model) @await Html.PartialAsync("_CreateOrUpdate.Display", Model) @await Html.PartialAsync("_CreateOrUpdate.Seo", Model) @if (Model.Id > 0) { @await Html.PartialAsync("_CreateOrUpdate.Notes", Model) } @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.VendorDetailsBlock, additionalData = Model })