Webiant Logo Webiant Logo
  1. No results found.

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

Wishlist.cshtml

@model WishlistModel

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

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

@{
    Layout = "_ColumnsOne";

    //title
    NopHtml.AddTitleParts(T("PageTitle.Wishlist").Text);
    //page class
    NopHtml.AppendPageCssClassParts("html-wishlist-page");
}

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

@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.WishlistTop, additionalData = Model }) @if (Model.Items.Count > 0) {
@if (Model.Warnings.Count > 0) {
    @foreach (var warning in Model.Warnings) {
  • @warning
  • }
}
@if (Model.DisplayAddToCart) { } @if (Model.ShowSku) { } @if (Model.ShowProductImages) { } @if (Model.IsEditable) { } @if (Model.DisplayAddToCart) { } @if (Model.ShowSku) { } @if (Model.ShowProductImages) { } @if (Model.IsEditable) { } @foreach (var item in Model.Items) { @if (Model.DisplayAddToCart) { } @if (Model.ShowSku) { } @if (Model.ShowProductImages) { } @if (Model.IsEditable) { } }
@T("ShoppingCart.AddToCart") @T("ShoppingCart.SKU") @T("ShoppingCart.Image") @T("ShoppingCart.Product(s)") @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.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 (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 ? "Wishlist.TaxShipping.InclTax" : "Wishlist.TaxShipping.ExclTax", Url.RouteTopicUrl("shippinginfo"))
}
@if (Model.IsEditable) { } @if (Model.DisplayAddToCart) { } @if (Model.IsEditable && Model.EmailWishlistEnabled) { }
} else {
@T("Wishlist.CartIsEmpty")
} @if (Model.IsEditable && Model.Items.Count > 0) { var wishlistUrl = Url.RouteUrl("Wishlist", new { customerGuid = Model.CustomerGuid }, webHelper.GetCurrentRequestProtocol()); } @await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.WishlistBottom, additionalData = Model })