ohSh!t Posted October 14, 2019 Share Posted October 14, 2019 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 Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 14, 2019 Share Posted October 14, 2019 This would be easy IF the country is known. There are means such as using Cloudflair DNS. Link to comment Share on other sites More sharing options...
havenswift-hosting Posted October 14, 2019 Share Posted October 14, 2019 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 Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 14, 2019 Share Posted October 14, 2019 The easiest way is to use the Cloudflair DNS header below. $_SERVER["HTTP_CF_IPCOUNTRY"] Link to comment Share on other sites More sharing options...
havenswift-hosting Posted October 14, 2019 Share Posted October 14, 2019 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 ! Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 14, 2019 Share Posted October 14, 2019 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.