GithubHelp home page GithubHelp logo

bricesanchez / spree_multi_currency Goto Github PK

View Code? Open in Web Editor NEW

This project forked from watg/spree_multi_currency

0.0 1.0 0.0 85 KB

Provides UI to allow configuring multiple currencies in Spree.

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

spree_multi_currency's Introduction

SpreeMultiCurrency

Provides UI to allow configuring multiple currencies in Spree.

NOTE: This extension is intended to be used with Spree 1.3 only. It will not function with Spree 1.2 and below.

This provides 3 preferences:

  • allow_currency_change - Allow the users to change their currency via the currency set action.
  • show_currency_selector - Display the currency selector in the main nav bar. This will only display if there are multiple supported currencies, and allow_currency_change is on.
  • supported_currencies - A comma separated list of

Example

To install you'll need to add the following to your Gemfile:

gem 'spree_multi_currency', :github => "spree/spree_multi_currency"

Run:

$ bundle install

And then run:

$ rails generate spree_multi_currency:install

TODO

  • The price range filters don't work properly for the non-default currency.
  • Style the currency selector to look better
  • Improve the currency selector with something like select2.

Testing

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

$ bundle
$ bundle exec rake test_app
$ bundle exec rspec spec

spree_multi_currency's People

Contributors

bdq avatar dangerdawson avatar gmacdougall avatar rosario avatar

Watchers

 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.