@model List<ElectronicStore.Models.CartItem> @{ ViewBag.Title = "Cart"; int subtotal = 0; }
Your Counts: @Model.Count
@if (Model.Count > 0)
{
foreach (var item in Model)
{
subtotal += item.Product.Price * item.Quantity;
}
}
else
{
}
@if (Model.Count == 1)
{
}
else
{
}
Code | Title | Image | Quantity | Unit Price | Total | ||
---|---|---|---|---|---|---|---|
@item.Product.Id | @item.Product.Name | @item.Product.Price | @(item.Product.Price * item.Quantity) | Delete | |||
You have no product | |||||||
Subtotal (@Model.Count item): | Subtotal (@Model.Count items): | @subtotal |
Continuo shopping
Update
Delete all items
Payment