Jump to content
ohSh!t

Currency Change on location lander automated

Recommended Posts

Hi, I have cubecart 6.2.6

I want the currency to reflect the location of the customer when they land on the site.

Example :

USA customer lands on my site, then the currency is automatically displayed as USD dollars

UK customer lands on my site, then the currency is automatically displayed as the British Pound

Australian customer lands on my site, then the currency is automatically displayed as the Australian Dollar

They do not have to click on the top to change the currency, it is automated based on your countries ip.

How can we do that, thanks

 

 

 

 

Share this post


Link to post
Share on other sites

This would be easy IF the country is known. There are means such as using Cloudflair DNS. 

Share this post


Link to post
Share on other sites

We used to have a GeoIP module for CubeCart V4 that use online databases such as Maxmind (free or for bigger sites paid services) and you had the option of assigning country IP address against languages and / or currencies - worked extremely well but just never rewritten it for V6 although it is on the list of plugins to get written

Share this post


Link to post
Share on other sites

The easiest way is to use the Cloudflair DNS header below.

$_SERVER["HTTP_CF_IPCOUNTRY"]

Share this post


Link to post
Share on other sites

If you are using Cloudflare which the vast majority of store owners dont

Also when the original V4 mod was written, Cloudflare didnt even exist !

Share this post


Link to post
Share on other sites
On 10/14/2019 at 4:19 PM, havenswift-hosting said:

If you are using Cloudflare which the vast majority of store owners dont

Also when the original V4 mod was written, Cloudflare didnt even exist !

I appreciate all that. I'm really suggesting that if this were to be developed as a bespoke modification for this one store I'd recommend that route.

I wasn't being critical. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...