matkaczmarek / spree_store_credits

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

Home Page:http://guides.spreecommerce.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚠️ Deprecation notice ⚠️

Since Spree 3.1 this extension is deprecated and not needed. Store Credits were merged into Spree core.

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

About

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

http://guides.spreecommerce.org

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Ruby 89.6%Language:HTML 10.1%Language:CSS 0.2%Language:JavaScript 0.1%