Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Added user current currency by geoIP #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

misteral
Copy link

@misteral misteral commented Sep 5, 2016

If current user currency is not set, set it by IP.
IP->Country->Currency

describe '#current_currency' do
it 'returns current currency' do
Spree::Config[:currency] = 'USD'
expect(controller.current_currency).to eq 'EUR'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants