This Spree extension allows admins to issue arbitrary amounts of store credit to users.
Ruby Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db/migrate Add more unique name to namespace migration, just in case Jan 27, 2012
lib
script Updated to 1.0.0.rc Jan 27, 2012
spec
.gitignore
.simplecov
.travis.yml
Gemfile
LICENSE
README.md
Rakefile Spree 2.1 compatibility. Aug 26, 2013
Versionfile Update Versionfile Jan 4, 2013
spree_store_credits.gemspec

README.md

Spree Store Credits

Build Status

This Spree extension allows admins to issue arbitrary amounts of store credit to users.

Users can redeem store credit during checkout, as part or full payment for an order.

Also extends My Account page to display outstanding credit balance, and orders that used store credit.

Installation

  1. Add the following to your applications Gemfile

    gem 'spree_store_credits'

  2. Run bundler

    bundle install

  3. Copy and execute migrations:

    rails g spree_store_credits:install

Configuration

By default Spree Store Credits does not require your order total to be above an amount to apply store credits.

To change this, use the :use_store_credit_minimum preference. For information on setting Spree preferences visit http://guides.spreecommerce.com/developer/preferences.html

One possible implementation looks like this:

# app/model/spree/store_credit_decorator.rb

Spree::StoreCredit.class_eval do
  Spree::Config[:use_store_credit_minimum] = 0.01
end