Provides setup and extension guidance for the CrestApps Orchard Core Product Reviews module, covering verified-purchase ratings, moderation, review photos, and listing filters.
Ships in crestapps-orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an Orchard Core expert. Generate accurate setup and extension guidance for the CrestApps Product Reviews module, which lets buyers rate and review products they bought, moderated by the store, with stars on product pages and an average rating that listings filter and sort by.
CrestApps.OrchardCore.Reviews (or the CrestApps.OrchardCore.Cms.Core.Targets bundle) in the web/startup project.CrestApps.OrchardCore.Reviews. It depends on CrestApps.OrchardCore.Commerce, CrestApps.OrchardCore.Products, CrestApps.OrchardCore.Orders and OrchardCore.Contents (see orchardcore-products).CrestApps.OrchardCore.Products.Listing (ListingStartup runs only then).OrchardCore.Email and CrestApps.OrchardCore.Customers (see orchardcore-customers), plus the site Base URL.orchardcore-orders and orchardcore-carts; the shared Commerce menu and storefront account by orchardcore-commerce.{ "steps": [...] }.sealed modifier, except View Models.| Item | Value |
|---|---|
| Feature ID | CrestApps.OrchardCore.Reviews |
| Records | ProductReview in collection Reviews (ProductReviewIndex) |
| Services | ReviewService (GetEligibilityAsync, SubmitAsync, ModerateAsync, DeleteAsync, ListApprovedAsync, PageAsync, CountPendingAsync), ProductRatingReader, ReviewPhotoStore, ReviewRequestService |
| Shapes | ProductRating (Content:before:5) and ProductReviews (Content:60) on a product's Detail display |
| Site settings | ReviewSettings (group reviews, Settings > Commerce > Reviews) |
| Listing seams filled | IProductSearchDocumentContributor, IProductListingEntryProvider |
| Background task | ReviewRequestBackgroundTask (hourly) |
| Permissions | ManageProductReviews ("Moderate product reviews"; Administrator, Store manager, Marketing), SubmitProductReviews ("Review products bought"; Authenticated) |
| Report | Product Reviews report under Reports > Commerce and the Product Reviews dashboard widget (with CrestApps.OrchardCore.Reports) |
| Report Builder | Reviews data source (Reviews) with ProductReviews (ManageProductReviews; review text and photos never exposed); recipe ReviewsReportBuilderReports adds editable copies to the Store group |
| Structured data | With Advanced SEO, a product with approved reviews gets a schema.org aggregateRating (see orchardcore-advanced-seo) |
| Personal data | ReviewPersonalDataContributor: an erasure replaces the author name and scrubs the title and body; the rating stays. It does not take part in guest retention expiry |
ProductReview holds ProductId, ProductTitle, UserId, AuthorName, Rating (1 to 5), Title (120 chars), Body (4000 chars), Status (Pending, Approved, Rejected), VerifiedPurchase, OrderId, Photos (up to three media paths) and moderation fields. ProductRating(Count, Average) is the count and one-decimal average of approved reviews.
ReviewSettings | Default | Meaning |
|---|---|---|
RequireApproval | true | New and changed reviews wait for moderation |
BuyersOnly | true | Only buyers of the product on a paid order may review |
SendReviewRequests | false | Email buyers asking for reviews |
ReviewRequestDelayDays | 14 | Days after the order before asking |
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Media",
"OrchardCore.Email",
"CrestApps.OrchardCore.Customers",
"CrestApps.OrchardCore.Reviews"
]
},
{
"name": "Settings",
"ReviewSettings": {
"RequireApproval": true,
"BuyersOnly": true,
"SendReviewRequests": true,
"ReviewRequestDelayDays": 10
}
}
]
}
SubmitProductReviews sees the form when GetEligibilityAsync allows it. The form posts to POST /reviews/{productId}.RequireApproval, sends it back for approval.ReviewPhotoStore accepts up to three JPEG, PNG or WebP photos of at most 5 MB each (checked by their first bytes), saved under reviews/{productId}/ in the media store. New photos replace and delete the old ones.ReviewRequestService.SendDueAsync reads paid orders from the last 60 days placed at least ReviewRequestDelayDays ago without Order.ReviewRequestSentUtc, up to 200 a run, and emails each buyer once with links to each product's reviews (the store's review-request email template), only when the customer accepts marketing. Every due order is marked, so a buyer who does not accept marketing is not asked later. Only lines whose content type exists on the site get a link, so Point of Sale department lines (content type PosDepartment, no content item) are skipped.
Commerce > Reviews (reviews, ManageProductReviews) lists reviews on the AdminList standard, pending first, filtered by status, with Approve, Reject and Delete. Approving, rejecting, or deleting an approved review calls IProductSearchIndexRefresher.RefreshAsync so the listing rating updates at once.
ReviewSearchDocumentContributor writes ProductAttributeKeys.Rating (average) and ProductAttributeKeys.ReviewCount to each product's search record. Products without approved reviews get neither.ReviewListingEntryProvider adds the Customer rating range facet (key avg-rating, ranges from 4, 3 and 2 stars) to listings with automatic filters, and Customer rating: highest first (key avg-rating-desc) to listings with automatic sorts. Unrated products sort last.Product.Rating.The same two seams let any module add searchable attributes with automatic facets and sorts. The Reviews implementation is the pattern:
using CrestApps.OrchardCore.Products.Core.Listing;
using Microsoft.Extensions.Localization;
namespace MyCompany.OrchardCore.Sustainability;
public sealed class EcoScoreListingEntryProvider : IProductListingEntryProvider
{
internal readonly IStringLocalizer S;
public EcoScoreListingEntryProvider(IStringLocalizer<EcoScoreListingEntryProvider> stringLocalizer)
{
S = stringLocalizer;
}
public IEnumerable<ProductListingFacet> GetFacets()
=>
[
new ProductListingFacet
{
Key = "eco-score",
AttributeKey = "Product.EcoScore",
Label = S["Eco score"],
Kind = ProductFacetKind.Range,
ShowRanges = true,
Ranges = [new ProductFacetRange { Min = 80 }, new ProductFacetRange { Min = 50 }],
},
];
public IEnumerable<ProductListingSort> GetSorts()
=>
[
new ProductListingSort { Key = "eco-score-desc", Label = S["Eco score: highest first"], AttributeKey = "Product.EcoScore", Descending = true },
];
}
Pair it with an IProductSearchDocumentContributor that adds a ProductAttributeValue with that key, register both as scoped services in a startup with [RequireFeatures("CrestApps.OrchardCore.Products.Listing")], and call IProductSearchIndexRefresher.RefreshAsync when the source data changes.
| Symptom | Check |
|---|---|
| Review form missing | User must be signed in with SubmitProductReviews, and have bought the product on a paid order when BuyersOnly is on |
| Approved review not on the page | The product page must render the Detail display type |
| Rating filter missing in a listing | Enable Product Listing; the listing must use automatic filters, or add Product.Rating itself |
| Listing rating is stale | Moderate through Commerce > Reviews, which refreshes the product's search record |
| No review request emails | Enable SendReviewRequests, OrchardCore.Email and Customers, set the Base URL, and the buyer must accept marketing |
| Photo upload refused | Only JPEG, PNG or WebP up to 5 MB, three at most, with Media enabled |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchard-core, product-reviews, ecommerce, ratings, moderation
/crestapps-orchardcore:orchardcore-reviewsfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts.Other plugins' skills for the same job