0

When listing product reviews I need to put a tag close to the reviewer name saying "verified customer" however I do not know ho to retrieve this info from the model.

Reviews are returned using this function:

$_items = $this->getReviewsCollection()->getItems();

And user info by this:

foreach ($_items as $_review):

.....

$_review->getNickname()

1 Answer 1

0

It would depend on what criteria you are using to determine a 'verified customer' - you can either retrieve the customer model from the Nickname and then check and existing attribute or you can create your own attribute and check that.

I am not allowed to write comments yet so can you provide more info on how you determine what is verified?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.