An open API service indexing awesome lists of open source software.

https://github.com/solidusio-contrib/solidus_handling_fees

Add handling fees to your Solidus store.
https://github.com/solidusio-contrib/solidus_handling_fees

ecommerce extension fees handling solidus

Last synced: 9 months ago
JSON representation

Add handling fees to your Solidus store.

Awesome Lists containing this project

README

          

SolidusHandlingFees
===================

[![CircleCI](https://circleci.com/gh/solidusio-contrib/solidus_handling_fees.svg?style=svg)](https://circleci.com/gh/solidusio-contrib/solidus_handling_fees)

Adds Handling Fee functionality to [Spree](http://github.com/spree/spree).

Installation
------------

Add solidus_handling_fees to your Gemfile:

```ruby
gem 'solidus_handling_fees', github: 'solidusio-contrib/solidus_handling_fees'
```

Bundle your dependencies and run the installation generator:

```shell
bundle
bundle exec rails g solidus_handling_fees:install
```

Usage
-----

To create a handling fee, edit a Stock Location in the admin and apply a calculator. For example, you might use the Flat Rate calculator to set a flat fee of $3.99 on all shipments.

If you'd like to specify only certain orders to have a handling fee, override the `needs_handling_charge?` method in your own Spree::Order decorator.

Testing
-------

First bundle your dependencies, then run `rake`. `rake` will default to building the dummy app if it does not exist, then it will run specs, and [Rubocop](https://github.com/bbatsov/rubocop) static code analysis. The dummy app can be regenerated by using `rake test_app`.

```shell
bundle
bundle exec rake
```

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

```ruby
require 'solidus_handling_fees/factories'
```

Releasing
---------

Your new extension version can be released using `gem-release` like this:

```shell
bundle exec gem bump -v VERSION --tag --push --remote upstream && gem release
```

Copyright (c) 2014 Brian Christian, released under the GPL V3.