Skip to content

spree-tkf/spree_multi_currency

 
 

Repository files navigation

Spree Multi-Currency With Location Detection

Build Status

Provides UI to allow configuring multiple currencies in Spree.

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

Improvements Over The Standard Version

This version of the extension reads geo location and also uses language defined urls from the Spree Globalize extension to set the currency for certain regions and user locations.

Requires CloudFlare.

To function correctly this extension relies on CloudFlare and the IP Geolocation setting to be switched on. By reading the current browsers location from the CF-IPCountry header.


Requires spree_globalize extension.

To set currency depending on local.

Installation

  1. Add this extension to your Gemfile with these lines:
gem 'spree_i18n', github: 'spree-contrib/spree_i18n'
gem 'spree_globalize', github: 'spree-contrib/spree_globalize'
gem 'spree_multi_currency', github: 'spree-kit/spree_multi_currency'
  1. Install the gem using Bundler:
bundle install
  1. Copy & run migrations
bundle exec rails g spree_globalize:install
bundle exec rails g spree_multi_currency:install
  1. Restart your server

If your server was running, restart it so that it can find the assets properly.


Contributing

See corresponding [guidelines][1]


About

Provides UI to allow configuring multiple currencies in Spree.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 82.0%
  • HTML 13.1%
  • JavaScript 3.5%
  • Other 1.4%