Hello Miguel,
I’ll gladly look into it.
Can you send me the plugin via e-mail: support@sgi.io
I’ll try to add the support for YITH reviews as soon as possible.
Cheers,
Sibin
Version 2.7 is out which fixes this issue.
I’d appreciate it if you left a review for the plugin.
Hi there… You are amazing!
Thank you very much!!
I just have one more issue and I am so sorry for the trouble. It looks like the Plugin pulls in the first letter of the email address instead of the Display Name or Author Name.
See screenshot: https://imgur.com/a/DVZoQWl
Is it possible to make it the first letter of the Display Name/Author Name?
Thanks
PS. I will be happy to make the necessary changes in the code if needed, if you tell me what the changes are 🙂
Thanks
You can change it like this:
In YITH review plugin folder:
templates/ywar-review.php – line 56
Replace:
echo get_avatar ( $review_author_data["display_email"], apply_filters ( 'woocommerce_review_gravatar_size', '60' ) );
with
$comment_id = get_post_meta( $review->ID, YITH_YWAR_META_COMMENT_ID, true );
$comment = get_comment( $comment_id );
echo get_avatar ( $comment, apply_filters ( 'woocommerce_review_gravatar_size', '60' ) );
-
This reply was modified 4 years, 8 months ago by
Sibin Grasic.
-
This reply was modified 4 years, 8 months ago by
Sibin Grasic.
Hi
Thanks but now the first letter doesn’t show up. Only the background color.
Also you can see a warning for a quick second or two while the page is loading.
https://rarinutrition.com/infinity/
Please advise.
Thanks
The full if statement was changed like this:
I replaced:
<?php if ( $user && ! $review_author_data['is_modified_user'] ):
echo get_avatar ( $user->ID, apply_filters ( 'woocommerce_review_gravatar_size', '60' ) );
else:
echo get_avatar ( $review_author_data["display_email"], apply_filters ( 'woocommerce_review_gravatar_size', '60' ) );
endif; ?>
with this:
<?php if ( $user && ! $review_author_data['is_modified_user'] ):
echo get_avatar ( $user->ID, apply_filters ( 'woocommerce_review_gravatar_size', '60' ) );
else:
$comment_id = get_post_meta( $review->ID, YITH_YWAR_META_COMMENT_ID, true );
$comment = get_comment( $comment_id );
echo get_avatar ( $comment, apply_filters ( 'woocommerce_review_gravatar_size', '60' ) );
endif; ?>
-
This reply was modified 4 years, 8 months ago by
miguel1876.
Try this piece instead:
global $comment;
$comment_id = get_post_meta( $review->ID, YITH_YWAR_META_COMMENT_ID, true );
$comment = get_comment( $comment_id );
echo get_avatar ( $comment, apply_filters ( 'woocommerce_review_gravatar_size', '60' ) );
Thanks but it’s still not working properly.
My client Chris B was the one who added most of the reviews from Amazon. So all the reviews he added are showing with the first letter “C” instead of the edited Author name’s first letter.
Hello
I didn’t hear back so I am just checking to see if you have a solution to the issue?
Thanks
It seems that you are no longer replying nor helping with this.
Are you not able to help any longer?
-
This reply was modified 4 years, 8 months ago by
miguel1876.
Hello Miguel,
I’ve sent you out a very detailed e-mail about your issue.
Did you get it?
Hi.
No, I did not get it :/
Hi… I just saw it. So sorry, It was in my SPAM mail.
Just added you on Skype