Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vendor reviews #7244

Open
AndreiMaz opened this issue Jun 19, 2024 · 1 comment · May be fixed by #7297
Open

Vendor reviews #7244

AndreiMaz opened this issue Jun 19, 2024 · 1 comment · May be fixed by #7297

Comments

@AndreiMaz
Copy link
Member

AndreiMaz commented Jun 19, 2024

Add support for vendor reviews (written about a vendor).

Or it's ll better to have aggregated reviews, which will calculate the vendor review based on the reviews of its products. The list of reviews will be displayed on the vendor page, which will be created by aggregating the reviews from all the vendor products sorted by date.

Also see https://www.nopcommerce.com/en/boards/topic/38639/vendor-reviews

@adityavardhan91
Copy link

Hey @AndreiMaz , can we discuss about it a bit more. I am a .NET full stack dev and interested to collaborate to this open source project. If its ok for you, I request you to arrange a call and give some knowledge transfer about this project (a 30 min call will be really great). If you are interested, just say hi to this message and I will share my zoom Id or something to connect. Thanks

nirzaf added a commit to nirzaf/nopCommerce that referenced this issue Aug 13, 2024
Fixes nopSolutions#7244

Add support for vendor reviews, both written about a vendor and aggregated from product reviews.

* **VendorReview Class**: Add `VendorReview` class in `src/Libraries/Nop.Core/Domain/Vendors/VendorReview.cs` to handle vendor reviews with properties for `VendorId`, `CustomerId`, `Rating`, `ReviewText`, `IsApproved`, and `CreatedOnUtc`.
* **Vendor Class**: Update `Vendor` class in `src/Libraries/Nop.Core/Domain/Vendors/Vendor.cs` to include a list of `VendorReview` and a method to calculate the average rating from the reviews.
* **VendorController**: Update `VendorController` in `src/Presentation/Nop.Web/Areas/Admin/Controllers/VendorController.cs` to handle vendor reviews.
  - Add actions to handle vendor reviews, such as `VendorReviewsSelect`, `VendorReviewAdd`, and `VendorReviewDelete`.
  - Update the `Edit` action to include vendor reviews in the model.
* **Caching**: Add `VendorReviewCacheEventConsumer` class in `src/Libraries/Nop.Services/Catalog/Caching/VendorReviewCacheEventConsumer.cs` to handle caching for vendor reviews.
@nirzaf nirzaf linked a pull request Aug 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants