@model WishlistModel @using Nop.Core @using Nop.Core.Domain.Tax @using Nop.Core.Infrastructure @using Nop.Web.Models.ShoppingCart @{ Layout = "~/Views/Shared/_ColumnsOne.cshtml"; //title Html.AddTitleParts(T("PageTitle.Wishlist").Text); }

@if (Model.IsEditable) { @T("Wishlist") } else { @String.Format(T("Wishlist.WishlistOf").Text, Model.CustomerFullname) }

@if (Model.Items.Count > 0) { if (Model.Warnings.Count > 0) {
    @foreach (var warning in Model.Warnings) {
  • @warning
  • }
} using (Html.BeginRouteForm("Wishlist", FormMethod.Post)) { @if (Model.IsEditable) { } @if (Model.DisplayAddToCart) { } @if (Model.ShowSku) { } @if (Model.ShowProductImages) { } @if (Model.IsEditable) { } @if (Model.DisplayAddToCart) { } @if (Model.ShowSku) { } @if (Model.ShowProductImages) { } @foreach (var item in Model.Items) { @if (Model.IsEditable) { } @if (Model.DisplayAddToCart) { } @if (Model.ShowSku) { } @if (Model.ShowProductImages) { } }
@T("ShoppingCart.Remove") @T("ShoppingCart.AddToCart") @T("ShoppingCart.SKU") @T("ShoppingCart.Product(s)") @T("ShoppingCart.UnitPrice") @T("ShoppingCart.Quantity") @T("ShoppingCart.ItemTotal")
@T("ShoppingCart.Remove"): @T("ShoppingCart.AddToCart"): @T("ShoppingCart.SKU"): @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 (item.Warnings.Count > 0) {
    @foreach (var warning in item.Warnings) {
  • @warning
  • }
}
@T("ShoppingCart.UnitPrice"): @item.UnitPrice @T("ShoppingCart.Quantity"): @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 (Model.Items.Count > 0 && Model.DisplayTaxShippingInfo) { var inclTax = EngineContext.Current.Resolve().TaxDisplayType == 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 ? "Wishlist.TaxShipping.InclTax" : "Wishlist.TaxShipping.ExclTax", Url.RouteUrl("Topic", new { SeName = Html.GetTopicSeName("shippinginfo") }))
}
@if (Model.IsEditable) { } @if (Model.DisplayAddToCart) { } @if (Model.IsEditable && Model.EmailWishlistEnabled) { }
} } else { @T("Wishlist.CartIsEmpty") }
@if (Model.IsEditable && Model.Items.Count > 0) { }