Try your search with a different keyword or use * as a wildcard.
@model ProductReviewsModel
@inject Nop.Services.Html.IHtmlFormatter htmlFormatter
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.ProductReviewsPageTop, additionalData = Model })
@if (Model.Items.Count > 0)
{
@T("Reviews.ExistingReviews")
@foreach (var review in Model.Items)
{
var ratingPercent = review.Rating * 20;
@review.Title
@if (!string.IsNullOrEmpty(review.CustomerAvatarUrl))
{
}
@Html.Raw(htmlFormatter.FormatText(review.ReviewText, false, true, false, false, false, false))
@foreach (var reviewType in review.AdditionalProductReviewList.Where(x => x.Rating > 0 && x.VisibleToAllCustomers))
{
var ratingExtPercent = reviewType.Rating * 20;
}
@if (review.AllowViewingProfiles)
{
@(review.CustomerName)
}
else
{
@review.CustomerName
}
|
@review.WrittenOnStr
@await Html.PartialAsync("_ProductReviewHelpfulness", review.Helpfulness)
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.ProductReviewsPageInsideReview, additionalData = review })
@if (!string.IsNullOrEmpty(review.ReplyText))
{
}
}
}
@if (!Model.AddProductReview.CanCurrentCustomerLeaveReview)
{
@T("Reviews.OnlyRegisteredUsersCanWriteReviews")
}
else if (!Model.AddProductReview.CanAddNewReview)
{
@T("Reviews.AlreadyAddedProductReviews")
}
else
{
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.ProductReviewsPageBottom, additionalData = Model })