Product Reviews & Ratings for Spree Commerce
Easy Reviews & Ratings integration for Latest Spree Commerce 5.2
Installation
-
Add this your Gemfile with this line:
bundle add spree_product_reviews
-
Copy & Run Migrations:
bundle exec rails g spree_product_reviews:install
-
Clone _json_ld.html.erb to Theme directory (Important: Do this Only if you have Separate Theme):
So With this Product Reviews can generate Schema Validiation in Google Schema Like
Note: This can make product reviews visible and notable to Google search engine, If you are using a separate theme then replace _json_ld.html.erb file in the exact directory mentioned for example "app/views/themes/mytheme/spree/products/" to make schema work, always recommend to check product link in Rich Results Test. or Schema Markup Validiator. to ensure if script is updated in your store.
-
Compile Assests for Proper Images & JS loading:
RAILS_ENV=development bin/rails assets:precompile
-
Start Server:
foreman start -f Procfile.dev
or
docker compose up -d
Render Widget in Product Details:
-
Find your Partial file Example:
'app/views/themes/default/spree/page_sections/_product_details.html.erb'Note: If you dont find this file inside your spree's directory, You can Download this directly from Spree's Github and place it exactly inside your Spree's directory
-
Place this Rendering Code:
<% when 'Spree::PageBlocks::Products::Reviews' %> <%= block.render(self, product: product) %>Exactly below this part:
<% when 'Spree::PageBlocks::Products::Description' %>
Admin & Storefront Previews
- Admin Page Sections (Storefront Theme Editor):

- Product Review Form (Storefront Theme Editor):

- Edit Review from Product (Admin View):

- Approve/Disapprove Reviews (Admin View):

Published Review:
Live Google Search Result Preview:
Features & Roadmap
- Easy integration through Storefront theme editor
- Customisable from storefront
- Approve & Disapprove reviews
- Delete & Unapprove review
- Ratings visible for non-logged-in users
- Images support (Admin side control)
Troubleshooting
For common issues such as:
-
Missing PageBlocks
-
ActiveStorage upload errors
-
Turbo aborted requests
-
Docker / NGINX configuration issues
Refer to the dedicated troubleshooting guide:
