Displaying Google Reviews on Your Storefront
Once your Google reviews are syncing into your store, this article shows how to display them on your Shopper storefront — a reviews list and an overall star rating.
Overview
This is the second stage of setting up Google Reviews. Before following this article, connect your reviews first (see the related article below), so that reviews are flowing into your store's google_reviews custom type.
Displaying reviews involves three things:
Making sure the
google_reviewscustom type exists on your store.Adding the review snippets to the pages where you want reviews shown.
Adding a little styling so the stars and layout look right.
Before you start
Your store needs the google_reviews custom type, with these fields:
google_namegoogle_ratinggoogle_textgoogle_publish_timegoogle_avg_ratinggoogle_ratings_totalgoogle_review_id
If this custom type is not already on your store, your Pixfizz contact can add it. The connection step in MyPixfizz also checks for it and will tell you if it is missing.
How to display a reviews list
Add the reviews widget snippet to the template or page where you want the list to appear.
In your store admin, go to Website > Snippets (or the page template you want to edit).
Include the reviews widget where you want the list to show:
Save.
The widget loops through the published reviews and shows the reviewer name, star rating, review text, and date.
How to display an overall rating
To show a summary star rating and total review count (for example in a header or near a product), include the rating widget:
This shows your average Google rating and the total number of reviews, taken from your Google business summary.
How to style the reviews
Add styling to your store's custom CSS so the stars and layout display correctly.
In your store admin, go to Website > Assets and open
style/custom.css(or your theme's custom CSS).Add styling for the review stars, for example:
Save.
Adjust colours and spacing to match your store's design.
How it works
Only reviews you have published from the MyPixfizz reviews inbox appear on the storefront. Approving a review is not the same as publishing it.
The reviews list and the rating summary read from the same
google_reviewsdata on your store.Because syncing is add-only, the reviews shown are the ones already published — resyncing adds new ones rather than replacing the list.
Tips
Start with one page. Add the reviews widget to a single page first, confirm it looks right, then add it elsewhere.
Nothing showing? Check that you have published at least one review from the MyPixfizz reviews inbox, not just approved it.
Stars look wrong? Confirm your custom CSS is loading and that the
.google-starscolour is set.
Related
Connect Google Reviews to Your Store
Editing snippets in your store
Adding custom CSS to your storefront
Note for the docs editor: confirm the exact snippet include paths and the custom type field list against the current Shopper setup before publishing, and add screenshots for the snippet and CSS steps.
Last updated