Skip to content

delynn/spree_products_qa

Repository files navigation

SpreeProductsQA

Build Status Coverage Status Code Climate

This extension adds Q&A Sections for products. Logged users can ask a question, and then admins are able to answer it. All answered (and accepted) questions are displayed on a product page.

How does it work?

Install this extension and edit any product. While editing product, there's now a new section in the submenu - Questions and Answers. In this panel you can add or answer any question. Simple enough? :)

Demo

If you want to see how it works, visit our demo shop.

You can login using those credentials customer@example.com / customer

Or take a look at the blog post.

Installation

Add spree_products_qa to your Gemfile:

gem 'spree_products_qa', git: 'https://github.com/netguru/spree_products_qa.git', branch: '2-3-stable'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_products_qa:install

Additional info

Currently supported Spree version: 2.1.X, 2.2.X, 2.3.X

Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

bundle
bundle exec rake test_app
bundle exec rspec spec

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_products_qa/factories'

Copyright (c) 2014 Netguru, released under the New BSD License.