Build Status
Coverage Status
Code Climate

This extension adds new user role - Customer Assistant. Each customer has automatically (after creating account) assigned an assistant.
Customer is able to contact with their private assistant anytime from special widget.


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

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


Add spree_customer_care to your Gemfile:

gem 'spree_customer_care', git: 'https://github.com/netguru/spree_customer_care/', branch: '2-1-stable'

Bundle your dependencies and run the installation generator:

bundle exec rails g spree_customer_care:install

If you are adding this extension to existing application you may want to assign assistants to existing users
To do so you can use this rake task:
rake customer_assistants:assign_to_all_users

Additional info

This extension is using gravatar.com to display assistants photo/avatar by default.
Custom avatars are also supported :)

Just take a look at the code below, if you want to do so.
Spree::User.class_eval do
set_assistant_avatar :my_custom_avatar_method

def my_custom_avatar_method
# returns avatar url

Currently supported Spree version: 2.1.X


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

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_customer_care/factories'

Read more about the project at Our First Open Source Extension for Spree.

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


No comments yet

Please login to add comment.