Category Listing Page - Review/Rating Data Not Available in Product Entities

We are currently working on implementing structured data (Schema.org JSON-LD) for our Shopware 6 category listing pages and have encountered an issue accessing review/rating data for products.

Issue:

On category product listing pages, we need to calculate aggregate ratings for SEO schema markup. However, the product entities returned by the CMS listing slot do not contain rating information.

We attempted to access the following properties on product entities within the listing:

Property Tried Result
`product.ratingAverage` **null**
`product.ratingCount` **undefined / not available**
`product.productReviews` **null**
`product.extensions.rating` **not present**

Debug Output:

When inspecting the product object from slot.data.listing.elements, we can see:

{
„ratingAverage“: null,
„productReviews“: null,
// … other fields present
}

The product entities contain all standard data (name, price, cover image, etc.) but no rating/review associations are loaded.

  1. Is there an alternative way to access review counts per product on category pages without making additional database queries?

  2. Can you provide a Twig variable or method that exposes either:

    • ratingAverage (calculated average)

    • reviewCount / ratingCount (total number of reviews)

  3. Do you have a recommended approach for obtaining aggregate category-level rating data?

Goal:

We need to generate valid Schema.org markup like this:

{
@type“: „AggregateRating“,
„ratingValue“: „4.7“,
„reviewCount“: „142“,
„bestRating“: 5,
„worstRating“: 1
}

Thank you for your assistance! We look forward to your guidance on the best practice for accessing rating data on category listing pages.