Open Closed

Get ratings for every entity #4606


User avatar
0
omnya created

Hi, I used The rating system for product entity by using the rating widget but it just let users set the rate. Is there any way to get all ratings for every product? Or I should handle it by myself, if yes give me an example, especially for ui star's rating. And I don't need to use undo rating, How can I hide it? there is any setting for this widget!

  • ABP Framework version: v7.0.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Is there any way to get all ratings for every product

    You can use the IRatingRepository to get ratings: https://github.com/abpframework/abp/blob/dev/modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Ratings/IRatingRepository.cs You can also write your own query code using Repository.

    I don't need to use undo rating, How can I hide it? there is any setting for this widget!

    No such settings, but you can use JS to remove the undo HTML element.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11