Webiant Logo Webiant Logo
  1. No results found.

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

Default.cshtml

@model ShoppingCartModel

@using Nop.Core
@using Nop.Core.Domain.Catalog
@using Nop.Core.Domain.Media
@using Nop.Core.Domain.Orders
@using Nop.Core.Domain.Tax

@inject IWebHelper webHelper
@inject IWorkContext workContext
@inject MediaSettings mediaSettings
@inject OrderSettings orderSettings

@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.OrderSummaryContentBefore, additionalData = Model }) @await Html.PartialAsync("_OrderReviewData", Model.OrderReviewData) @if (Model.Items.Count > 0) { if (Model.Warnings.Count > 0) {
    @foreach (var warning in Model.Warnings) {
  • @warning
  • }
} @*we add enctype = "multipart/form-data" because "File upload" attribute control type requires it*@
@if (Model.ShowSku) { } @if (Model.ShowProductImages) { } @if (Model.ShowVendorName) { } @if (Model.IsEditable) { } @if (Model.ShowSku) { } @if (Model.ShowProductImages) { } @if (Model.ShowVendorName) { } @if (Model.IsEditable) { } @foreach (var item in Model.Items) { @if (Model.ShowSku) { } @if (Model.ShowProductImages) { } @if (Model.ShowVendorName) { } @if (Model.IsEditable) { } }
@T("ShoppingCart.SKU") @T("ShoppingCart.Image") @T("ShoppingCart.Product(s)") @T("ShoppingCart.VendorName") @T("ShoppingCart.UnitPrice") @T("ShoppingCart.Quantity") @T("ShoppingCart.ItemTotal") @T("ShoppingCart.Remove")
@item.Sku @item.Picture.AlternateText @item.ProductName @if (!string.IsNullOrEmpty(item.AttributeInfo)) {
@Html.Raw(item.AttributeInfo)
} @if (!string.IsNullOrEmpty(item.RecurringInfo)) {
@Html.Raw(item.RecurringInfo)
} @if (!string.IsNullOrEmpty(item.RentalInfo)) {
@Html.Raw(item.RentalInfo)
} @if (Model.IsEditable && item.AllowItemEditing) { var editCartItemUrl = Url.RouteUrl(new { SeName = item.ProductSeName }, webHelper.GetCurrentRequestProtocol()); editCartItemUrl = webHelper.ModifyQueryString(editCartItemUrl, "updatecartitemid", item.Id.ToString()); } @if (item.Warnings.Count > 0) {
    @foreach (var warning in item.Warnings) {
  • @Html.Raw(warning)
  • }
}
@item.VendorName @item.UnitPrice @if (Model.IsEditable) { if (item.AllowedQuantities.Count > 0) { } else {
} } else { @item.Quantity }
@item.SubTotal @if (!string.IsNullOrEmpty(item.Discount)) {
@T("ShoppingCart.ItemYouSave", item.Discount)
if (item.MaximumDiscountedQty.HasValue) {
@T("ShoppingCart.MaximumDiscountedQty", item.MaximumDiscountedQty.Value)
} }
@if (item.DisableRemoval) {   } else { }
@if (Model.IsEditable && Model.Items.Count > 0 && Model.DisplayTaxShippingInfo) { var inclTax = await workContext.GetTaxDisplayTypeAsync() == TaxDisplayType.IncludingTax; //tax info is already included in the price (incl/excl tax). that's why we display only shipping info here //of course, you can modify appropriate locales to include VAT info there
@T(inclTax ? "ShoppingCart.TaxShipping.InclTax" : "ShoppingCart.TaxShipping.ExclTax", Url.RouteTopicUrl("shippinginfo"))
}
@if (Model.IsEditable) {
@await Component.InvokeAsync(typeof(ShoppingCartEstimateShippingViewComponent))
} @if (Model.IsEditable) { @await Html.PartialAsync("_CheckoutAttributes", Model) } @await Component.InvokeAsync(typeof(SelectedCheckoutAttributesViewComponent))
@if (Model.IsEditable) { @await Component.InvokeAsync(typeof(CrossSellProductsViewComponent)) }
} else {
@T("ShoppingCart.CartIsEmpty")
} @await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.OrderSummaryContentAfter, additionalData = Model })