Webiant Logo Webiant Logo
  1. No results found.

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

ShoppingCart.cshtml

@model ShoppingCartSettingsModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Configuration.Settings.ShoppingCart").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Shopping cart settings");
}

@{
    const string hideCommonBlockAttributeName = "ShoppingCartSettingsPage.HideCommonBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideCommonBlock = await genericAttributeService.GetAttributeAsync(customer, hideCommonBlockAttributeName);

    const string hideMiniShoppingCartBlockAttributeName = "ShoppingCartSettingsPage.HideMiniShoppingCartBlock";
    var hideMiniShoppingCartBlock = await genericAttributeService.GetAttributeAsync(customer, hideMiniShoppingCartBlockAttributeName);

    const string hideWishlistBlockAttributeName = "ShoppingCartSettingsPage.HideWishlistBlock";
    var hideWishlistBlock = await genericAttributeService.GetAttributeAsync(customer, hideWishlistBlockAttributeName);
}


@T("Admin.Configuration.Settings.ShoppingCart")

@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.ShoppingCartSettingsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(StoreScopeConfigurationViewComponent)) @await Component.InvokeAsync(typeof(SettingModeViewComponent))
@await Html.PartialAsync("_ShoppingCart.Common", Model) @await Html.PartialAsync("_ShoppingCart.MiniShoppingCart", Model) @await Html.PartialAsync("_ShoppingCart.Wishlist", Model) @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.ShoppingCartSettingsDetailsBlock, additionalData = Model })