Support » Plugin: WooCommerce » ratingCount Schema and Google Snippets

  • Resolved streamworksaudio

    (@streamworksaudio)


    I have noticed that WooCommerce is generating Product Schema, but I have noticed that it is generating both the ratingCount & reviewCount. Is there a way to only have reviewCount generated?

    I ask, because I believe that having both is making Google to use the term ‘votes’ instead of ‘reviews’ in search results snippets. I think it would be better to have ‘reviews’ here, as we are talking about product reviews.

    Here is an example…

    https://www.google.com/search?q=wavelab%20pro%209%20tutorial

    I think I should be near the top of the results… and you can see that it says ‘7 votes’. I would like it to say ‘7 reviews’.

    Is there a way to alter the schema generated?

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Dustin Hartzler

    (@dustinhartzler)

    Automattic Happiness Engineer

    From what I can see, it says 7 Reviews:
    Screen Shot

    streamworksaudio

    (@streamworksaudio)

    Hi Dustin,

    As mentioned in the Github discussion, I wrote a filter to remove the ratcingCount. After doing that the snippets began showing ‘reviews’ instead of ‘votes’ again.

    In case any else comes here via a Google search, this is the filter I wrote…

    function filterSchema($markup){
    	unset($markup['aggregateRating']['ratingCount']);
    	return $markup;
    }
    add_filter('woocommerce_structured_data_product','filterSchema');

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.