Git Product home page Git Product logo

spree-additional-calculators's Introduction

Additional Spree Calculators

This gem contains additional calculators for Spree Commerce

Currently there is only a single calculator implemented but the infrastructure allows to easily add more.

  • "Weight And Quantity" calculator determines the shipping and handling cost based on total item weigh and number or items in the order.

Usage

Add the following line to your Rails 3 application:

gem 'spree_additional_calculators'

And then run:

$ bundle
$ rake spree_additional_calculators:install

Then go to Configuration and choose Shipping Methods And you will be able to select a new calculator - Weight and Quantity Create the calculator and define the Default item weight. That value will be used if you do not have defined the weight for your products.

After that you can go to Configuration and choose Additional Calculator Rates Click Edit and you will be able to add new or edit/remove existing weight and quantity ranges.

This page is using Javascript to add and remove items in the browser. The changes are made only when you press the Update button.

Development

In order to add a new calculator or fix a bug in existing one you will need both the spree source and the extension source locally on your computer.

$ git clone https://[email protected]/jurgis/spree-additional-calculators.git spree_additional_calculators
$ git clone https://github.com/spree/spree.git

You can test the extension by executing following commands:

$ cd spree_additional_calculators
$ rake test_app SPREE_PATH='../spree'
$ rake

Screenshots

There are some screenshots in the wiki.

TODO

  • Possibly add some cucumber scenarios
  • Possibly use unobtrusive javascript

Copyright (c) 2011 Jurgis Jurksta, released under the New BSD License

spree-additional-calculators's People

Contributors

jurgis avatar

Stargazers

Benny Thomas avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.