Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Spree Line Item Discount

Adds adjustments to Line Items for discounts.

Installation

Add spree_line_item_discount to your Gemfile:

gem 'spree_line_item_discount', github: 'kitwalker12/spree_line_item_discount'

Then run

bundle install

Usage

Create Promotion in Spree Admin. Add 'Create Line Item discount' action to your promotion. Currently this only supports Flat Percent calculator.

Action creates adjustments on each line item + a cumulative adjustment on the Order.

Testing

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

bundle install
bundle exec rake test_app
bundle exec rspec

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

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

About

Add Discount to Line Items in Spree

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.