Webiant Logo Webiant Logo
  1. No results found.

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

Default.cshtml

@model MiniShoppingCartModel

@using Nop.Core.Domain.Catalog

@if (Model.TotalProducts == 0) { @T("ShoppingCart.Mini.NoItems") } else { @Html.Raw(string.Format(T("ShoppingCart.Mini.ItemsText").Text, $"{string.Format(T("ShoppingCart.Mini.Items").Text, Model.TotalProducts)}")) }
@if (Model.TotalProducts > 0) {
@for (var i = 0; i < Model.Items.Count; i++) { var item = Model.Items[i];
@if (Model.ShowProductImages) { }
@if (!string.IsNullOrEmpty(item.AttributeInfo)) {
@Html.Raw(item.AttributeInfo)
}
@T("ShoppingCart.Mini.UnitPrice"): @item.UnitPrice
@T("ShoppingCart.Mini.Quantity"): @item.Quantity
}
@T("ShoppingCart.Totals.SubTotal"): @Model.SubTotal
@if (Model.DisplayShoppingCartButton) { } @if (Model.DisplayCheckoutButton) { var checkoutUrl = ""; if (Model.AnonymousCheckoutAllowed && Model.CurrentCustomerIsGuest) { checkoutUrl = Url.RouteUrl("LoginCheckoutAsGuest", new { returnUrl = Url.RouteUrl("ShoppingCart") }); } else { checkoutUrl = Url.RouteUrl("Checkout"); } }
}