Forums / General Questions / How to change currency depending upon IP address?

How to change currency depending upon IP address?

Views: 636

Results 1 to 7 of 7
5 Jan 2025, 4:03 PM
#1
dustie avatar

dustie

Zen Follower

Join Date:
Nov 2010
Posts:
159
Plugin Contributions:
0

How to change currency depending upon IP address?

Hi,

After spending hours searching and reading many posts regarding this topic (which are now old and closed) I still have not found a solution to my problem.

Is there any way that my webshop can automatically show currency depending on country? I have 2 currencies in my Webshop.. Swissfrancs and Euro. My default currency is Euro. Swissfrancs obviously for swiss customers only and Euro for the remaining countries I deliver too.

I would like my swiss customers to see only swissfrancs and remaining customers only EURO as default.

I have found a currency mod but that is for older versions and I am not sure it actually hides the Euro from my swiss customers. Using the Switch To Default Language Currency doesn't work because both countries language is german!

I am currently running v1.5.6. We are going to update soon to the newest version, but this will be an issue even with a new version of ZC.

Does anyone know a solution to this issue?

thank you

5 Jan 2025, 7:27 PM
#2
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: How to change currency depending upon IP address?

You would need to integrate a geolocation service so you can detect an IP address and set currency based on detected country. You could use MaxMind with a free local database and then lookup your database, or integrate with their API and lookup the data on their servers in real time. The free version is accurate enough, but needs some work to integrate it. The paid version is $25 for 250.000 lookups (1 website visit = 1 lookup) and is much easier to integrate. Either way, you'll need to do the programming part because I don't think there's a ready-made solution (at least not to my knowledge).

My site - Pro ZC Help
My portfolio | My plugins

5 Jan 2025, 10:34 PM
#3
dustie avatar

dustie

Zen Follower

Join Date:
Nov 2010
Posts:
159
Plugin Contributions:
0

Re: How to change currency depending upon IP address?

balihr:

You would need to integrate a geolocation service so you can detect an IP address and set currency based on detected country. You could use MaxMind with a free local database and then lookup your database, or integrate with their API and lookup the data on their servers in real time. The free version is accurate enough, but needs some work to integrate it. The paid version is $25 for 250.000 lookups (1 website visit = 1 lookup) and is much easier to integrate. Either way, you'll need to do the programming part because I don't think there's a ready-made solution (at least not to my knowledge).

Thank you for your reply. Ok, this does indeed sound complicated. It's a pity that this is not already a built in feature.

5 Jan 2025, 11:07 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,864
Plugin Contributions:
18

Re: How to change currency depending upon IP address?

With the proliferation of VPN usage, I doubt you would see something like this in the core.

I can pick almost any locale with an inexpensive VPN and come at you as Australian while actually in Texas.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

6 Jan 2025, 11:58 AM
#5
dustie avatar

dustie

Zen Follower

Join Date:
Nov 2010
Posts:
159
Plugin Contributions:
0

Re: How to change currency depending upon IP address?

dbltoe:

With the proliferation of VPN usage, I doubt you would see something like this in the core.

I can pick almost any locale with an inexpensive VPN and come at you as Australian while actually in Texas.

Yes, I understand this but there are shops that need this feature, regardless of customers who use VPN. I order from international shops that only show my countries currency, also other ecommerce software (eg. wooshop) has this features. I was just hoping that there was a way to do this with Zen Cart.

6 Jan 2025, 12:02 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: How to change currency depending upon IP address?

I was just hoping that there was a way to do this with Zen Cart.

Like @balihr said, there is, you just have to write some software and purchase a license from some Geo IP company.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

6 Jan 2025, 12:08 PM
#7
dustie avatar

dustie

Zen Follower

Join Date:
Nov 2010
Posts:
159
Plugin Contributions:
0

Re: How to change currency depending upon IP address?

swguy:

I was just hoping that there was a way to do this with Zen Cart.

Like @balihr said, there is, you just have to write some software and purchase a license from some Geo IP company.

Thank you, I can't write software, nor do I know anyone that can write it. thank you anyway.