Skip to content

umeshravani/spree_product_reviews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

141 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product Reviews & Ratings for Spree Commerce

Easy Reviews & Ratings integration for Latest Spree Commerce 5.2

product-snippet

Installation

  1. Add this your Gemfile with this line:

    bundle add spree_product_reviews
  2. Copy & Run Migrations:

    bundle exec rails g spree_product_reviews:install
  3. 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

    Screenshot 2025-08-15 at 1 24 00 PM

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.

  1. Compile Assests for Proper Images & JS loading:

    RAILS_ENV=development bin/rails assets:precompile
  2. Start Server:

    foreman start -f Procfile.dev

    or

    docker compose up -d

    Render Widget in Product Details:

  3. 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

  4. 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

  1. Admin Page Sections (Storefront Theme Editor):
    Widget config page builder
  2. Product Review Form (Storefront Theme Editor):
    Product Review Form
  3. Edit Review from Product (Admin View):
    Screenshot 2025-12-17 at 7 34 11 PM
  4. Approve/Disapprove Reviews (Admin View):
    Screenshot 2025-12-17 at 7 33 57 PM

Published Review:

Screenshot 2025-12-17 at 7 31 18 PM copy

Live Google Search Result Preview:

Screenshot 2025-08-18 at 7 21 06 PM

Features & Roadmap

  1. Easy integration through Storefront theme editor
  2. Customisable from storefront
  3. Approve & Disapprove reviews
  4. Delete & Unapprove review
  5. Ratings visible for non-logged-in users
  6. Images support (Admin side control)

Troubleshooting

For common issues such as:

  1. Missing PageBlocks

  2. ActiveStorage upload errors

  3. Turbo aborted requests

  4. Docker / NGINX configuration issues

Refer to the dedicated troubleshooting guide:

See Troubleshooting Guide

About

Easy Reviews & Ratings integration for Spree Commerce 5.2

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors