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
Check out: All my extensions | My FREE extensions
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.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?
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?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...
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!
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...fido-x wrote: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.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?
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?
I was thinking more along the lines of IP-based geo-detection rather than logged in customers' addresses...fido-x wrote: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?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
Check out: All my extensions | My FREE extensions
There are numerous free and public databases that allow this...sooskriszta wrote:I was thinking more along the lines of IP-based geo-detection rather than logged in customers' addresses...
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
Check out: All my extensions | My FREE extensions
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".sooskriszta wrote:There are numerous free and public databases that allow this...sooskriszta wrote:I was thinking more along the lines of IP-based geo-detection rather than logged in customers' addresses...
e.g. http://www.hostip.info/
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!
OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Check out: All my extensions | My FREE extensions
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.
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...i2Paq wrote:osCommerce has this by default, most people disable it.
What if I'm Dutch but use a English OS and/or browser?
OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Check out: All my extensions | My FREE extensions
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
Check out: All my extensions | My FREE extensions
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.
OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Check out: All my extensions | My FREE extensions
http://theqdomain.com/ocstore/country-currency
OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Check out: All my extensions | My FREE extensions
OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Check out: All my extensions | My FREE extensions
OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Check out: All my extensions | My FREE extensions
Users browsing this forum: No registered users and 1 guest