Get rid of 0 star product reviews on products page

Get rid of 0 star product reviews on products page

thelondontoyco
Visitor
1 0 1

I can't seem to remove the 0 star ratings on the products page of my store. When on the products section where you can view numerous products on the page, I cannot seem to get rid of the 0 star symbol on some of the products out shop offer.

 

When on the actual page of a product there is no reviews that are 0 star or any reviews that are visible which is what I want for the general page where you can see all of the products we offer. 

 

I have removed all reviews and tried to edit some code, however, nothing has worked so far.  please see attached for evidence of what I am talking about. I want to remove the yellow 0 star below the attached product.

 

any help would be much appreciated.

Replies 3 (3)

iffikhan30
Shopify Partner
249 35 45

Hello @thelondontoyco 

 

1) Go to theme edit code.

 

{%- if show_rating and card_product.metafields.reviews.rating.value != blank and card_product.metafields.reviews.rating.value != 0 -%}

 

you add one more condition the value not equal to zero.

 

iffikhan30_0-1702703624911.png

 

 

If this information is helpful mark my solution approve.

Custom theme and app [remix] expert.

Email: irfan.sarwar.khan30@gmail.com
Chat on WhatsApp
Jonesyandjonesy
Visitor
1 0 0

Sounds good but I’m using the Honey theme. Would you please be able to help me with where to place it in the code. Newbie.thanks

iffikhan30
Shopify Partner
249 35 45

Hello @Jonesyandjonesy ,

 

You go to card-product.liquid and search this if show_rating, then replace to my code.

Custom theme and app [remix] expert.

Email: irfan.sarwar.khan30@gmail.com
Chat on WhatsApp