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
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
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
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🙏