Webiant Logo Webiant Logo
  1. No results found.

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

_VendorProductReviews.cshtml

@using Nop.Core.Domain.Catalog
@using Nop.Services.Helpers
@using Nop.Services.Html

@model List

@inject IDateTimeHelper dateTimeHelper
@inject IHtmlFormatter htmlFormatter

@if (Model.Count > 0)
{
    

@T("Vendors.ExistingReviews")

@foreach (var review in Model) { var ratingPercent = review.Rating * 20;
@review.Rating
@review.Title
@if (!string.IsNullOrEmpty(review.CustomerAvatarUrl)) {
@if (review.AllowViewingProfiles) { Avatar } else { Avatar }
}
@Html.Raw(htmlFormatter.FormatText(review.ReviewText, false, true, false, false, false, false))
@if (review.AllowViewingProfiles) { @(review.CustomerName) } else { @review.CustomerName } | @((await dateTimeHelper.ConvertToUserTimeAsync(review.CreatedOnUtc)).ToString("g"))
@await Html.PartialAsync("_ProductReviewHelpfulness", review.Helpfulness) @if (!string.IsNullOrEmpty(review.ReplyText)) {
@T("Reviews.Reply")
@Html.Raw(htmlFormatter.FormatText(review.ReplyText, false, true, false, false, false, false))
}
}
}