[NEW] Product Reviews App by Shopify

Trailblazer
193 0 87

I'm here to suggest an improvement to make the product.metafields.spr json actually parsible instead of just a giant HTML blob that needs to be parsed.

 

Here's how it currently looks

product.metafields.spr = {
  reviews: {
    id: 12398586,
    namespace: "spr",
    key: "reviews"
    value: "{{ big giant HTML/CSS blog }}"
  }
}

Here's what I suggest:
 

product.metafields.spr = {
  reviews: {
    id: 12398586,
    namespace: "spr",
    key: "reviews"
    value: "{{ big giant HTML/CSS blog }}",
    votes: 51,
    average: 4.96078431372549,
  }
}

Notice the "votes" & "average" key/values added to the JSON array in Metafields, which we could then query via the shopify API and actually use in our themes & apps with out needing to parse HTML / CSS which could change in the future.

 

I personally need this and I bet Jordy who is parsing the HTML/CSS in liquid would also really appreciate it.

 

For those who are also interested here's a "hack" way which could change in the future, but currently an easy way to get at this data if you don't want to query each product via the API:
https://productreviews.shopifycdn.com/proxy/v4/reviews/product?product_id={{YOUR PRODUCT ID}}&version=v4&shop={{ YOUR STORE HANDLE }}.myshopify.com

1 Like
Trailblazer
193 0 87

Google is now allowing merchants to submit customer reviews to Google Merchants which will provide star ratings along side Google Product Listing Ads.

In order to do that though, you need to provide a feed to Google Merchants, for which data is not currently available via Shopify Product Reviews app, unless via manual export.

Could we please be provided with an endpoint for the Shopify Product Reviews app, where we can export all our ratings, instead of having to do this manually.

Here's the documentation on the product reviews feed:
https://developers.google.com/product-review-feeds/

  

0 Likes
Highlighted
New Member
1 0 0

Hi @charlestop

I tried this and got the first step done quickly. I cannot however figure out where the last step needs to be pasted. Could you help? I tried pasting it in a couple of different lines within the product template and did not see the date dissapear. Does it matter what line exactly? Please help!!

thanks so much

0 Likes
New Member
2 0 0

Hi, 

I noticed you managed to merge/link your page schema data with the one from Product Reviews. Any chance you could explain how you did it?

I have added the app to my shop: https://kaveecage.com/collections/cavy-cages-enclos-modulables/products/coroplast but the stars don't show up. It could be because I have not that many reviews yet, but I have also read that having the markup separated makes it harder for serach engines to understand that the reviews are for a give product (ie: what is the relationship between my 'product' markup and the 'aggregatedRating' one.

Thanks in advance

0 Likes
Tourist
51 0 1

dosnt work...

0 Likes