Show Ratings Display of Wix Comments

Question:
How to show Ratings Display from ‘Wix Comments’

Product:
Wix Editor

What are you trying to achieve:
I want this ratings display to show on repeaters and dynamic pages.
This is a workaround to Wix Reviews which only supports Wix Stores & not other collections like properties, services etc.

Suggestions:
This may be possible either by getting the code to only this bit of the Wix Comments,

or by getting the relevant terms from the Wix Comments API so that it can be connected to a Wix Ratings Display
Screenshot 2025-01-13 152419

What have you already tried:
The API reference doesn’t show the relevant terms as far as I could find
GPT always only shows a method via making a collection.

The getComment API has the comment rating in the return object

Please. note that we rolled out the ability to use SDK in your Websites and Blocks apps so this is also available in SDK and all future updates of this API will be in the SDK Get Comment | SDK

You can learn more about this update here Migrate from Velo to the SDK

Can you please show a solution to this?

From the documentation…you will want to start here. I suggest getting the basic version working then modifying for your use case. This example is velo. If you prefer to use the SDK, remember to import the NPM package first.

This is the backend code, then form the frontend you will call it with the id of the comment to get the ratings back and do whatever you like with them

import { webMethod, Permissions } from "wix-web-module";
import { elevate } from "wix-auth";

const elevatedGetComment = elevate(comments.getComment);

export const getComment = webMethod(Permissions.Anyone, async (commentId) => {
  try {
    const result = await elevatedGetComment(commentId);
    return result;
  } catch (error) {
    console.error(error);
    // Handle the error
  }
});

If you are looking to hire a developer to implement a solution for you, we do have a marketplace Professional Web Developers for Hire - Wix Marketplace

I’m not a coder, but I don’t see the relevant specifics to the solution detailed here. Based on other devs this was said to need just velo on the front end, and quite a simple one. I’d appreciate any targeted code🙏