Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Ivan Saric 40 posts 89 karma points
    Feb 17, 2014 @ 13:06
    Ivan Saric
    0

    Customer reviews for all products

    Hi all,

    I'm using uCommerce reviewing system but in my case product review can send only logged in customer. Is there any way I can get all customer reviews (Razor script) for all products?

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Feb 17, 2014 @ 13:15
    Nickolaj Lundgreen
    0

    I would create an "anonymous" member, and relate all "non logged in" customer reviews to that member. That way you can do things like prioritize "logged in" reviews in the UI etc.

  • Ivan Saric 40 posts 89 karma points
    Feb 17, 2014 @ 13:26
    Ivan Saric
    0

    Thanks Nickolaj on quick answer. I don't have "non logged in" customer reviews. Only logged in customer can send a review so that customer must have an email, first name, addresss... If I have an email how I can get all reviews for that customer?

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Feb 17, 2014 @ 13:36
    Nickolaj Lundgreen
    0

    Ahh, sorry. I must have misread the original post :) I hope i got it right this time

       var customer = Customer.FirstOrDefault(x => x.EmailAddress == "MAIL");
            ProductReview.All().Where(x => x.Customer == customer);
    

    And then some sort of filtering on the ReviewStatusCode.

  • Ivan Saric 40 posts 89 karma points
    Feb 17, 2014 @ 14:02
    Ivan Saric
    0

    Thank you. That's it.

  • Ivan Saric 40 posts 89 karma points
    Feb 17, 2014 @ 14:54
    Ivan Saric
    0

    Nickolaj maybe know, I googled but no luck, I want to separate ratings and reviews so adding review is OK but how logged in customer can add only rating for product?

Please Sign in or register to post replies

Write your reply to:

Draft