Why are product reviews not displaying on my website?

Hi!

I have gathered a few product reviews using the ‘product review’ app, but when I go on the product, the text under states:

Reviews (0)

Its only when you click on it this that you can see the reviews drop down. I’m concerned because customers won’t know they’re there!

Any ideas on what could be going wrong here? Thanks so much!

Hi @Ellen_TheEndery

Hope this message finds you well and safe.

We will be glad to help you, can you share the URL of your shop?

So we can find you a solution.

did you try writing review yourself for testing.

Thank you!

Our url is: www.theendery.com

As you can see on this product:

https://www.theendery.com/collections/mending/products/deadstock-darning-mending-kit

There are two reviews but the review button only states (0).

Any help greatly appreciated!

Ellen

go to product.tab.liquid,

Around the end of the file (it is usually around line 153, but it may varies depending on the custom code you may have added), locate this line:

{%- assign reviews_count = product.metafields.spr.reviews | split: '<meta itemprop="reviewCount" content="' | last | split: '">' | first | times: 1 -%}
	

And replace it by the following code:

{%- if product.metafields.spr.reviews contains 'itemprop="reviewCount"' -%}
     {%- assign reviews_count = product.metafields.spr.reviews | split: '<meta itemprop="reviewCount" content="' | last | split: '">' | first | times: 1 -%}
{%- else -%}
      {%- assign reviews_count = product.metafields.spr.reviews | split: '"reviewCount": "' | last | split: '"' | first | plus: 0 -%}
{%- endif -%}

Hi!

We have the same exact problem. We use Judge.me for the reviews and we have for example 16 reviews sitting under a bar that says " REVIEWS (0)".

We tried the code you suggested above and for some reason one only one of our products change from 0 reviews to 2 reviews (it actually has 10 reviews):

https://www.whiteandblujewellery.com/collections/necklaces/products/santorini-necklace

If you check any other product it still says 0 reviews.. anu suggestions?

Thank you in advance!