How To Add Guest Badge To WooCommerce Reviews

Add Guest Badge To WooCommerce

Guest Shopper badge and Verified Shopper badge for WooCommerce stores.

One of the hardest things to do nowadays is to one get reviews for your products. Not to mention legit ones at that. When we created Hush + Dotti we struggled with getting reviews. Nobody wants to sign in and do this and give out their personal information. It’s a hassle.

As many of you know WordPress & WooCommerce have a bullseye on their backs when it comes to spammers.

One thing I did to get Guest shoppers to write a review is to do away with the whole logging in and being a verified buyer deal.

So, what we did was make e it so that only Verified Buyers could write reviews. Well, that brings up another issue. What about the “Guest” shopper? I’m sure they’ll want to share their experience with your business no?

So what I did was the following. I recommend you only add this to your child theme. Now let’s head over to your review-meta.php and look for this line. Make sure to copy this file into your Child Theme. Do not edit in the plugin and don’t edit in your parent theme.


    if ( 'yes' === get_option( 'woocommerce_review_rating_verification_label' ) && $verified ) {
			echo '<em class="woocommerce-review__verified verified">(' . esc_attr__( 'verified owner', 'woocommerce' ) . ')</em> ';
		}

Now here’s where we’re going to rewrite and add guest badge for WooCommerce. Right here in this¬† section like so.


    if ( 'yes' === get_option( 'woocommerce_review_rating_verification_label' ) &amp;&amp; $verified ) {
	   echo '<em class="woocommerce-review__verified verified"> ' . esc_attr__( 'verified buyer', 'woocommerce' ) . '</em> ';
		} else {
             //simply add copy the woocommerce-review__verified from above and change the last part to guest
           echo '<em class="woocommerce-review__guest verified"> ' . esc_attr__( 'guest buyer', 'woocommerce' ) . '</em> '; //Change the phrase Verified Buyer to Guest Buyer
 	}

In the end you’re going to want your review-meta file to look like this. You’ll notice I use FontAwesome with my theme so the verified checkmark shows for each person’s review. Giving the review a bit of authenticity.

Comments are held in moderation before posting. Please be patient with me as I am very busy. I don't allow any code to be added. I'll update the comment section soon to allow it though. All spam comments will be filtered out by WordPress automation. So don't even bother you little bot you.

Leave a Reply

Your email address will not be published. Required fields are marked *