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.
- Host: GitHub
- URL: https://github.com/solidusio-contrib/solidus_handling_fees
- Owner: solidusio-contrib
- License: bsd-3-clause
- Created: 2017-03-08T15:36:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-11-01T22:40:20.000Z (over 3 years ago)
- Last Synced: 2024-12-20T14:33:02.302Z (over 1 year ago)
- Topics: ecommerce, extension, fees, handling, solidus
- Language: Ruby
- Homepage:
- Size: 94.7 KB
- Stars: 4
- Watchers: 12
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SolidusHandlingFees
===================
[](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.