Display Average Ratings for Items on Dynamic Category Page

Hello all! I recently followed the Corvid Tutorial to add ratings and reviews to my website (tutorial here: https://support.wix.com/en/article/corvid-tutorial-adding-ratings-and-reviews-to-a-wix-stores-site#overview)) . I adapted this slightly to use the feature with dynamic pages instead of Wix Stores.

Now I’m wondering if it’s possible to take things one step further and use the average ratings generated on each individual dynamic page and correctly display them under their corresponding item on the main index.

A visual always helps! So I’ll link to the specifics-- this is an example of an individual dynamic page with the average rating already correctly showing up (under the image): https://sashareinoso.wixsite.com/demodirectory/business-directory/blooms

And this is the category page that links to all items: https://sashareinoso.wixsite.com/demodirectory/business-directory

I currently have the rating images as a placeholder on the main index page, but as you’ll note, they are not attached to any data and thus not updating. Is there a way for me to pull the data to get all average ratings to show on the main index page, correctly assigned to each individual item?

Thanks in advance!

Hi Sashareinoso,
Here is a tutorial which includes average ratings on dynamic lightbox pages:
https://www.grampsworkbench.com/Examples/Ratings-by-User
You can see the live example or, edit the template!

Thanks for the reply, Arthur! This does look like it includes the functionality I’m looking for. Unfortunately, I’m still too inexperienced to identify and strip away all the included extras I don’t need without breaking what I do. Do you know if the backend module is integral to getting this to work?

@sashareinoso ,Hi
Yes, there is the queries.jsw backend(in example site).
Can you see the difference between a ratings input & a ratings display? All you need to do is search for the rating display in the example site code. I haven’t used the backend very much, so I might not be able to help you with that. As you mentioned, this is really advanced stuff. I think it will be too complicated for me compared to the code level right now. - Sorry.

@arthurvalatin No worries, I appreciate you pointing me in the right direction. Nothing like trial and error to learn something new! I do wonder if this technique is more complicated though because of the the slight difference in site functionalities (using logged in users and whatnot). I noticed this example doesn’t use a separate collection to store and calculate the ratings statistics the way the initial tutorial I followed recommends. Assuming it may be using code to do this instead, so I wonder if it would clash at all with what I have already. Either way, thanks and I’ll give it a shot!

Hi @ sashareinoso I had a look at your website and I saw that you have finally fix the issue with displaying individual average rating in the category page. May I kindly ask you to help me by sharing the code you used? It would be very helpful as I’m trying to do the same thing. Many Thanks. Geoffrey

Please observe the community guidelines when posting/commenting.

Please open up a new thread with your own question/issue instead of bumping up old posts. This thread will be closed.

Pro-Tip : You can open the browser debugger and access the page code.