Webiant Logo Webiant Logo
  1. No results found.

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

_CreateOrUpdate.cshtml

@model ProductModel

@{
    var showTour = ViewBag.ShowTour ?? false;

    const string hideInfoBlockAttributeName = "ProductPage.HideInfoBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideInfoBlock = showTour ? false : await genericAttributeService.GetAttributeAsync(customer, hideInfoBlockAttributeName);

    const string hidePricesBlockAttributeName = "ProductPage.HidePricesBlock";
    var hidePricesBlock = showTour ? false : await genericAttributeService.GetAttributeAsync(customer, hidePricesBlockAttributeName);

    const string hideShippingBlockAttributeName = "ProductPage.HideShippingBlock";
    var hideShippingBlock = showTour ? false : await genericAttributeService.GetAttributeAsync(customer, hideShippingBlockAttributeName);

    const string hideInventoryBlockAttributeName = "ProductPage.HideInventoryBlock";
    var hideInventoryBlock = showTour ? false : await genericAttributeService.GetAttributeAsync(customer, hideInventoryBlockAttributeName);

    const string hideMultimediaBlockAttributeName = "ProductPage.hideMultimediaBlock";
    var hideMultimediaBlock = showTour ? false : await genericAttributeService.GetAttributeAsync(customer, hideMultimediaBlockAttributeName);

    const string hideProductAttributesBlockAttributeName = "ProductPage.HideProductAttributesBlock";
    var hideProductAttributesBlock = await genericAttributeService.GetAttributeAsync(customer, hideProductAttributesBlockAttributeName, defaultValue: true);

    const string hideSpecificationAttributeBlockAttributeName = "ProductPage.HideSpecificationAttributeBlock";
    var hideSpecificationAttributeBlock = await genericAttributeService.GetAttributeAsync(customer, hideSpecificationAttributeBlockAttributeName, defaultValue: true);

    const string hideGiftCardBlockAttributeName = "ProductPage.HideGiftCardBlock";
    var hideGiftCardBlock = await genericAttributeService.GetAttributeAsync(customer, hideGiftCardBlockAttributeName, defaultValue: true);

    const string hideDownloadableBlockAttributeName = "ProductPage.HideDownloadableBlock";
    var hideDownloadableBlock = await genericAttributeService.GetAttributeAsync(customer, hideDownloadableBlockAttributeName, defaultValue: true);

    const string hideRentalBlockAttributeName = "ProductPage.HideRentalBlock";
    var hideRentalBlock = await genericAttributeService.GetAttributeAsync(customer, hideRentalBlockAttributeName, defaultValue: true);

    const string hideRecurringBlockAttributeName = "ProductPage.HideRecurringBlock";
    var hideRecurringBlock = await genericAttributeService.GetAttributeAsync(customer, hideRecurringBlockAttributeName, defaultValue: true);

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

    const string hideRelatedProductsBlockAttributeName = "ProductPage.HideRelatedProductsBlock";
    var hideRelatedProductsBlock = await genericAttributeService.GetAttributeAsync(customer, hideRelatedProductsBlockAttributeName, defaultValue: true);

    const string hideCrossSellsProductsBlockAttributeName = "ProductPage.HideCrossSellsProductsBlock";
    var hideCrossSellsProductsBlock = await genericAttributeService.GetAttributeAsync(customer, hideCrossSellsProductsBlockAttributeName, defaultValue: true);

    const string hidePurchasedWithOrdersBlockAttributeName = "ProductPage.HidePurchasedWithOrdersBlock";
    var hidePurchasedWithOrdersBlock = await genericAttributeService.GetAttributeAsync(customer, hidePurchasedWithOrdersBlockAttributeName, defaultValue: true);

    const string hideStockQuantityHistoryBlockAttributeName = "ProductPage.HideStockQuantityHistoryBlock";
    var hideStockQuantityHistoryBlock = await genericAttributeService.GetAttributeAsync(customer, hideStockQuantityHistoryBlockAttributeName, defaultValue: true);
}

@await Component.InvokeAsync(typeof(SettingModeViewComponent), new { modeName = "product-advanced-mode" })
@if (!Model.IsLoggedInAsVendor) { }
@await Html.PartialAsync("_CreateOrUpdate.Info", Model) @await Html.PartialAsync("_CreateOrUpdate.Prices", Model) @await Html.PartialAsync("_CreateOrUpdate.Shipping", Model) @await Html.PartialAsync("_CreateOrUpdate.Inventory", Model) @await Html.PartialAsync("_CreateOrUpdate.Multimedia", Model) @await Html.PartialAsync("_CreateOrUpdate.ProductAttributes", Model) @await Html.PartialAsync("_CreateOrUpdate.SpecificationAttributes", Model) @await Html.PartialAsync("_CreateOrUpdate.GiftCard", Model) @await Html.PartialAsync("_CreateOrUpdate.DownloadableProduct", Model) @await Html.PartialAsync("_CreateOrUpdate.Rental", Model) @await Html.PartialAsync("_CreateOrUpdate.Recurring", Model) @await Html.PartialAsync("_CreateOrUpdate.Seo", Model) @await Html.PartialAsync("_CreateOrUpdate.RelatedProducts", Model) @await Html.PartialAsync("_CreateOrUpdate.CrossSellsProducts", Model) @if (Model.Id > 0) { @await Html.PartialAsync("_CreateOrUpdate.PurchasedWithOrders", Model) @await Html.PartialAsync("_CreateOrUpdate.StockQuantityHistory", Model) } @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.ProductDetailsBlock, additionalData = Model })