I’m trying to design a marketplace-like app where users can exchange items. I want them to be able to rate each other after exchanging items. However, I’m not quite sure how to set up collections.
Hey @Vicky,
In order to have two users rate each other (mutual 1-5 stars), you can use the following setup:
-
Create (Rating) collection:
- Add “Rater” (as a relationship to Users).
- Add “Ratee” (as a relationship to User).
- Add “Stars” (as a number property), from 1 to 5.
-
For the Rating button: Add an action to Create a new Rating, and select the following data values: (Rater = Logged In User, Ratee = Current User, Stars = input or stars rating component).
-
To Show average rating, select Current user’s ratings => Average.
-
To prevent double rating, you can add the following visibility condition on the (Rating button): Current user’s ratings => Count, then add a filter (Rater ID is equal to Logged in user’s ID). Then keep the rest to be (Is equal to 0).
This method works well in a full marketplace app (buyers rate sellers, sellers rate buyers).
I’m launching a complete Adalo Marketplace Starter template this week (with chat, products, categories, payments, and mutual rating built-in).
I’ll let you know when it’s ready, happy to share a preview or cloneable if you’re interested.
Good luck with your app!
Ali Bazzi
Custom Builds, Audits & Templates
webnux.org | consultation.webnux.org
Hi Ali,
Thank you for your reply. I will try the setup. And yes, I’m very interested in the template that you mentioned. Please do share with me.
Thank you very much and wish you have a good day.
Vicky
Hey @Vicky,
You’re very welcome, I’m glad to help!
I’ll let you know once the Adalo Marketplace Starter template is ready (should be this week). Happy to share a preview or the cloneable then.
Good luck with the rating setup, let me know how it goes!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.