A Spree extension that provides ability to add reviews to the products
- Create a new account with Yotpo
- Go to
On-Site Widgets >> Review Tab & SEO Page
and copy the script from The Reviews Tab
-
Add this extension to your Gemfile with this line:
gem 'spree_yotpo_reviews'
-
Install the gem using Bundler
bundle install
-
Copy & run migrations
bundle exec rails g spree_yotpo_reviews:install
-
Restart your server!
If your server was running, restart it so that it can find the assets properly.
-
Go to Admin Panel
Integrations >> Yotpo Reviews
and add the copied script and check the enable checkbox after installing gem- NOTE: Yotpo Reviews will not work if the checkbox is not marked as enable.
-
Render this partial
<%= render "spree/shared/yotpo_widget", locals: {product: @product }%>
where you want to add reviews for the specific product