Post by OC2PS » Mon Jul 19, 2010 4:59 pm

Could we possibly link default currency with language so that each language can have a default currency of its own, and based on the language that a user is accessing shopfront from, a default currency is used?

Even better would be default currency based on geo-detection and assignment of default currencies to geo zones, but that's perhaps asking for too much...

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by fido-x » Mon Jul 19, 2010 5:32 pm

sooskriszta wrote:Could we possibly link default currency with language so that each language can have a default currency of its own, and based on the language that a user is accessing shopfront from, a default currency is used?
I speak English, but what currency would you associate with that? Think about it, British Pounds, Euros, American Dollars, Australian Dollars, New Zealand Dollars, the list goes on.
Even better would be default currency based on geo-detection and assignment of default currencies to geo zones, but that's perhaps asking for too much...
You could possibly link a currency to a geo-zone, based on the logged in customer's address, but how would you know what country a "visitor" was from?

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by OC2PS » Mon Jul 19, 2010 8:17 pm

fido-x wrote:
sooskriszta wrote:Could we possibly link default currency with language so that each language can have a default currency of its own, and based on the language that a user is accessing shopfront from, a default currency is used?
I speak English, but what currency would you associate with that? Think about it, British Pounds, Euros, American Dollars, Australian Dollars, New Zealand Dollars, the list goes on.
Theoretically you are right, but I think the typical use case is for European shops, who have to deal with multiple languages within a small geographic region, a large part of which may be their target market. Being based in Europe, I'd associate GBP with English, EUR with Euro languages (FR, DE, etc), HUF with Hungarian, etc...

That being said that this is a commercial issue that each shop should be able to decide for itself, and that providing the technical capability would be good for all?
fido-x wrote:
Even better would be default currency based on geo-detection and assignment of default currencies to geo zones, but that's perhaps asking for too much...
You could possibly link a currency to a geo-zone, based on the logged in customer's address, but how would you know what country a "visitor" was from?
I was thinking more along the lines of IP-based geo-detection rather than logged in customers' addresses...

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by OC2PS » Mon Jul 19, 2010 8:20 pm

sooskriszta wrote:I was thinking more along the lines of IP-based geo-detection rather than logged in customers' addresses...
There are numerous free and public databases that allow this...

e.g. http://www.hostip.info/

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by fido-x » Mon Jul 19, 2010 8:44 pm

sooskriszta wrote:
sooskriszta wrote:I was thinking more along the lines of IP-based geo-detection rather than logged in customers' addresses...
There are numerous free and public databases that allow this...

e.g. http://www.hostip.info/
Hadn't thought about that. I can see how this could work. You could have a function that send a visitor's IP address, and collects a return value of the country code. Then associate that country code with the relevant currency. You'd probably need another table in your database to store the lookup values, eg. "language_to_currency" with fields of "language_id" and "currency_id".

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by OC2PS » Mon Jul 19, 2010 10:11 pm

Makes sense. How do we get it to be a part of the core product? Can't believe I am the only one that needs it.

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by i2Paq » Tue Jul 20, 2010 1:16 am

osCommerce has this by default, most people disable it.

What if I'm Dutch but use a English OS and/or browser?

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by OC2PS » Tue Jul 20, 2010 6:17 am

i2Paq wrote:osCommerce has this by default, most people disable it.

What if I'm Dutch but use a English OS and/or browser?
As I said, better would be default currency based on (IP-based) geo-detection and assignment of default currencies to geo zones...Fido's method makes sense...

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by OC2PS » Tue Jul 20, 2010 7:52 pm

Here's a free API: http://www.wipmania.com/en/api/

There are numerous free APIs on the web. But this one is ridiculously simple to use:

Code: Select all

http://api.wipmania.com/[IPADDR]?[URL]
IPADDR - queried IP address. For example, your visitor's address.
URL - your domain name. It will be used to control your daily limits.

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by parkman7 » Wed Aug 04, 2010 10:17 pm

Ok, how do we connect the IP to the Geozone and then to the default currency?

I like the idea of currency based on IP address instead of having to select from the drop down menu, if the customer prefers a different currency than their location THEN use the menu, otherwise lets make the cart a little more intelligent.

Newbie

Posts

Joined
Sun Aug 01, 2010 1:30 am

Post by OC2PS » Mon Aug 16, 2010 11:30 pm

I will try something hopefully this weekend.

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by OC2PS » Mon Sep 27, 2010 9:59 am


OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by OC2PS » Sun Nov 28, 2010 4:06 pm

Any possibility of this being part of 1.5.0 core?

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by Aladdin » Thu May 31, 2012 7:34 am

Looking for the answer of this question, need to associate default currency with language.
Any idea?
V.1.5.2.1

New member

Posts

Joined
Tue Apr 24, 2012 5:03 pm

Post by OC2PS » Thu Jun 14, 2012 12:48 pm


OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary
Who is online

Users browsing this forum: No registered users and 1 guest