YotpoLtd / magento2-module-yotpo-reviews

Open Software License 3.0
23 stars 38 forks source link

Add support for the rich-snippets API #39

Closed mridang closed 7 years ago

mridang commented 7 years ago

We at Nosto are a Yotpo partner and looking to roll out rich-snippet support on M2 as well. The current Yotpo extension doesn't support fetching rich-snippets through the Yotpo API. Here's a reference on how it has been implemented on M1. https://github.com/YotpoLtd/magento-plugin/blob/master/app/code/community/Yotpo/Yotpo/Helper/RichSnippets.php

billykov commented 7 years ago

Hi Mridang, As we support the Rich Snippets out of the box with our JS widgets, we do not require this mechanism.

Therefore, there are no active plans of adding this functionality.

Sam-PUMP commented 7 years ago

Hi Billykov

How do we then print out on product pages the number of reviews, the average score as an integer for each product? Thanks

On May 11, 2017, 7:53 AM -0400, billykov notifications@github.com, wrote:

Hi Mridang, As we support the Rich Snippets out of the box with our JS widgets, we do not require this mechanism.

Therefore, there are no active plans of adding this functionality.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/YotpoLtd/magento2-plugin/issues/39#issuecomment-300766889), or mute the thread (https://github.com/notifications/unsubscribe-auth/AIEd3LvqHy4d2a5S20KC9uJmkcFSB2OTks5r4vbNgaJpZM4NU5lP).

billykov commented 7 years ago

Hi @Sam-PUMP Sorry I don't follow, can you elaborate? What exactly do you want to show? The star ratings? or Rich Snippets?

Sam-PUMP commented 7 years ago

HI - The Rich Snippets, but or that we need to show the aggregateRating, bestRating, worstRating, ratingValue and reviewCount which are not available on each product page without the rich snippets API (unless there is a way to retrieve all those values on product page by ProductID) ?

Thanks

On May 16, 2017, at 3:32 AM, billykov notifications@github.com wrote:

Hi @Sam-PUMP https://github.com/sam-pump Sorry I don't follow, can you elaborate? What exactly do you want to show? The star ratings? or Rich Snippets?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/YotpoLtd/magento2-plugin/issues/39#issuecomment-301699926, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEd3NZEHR3clkcIwCfUbVVMg4tWnL__ks5r6VEegaJpZM4NU5lP.

billykov commented 7 years ago

Hi @Sam-PUMP, thanks for elaborating.

There is no way to get those number without calling our API.

Sam-PUMP commented 7 years ago

Alright, so then can you re-open issue to add support for the rich snippets api in Magento 2 ? Thanks

Sam-PUMP commented 7 years ago

Or can you please give link to documentation that shows how to add the required data on the product page in Magento 2 for google to recognize rich snippets (reviews in serp). How do we use the JS widget in Magento 2 to get the aggregate rating, average value best and worst etc for each product? Thank you.

billykov commented 7 years ago

Sure @Sam-PUMP , you can this endpoint: http://apidocs.yotpo.com/reference#v1-retrieve-bottom-line-total-reviews-and-average-score-for-all-products

About the other question, I am sorry I dont get it, what do you mean by how do you get the aggregate rating, average value best and worst etc for each product?